Fc 51 Ir Sensor Datasheet ❲2026❳
The LM393 comparator compares the voltage from the photodiode against a reference voltage set by the onboard potentiometer.
void setup() pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600);
Sunlight and strong fluorescent lighting contain high amounts of IR radiation. This can saturate the receiver and cause false triggers. Avoid using this sensor in direct sunlight.
The following are the standard technical specifications for the FC-51 module. Please note that slight variations may occur between manufacturers. Fc 51 Ir Sensor Datasheet
While highly functional, the FC-51 has inherent limitations due to the physics of infrared light:
Mounted on the front or sides of wheeled robots to prevent collisions.
// Define the sensor pin const int SENSOR_PIN = 2; const int LED_PIN = 13; // Onboard Arduino LED void setup() pinMode(SENSOR_PIN, INPUT); pinMode(LED_PIN, OUTPUT); Serial.begin(9600); Serial.println("FC-51 IR Sensor Initialized."); void loop() // Read the digital state of the sensor int sensorState = digitalRead(SENSOR_PIN); // FC-51 outputs LOW when an obstacle is detected if (sensorState == LOW) digitalWrite(LED_PIN, HIGH); // Turn on onboard LED Serial.println("Status: Obstacle Detected!"); else digitalWrite(LED_PIN, LOW); // Turn off onboard LED Serial.println("Status: Path Clear"); delay(100); // Small delay to avoid flooding the serial monitor Use code with caution. Common Applications The LM393 comparator compares the voltage from the
Mounted on the front or sides of autonomous rovers to prevent collisions.
The LM393 compares this voltage drop to the potentiometer setting. If the reflection is strong enough, the comparator flips the OUT pin to 0V. Interfacing FC-51 with Arduino
The sensitivity is too low, or the power supply voltage is dropping below 3.3V. Avoid using this sensor in direct sunlight
The use of an IR LED pair allows the sensor to perform well under moderate ambient light conditions.
A small trim-pot used to adjust the sensitivity and detection distance. Indicator LEDs: Power LED: Glows when the module is powered. Signal LED: Lights up when an object is detected. Pinout Configuration