If the reflected light is strong enough (meaning an object is close), the comparator pulls the Output (OUT) pin LOW (0V) . When no obstacle is detected, the OUT pin remains HIGH (VCC) . Technical Specifications Value / Range Operating Voltage 3.3V to 5.0V DC Operating Current Detection Distance 2cm to 30cm (Adjustable via potentiometer) Detection Angle Output Type Digital signal (Built-in comparator output) Output Level TTL level (Low when obstacle detected, High when clear) Comparator IC Dimensions 3.2cm × 1.4cm Mounting Hole Size Pinout Configuration
The following specifications are typical for the standard FC-51 module. Always check your specific vendor datasheet, but the values below are industry-standard.
💡 : Think of the FC-51 like a flashlight (IR emitter) in a dark room, with your eyes (IR receiver) looking for the reflection. If you shine the flashlight and the reflection is bright (object detected), you know something is there. The potentiometer is like squinting or opening your eyes wider, which changes how bright the reflection needs to be for you to say "yes, I see something."
If you find the detection range is too short (e.g., under 10cm), try . Pushing them slightly closer or ensuring they are perfectly parallel can sometimes improve the range up to 30cm. Fc 51 Ir Sensor Datasheet
If the reflection is strong enough (meaning an object is close), the module drives its digital output pin ( OUT ) LOW (0V) and illuminates the onboard obstacle indicator LED. If no obstacle is present, the output remains HIGH (VCC) . 2. Technical Specifications Specification Value Operating Voltage (VCC) 3.3V to 5V DC Operating Current ≥is greater than or equal to Output Type
else objectDetected = false; digitalWrite(ledPin, LOW); // Turn LED OFF // No output for "clear" to avoid spamming.
Turning the onboard potentiometer clockwise usually the detection range (making it more sensitive). Counterclockwise decreases the range. This works by changing the comparator's reference threshold. If the reflected light is strong enough (meaning
Reflect maximum IR light, resulting in the maximum detection range (up to 30cm).
Digital signal (LOW when an obstacle is detected, HIGH when the path is clear).
Connect the FC-51 sensor to an Arduino board using the following pin map: →right arrow Arduino 5V or 3.3V GND →right arrow Arduino GND OUT →right arrow Arduino Digital Pin 2 Sample Arduino Code Always check your specific vendor datasheet, but the
The following sketch reads the digital state of the FC-51 sensor and prints the status to the Serial Monitor. It also illuminates the built-in Arduino LED (Pin 13) when an obstacle is detected.
: Use the onboard potentiometer to adjust sensitivity. Turning it clockwise usually increases the detection distance.
The FC-51 IR sensor module is a staple in the world of hobbyist electronics and prototyping. It provides a simple, efficient, and cost-effective solution for non-contact object detection and is ideal for a vast array of robotics and automation projects. While it lacks the official documentation of industrial sensors, the information compiled in this article serves as a definitive technical guide. By understanding its specifications, operational principles, calibration procedures, and limitations, you can successfully integrate the FC-51 into your next project and achieve reliable performance.
The FC-51 is a simple sensor and is . Ambient light, especially sunlight, can cause false triggers as the phototransistor may detect other IR sources. Temperature variations also affect the IR components and can change the detection threshold.
