Fc 51 Ir Sensor Datasheet Jun 2026
Positioned across a conveyor belt to count items as they break the IR beam.
Placed at the front of wheeled robots to prevent collisions.
Mounted on the front of wheeled smart cars to prevent collisions.
// FC-51 IR Sensor Testing Code const int irSensorPin = 2; // OUT pin connected to digital pin 2 const int ledPin = 13; // Built-in LED for visual alert void setup() pinMode(irSensorPin, INPUT); // Set sensor pin as input pinMode(ledPin, OUTPUT); // Set LED pin as output Serial.begin(9600); // Initialize serial monitor Serial.println("FC-51 Sensor Initialized."); void loop() int sensorState = digitalRead(irSensorPin); // Read the digital value if (sensorState == LOW) // Low signal indicates an obstacle is present digitalWrite(ledPin, HIGH); Serial.println("Status: Obstacle Detected!"); else // High signal indicates clear path digitalWrite(ledPin, LOW); Serial.println("Status: Path Clear"); delay(100); // Small delay to avoid flooding the serial monitor Use code with caution. Practical Applications Fc 51 Ir Sensor Datasheet
print('Checking for obstacles...') while True: if sensor.value() == 0: print('Obstacle detected!') switching() # Debounce: Wait until the sensor is clear again while True: time.sleep(0.5) if sensor.value() == 1: break time.sleep(0.1)
Add a decoupling capacitor (e.g., 0.1µF) across VCC and GND close to the sensor.
The black photodiode receives the reflected IR light, altering its internal resistance based on the intensity of the returned signal. Positioned across a conveyor belt to count items
The module features a compact design, an onboard potentiometer for sensitivity adjustment, and a dual-indicator LED system (one for power, one for obstacle detection status). Key Technical Specifications
The FC-51 only provides a digital HIGH/LOW signal. It cannot tell you the exact distance to an object; it can only tell you if an object is within its threshold zone. If your project requires precise distance measurement, consider using an ultrasonic sensor (HC-SR04) or a Time-of-Flight (ToF) sensor.
Follow these steps for accurate calibration: // FC-51 IR Sensor Testing Code const int
. It consists of an IR transmitter and receiver pair, using a comparator circuit (LM393) to provide a simple digital output Ktechnics Systems Technical Specifications Operating Voltage: 3.0V to 6.0V DC Current Consumption: approximately at 3.3V and Detection Range: 2 cm to 30 cm (adjustable via onboard potentiometer) Art of Circuits Detection Angle: Output Signal: Digital (High = No Obstacle, Low = Obstacle Detected) Art of Circuits Dimensions: Approximately 43mm x 16mm x 7mm Радіокомпоненти Pinout & Hardware Features
The module typically comes with a 3-pin male header interface:
This program uses the FC-51 as a touchless button, toggling the onboard LED each time an object passes in front of the sensor.


