Fc 51 Ir Sensor Datasheet Here
The module uses a standard 3-pin male header for easy connection Art of Circuits ir sensor.docx - Slideshare
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.
The FC-51 can run on 3.3V, making it safe for Pi GPIO. Use the same pinout but connect VCC to 3.3V.
// IR Obstacle Collision Detection Module int LED = 13; // Use the onboard Uno LED int isObstaclePin = 7; // This is our input pin int isObstacle = HIGH; // HIGH means NO OBSTACLE Fc 51 Ir Sensor Datasheet
Due to its fast response time and low power footprint, the FC-51 excels in several automated environments:
The FC-51 is an ideal component for applications that require basic, close-range detection. While it is not the right tool for precise distance measurement, it provides a simple and proven method for detecting the presence or absence of an object.
FC-51 Sensor Arduino Uno / Microcontroller +--------------+ +--------------+ | VCC |------------------->| 5V | | GND |------------------->| GND | | OUT |------------------->| Digital Pin 2| +--------------+ +--------------+ Pull-Up Resistor Notice: The module uses a standard 3-pin male header
Disclaimer: Specifications may vary slightly between manufacturers. Always test your specific module with a multimeter before integrating into a final design.
2cm to 30cm (Adjustable via onboard potentiometer) Detection Angle: 35°
Mounted on the front or sides of wheeled robots to prevent collisions. Use the same pinout but connect VCC to 3
The FC-51 sensor module is designed for simplicity and reliability. Below are the core electrical and mechanical specifications: 3.3V to 5V DC Operating Current: ≥is greater than or equal to
However, some variants (or if you modify the comparator circuitry) can invert this behavior. Always test with an LED and resistor first.