In the world of embedded systems and robotics, obstacle detection is one of the most fundamental requirements. Among the myriad of sensors available for this task, the FC-51 IR Sensor Module stands out as one of the most popular, affordable, and reliable choices for hobbyists and professionals alike.
void loop() int sensorState = digitalRead(sensorPin); Fc 51 Ir Sensor Datasheet
Operating Voltage: 3.0V to 6.0V DC (Typically used at 3.3V or 5V). Current Consumption: ~23 mA at 3.3V. ~43 mA at 5.0V. The Complete Guide to the FC-51 IR Sensor:
Q4: Why does my sensor detect objects even when nothing is there? A: You may have set the sensitivity too high. The sensor is detecting the floor or table surface. Turn the potentiometer counter-clockwise until the detection stops. Current Consumption: ~23 mA at 3
Rating: 4.5/5
Applications:
| Parameter | Value | |-----------|-------| | Response Time | ~2–10 ms | | Output Frequency | ~50–100 Hz (typical) | | Settling Time after power-up | <50 ms |
/*
FC-51 IR Sensor - Basic Obstacle Detection
Assumption: Sensor outputs LOW when object detected.
Adjust logic if your sensor is ACTIVE HIGH.
*/