The FC-51 is a compact, low-cost infrared (IR) sensor module designed for digital obstacle detection. It operates by emitting infrared light from an IR LED and detecting the reflected light using a phototransistor. If an object is close enough, the reflected IR intensity is high, and the module outputs a digital signal (either HIGH or LOW) indicating the presence of the object.
Unlike analog IR sensors (such as the TCRT5000-based modules), the FC-51 includes an onboard comparator circuit (typically an LM393 chip) that converts the analog signal from the phototransistor into a clean digital output. This makes it extremely easy to interface with microcontrollers like Arduino, Raspberry Pi, ESP32, or STM32.
Key Feature: It has a built-in potentiometer to adjust the detection threshold (sensitivity range).
Simply change the condition to:
if (sensorValue == HIGH) { // Object detected
The FC-51 can run on 3.3V, making it safe for Pi GPIO. Use the same pinout but connect VCC to 3.3V.
Python Sample Code (using RPi.GPIO):
import RPi.GPIO as GPIO import timeGPIO.setmode(GPIO.BCM) SENSOR_PIN = 17 GPIO.setup(SENSOR_PIN, GPIO.IN) Fc 51 Ir Sensor Datasheet
try: while True: if GPIO.input(SENSOR_PIN) == GPIO.LOW: print("Object detected") else: print("Clear") time.sleep(0.1) except KeyboardInterrupt: GPIO.cleanup()
If you are building a line-following robot, a tachometer, or a proximity alarm, chances are you’ve stumbled upon the FC-51 IR Sensor Module. It is one of the most ubiquitous, low-cost infrared obstacle avoidance sensors on the market. The FC-51 is a compact, low-cost infrared (IR)
However, finding a clear, consolidated datasheet for the FC-51 can be frustrating. Most sellers provide only a pinout diagram. In this post, we have compiled the essential technical specifications, pin configuration, wiring guide, and application tips you would find in a standard datasheet.
Search the module name "FC-51 IR sensor datasheet" plus the vendor name or part number printed on the PCB; look for PDF datasheets from electronics suppliers or manufacturers.
Related search suggestions will be provided. Simply change the condition to: if (sensorValue ==
The FC-51 module is compact and features a small number of components. Understanding the layout is crucial for correct wiring.