Fc 51 Ir Sensor Datasheet =link=
Avoid using the FC-51 in direct sunlight. If necessary, build a small physical shroud or hood over the IR receiver to block ambient top-down lighting. Share public link
Because of its compact size and low power consumption, the FC-51 is a staple in various electronics applications:
Reflect maximum IR light, resulting in the maximum detection range (up to 30cm). Fc 51 Ir Sensor Datasheet
Example Arduino pseudo-code:
When an object enters the detection range, the emitted IR light bounces off the surface of the object. Avoid using the FC-51 in direct sunlight
int sensorValue = 0; int objectDetected = false;
// FC-51 IR Sensor Testing Code const int irSensorPin = 2; // Connect OUT pin to Digital Pin 2 const int ledPin = 13; // Built-in Arduino LED void setup() pinMode(irSensorPin, INPUT); // Set sensor pin as input pinMode(ledPin, OUTPUT); // Set LED pin as output Serial.begin(9600); // Initialize serial communication Serial.println("FC-51 IR Sensor Initialized."); void loop() // Read the sensor output (LOW = obstacle detected) int sensorState = digitalRead(irSensorPin); if (sensorState == LOW) digitalWrite(ledPin, HIGH); // Turn on onboard LED Serial.println("Obstacle Detected!"); else digitalWrite(ledPin, LOW); // Turn off onboard LED Serial.println("Path Clear."); delay(100); // Small delay to prevent serial flooding Use code with caution. Core Applications Example Arduino pseudo-code: When an object enters the
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
void setup() pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600);
The FC-51 module houses an onboard or a standard LM393 voltage comparator IC, alongside an IR emitter and receiver pair.
The FC-51 relies on basic optical reflection principles. The transparent IR LED constantly emits infrared light at a specific wavelength (typically around 950nm), which is invisible to the human eye. IR light propagates forward in a 35-degree cone.