Fc 51 Ir Sensor Datasheet [ PREMIUM ◆ ]
By referencing this , you now have the complete technical picture: pinouts, voltage limits, range adjustment, code examples, and troubleshooting. Whether you’re building a line-following robot, a contactless switch, or a factory counter, the FC-51 offers a straightforward “detect or not detect” solution that integrates with almost any microcontroller.
| Feature | FC-51 | HC-SR04 (Ultrasonic) | TCRT5000 (Reflective) | | :--- | :--- | :--- | :--- | | | IR reflection | Sound wave echo | IR reflection | | Output | Digital (HIGH/LOW) | Analog (PWM width) | Analog/Digital (with add-on) | | Max Range | ~30 cm | ~400 cm | ~10 cm | | Color Sensitive? | Yes (dark objects reduce range) | No | Yes | | Cost | Very low ($1-2) | Low ($2-4) | Very low ($0.5-1) | | Best Use | Proximity switch, line follow (short range) | Distance measurement | Line following (very short) | Fc 51 Ir Sensor Datasheet
| Condition | Output Pin | Output LED | | :--- | :--- | :--- | | No object in front | HIGH (1) | OFF | | Object within set range | LOW (0) | ON | The FC-51 features a small, blue potentiometer (variable resistor) on the back of the PCB. Turning this potentiometer changes the comparator’s reference voltage, effectively adjusting the sensitivity. By referencing this , you now have the
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) SENSOR_PIN = 17 GPIO.setup(SENSOR_PIN, GPIO.IN) | Yes (dark objects reduce range) | No
The FC-51 can run on 3.3V, making it safe for Pi GPIO. Use the same pinout but connect VCC to 3.3V.