The module features an onboard IR transmitter (a clear IR LED) that continuously emits a beam of infrared light.
The black-tinted photodiode captures the reflected IR light. Its electrical resistance drops proportionally to the intensity of the received light.
*Note: The EN (Enable) pin is rarely populated on standard breakout boards; usually, the sensor is always enabled. Fc 51 Ir Sensor Datasheet
delay(50); // Small delay for debouncing
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. The module features an onboard IR transmitter (a
Q: What is the output type of the FC-51 IR sensor? A: The FC-51 IR sensor provides a digital output signal (HIGH/LOW).
Turning increases the detection distance (higher sensitivity). *Note: The EN (Enable) pin is rarely populated
The signal pin. It outputs a logical LOW (0V) when an obstacle is detected within the set threshold. It outputs a logical HIGH (VCC) when the path is clear. Hardware Components and Adjustment
To reliably detect objects at different distances, use the onboard potentiometer. Follow these steps:
: The onboard LM393 comparator processes this signal. If the reflected light intensity exceeds the threshold set by the potentiometer, the module triggers the OUT pin to LOW and lights up the onboard "Obstacle" LED. Common Applications