Fc 51 Ir Sensor Datasheet Hot ◆ (DIRECT)
The FC-51 is a popular, low-cost infrared proximity sensor used for obstacle detection in robotics. Specification 3.3V – 5.0V DC Operating Current ≥20is greater than or equal to 20 Detection Distance 2cm – 30cm (Adjustable via potentiometer) Detection Angle 35∘35 raised to the composed with power Output Type Digital signal (0 or 1) Output Level Low (0V) when obstacle detected; High (VCC) when clear IC Chip LM393 Comparator Pin Configuration VCC : External 3.3V-5V voltage. GND : External ground. OUT : Digital output interface (connects to MCU I/O). How it Works
A small screw on the potentiometer allows you to fine-tune the range.
while True: if ir.value() == 0: # LOW = obstacle detected print("Object detected!") else: print("Nothing there") time.sleep(0.2) fc 51 ir sensor datasheet hot
int IRSensor = 2; // Pin 2 connected to OUT int LED = 13; // Onboard LED void setup() pinMode(IRSensor, INPUT); pinMode(LED, OUTPUT); void loop() int sensorStatus = digitalRead(IRSensor); if (sensorStatus == LOW) // LOW means obstacle detected digitalWrite(LED, HIGH); else digitalWrite(LED, LOW); Use code with caution. 5. Typical Applications Robotic obstacle avoidance (e.g., smart cars). Counting products on a conveyor belt. Proximity detection for automatic door systems. Non-contact limit switches. Conclusion
The module is a compact infrared obstacle avoidance sensor, typically found on a small PCB measuring about . Its primary function is to detect the presence of an object in its path by emitting and then looking for reflected infrared light. It is widely used in robotics for collision avoidance, in industrial settings for object counting, and in DIY projects for presence detection. The FC-51 is a popular, low-cost infrared proximity
An is almost always caused by a reversed power supply connection (wiring VCC to GND and vice versa), or an overvoltage exceeding its maximum
The digital output (OUT) pin is designed to send a low-current signal to a microcontroller GPIO pin. OUT : Digital output interface (connects to MCU I/O)
2cm to 30cm (Adjustable via the onboard multi-turn potentiometer) Detection Angle: 35 degrees Key Onboard Components
All key electrical and physical parameters are compiled below for quick reference.
If your microcontroller supports 3.3V logic (like an ESP32, Raspberry Pi, or Arduino Due), power the FC-51 with 3.3V instead of 5V. This reduces the overall current draw and keeps the module operating much cooler.