Fc 51 Ir Sensor Datasheet -
Always test your specific module’s output logic (Active HIGH vs. Active LOW) and refer to the manufacturer’s datasheet for exact thresholds. Happy building! For more technical resources, including the original LM393 datasheet and application notes on IR reflectance, check the reference links below.
Simply change the condition to:
A: If your module has an AOUT pin, read it using an ADC pin. If not, you can solder a wire directly to the phototransistor's collector or the comparator's non-inverting input. Fc 51 Ir Sensor Datasheet
void setup() pinMode(irSensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); Serial.println("FC-51 Obstacle Detector Ready");
The maximum current you can draw from the OUT pin is limited by the LM393's output stage. Do not connect the output directly to a heavy load (like a motor). Use a transistor or a microcontroller input. 6. FC-51 vs Other IR Sensors (Comparison) | Feature | FC-51 | TCRT5000 (Module) | Sharp GP2Y0A21 | | :--- | :--- | :--- | :--- | | Output Type | Digital (fixed threshold) | Analog (variable) | Analog (variable) | | Detection Range | 2-30 cm | 1-15 cm | 10-80 cm | | Distance Measurement | No (only threshold) | Possible with ADC | Yes (linearized) | | Ambient Light Reject | Moderate | Low | High (modulated) | | Cost | Very Low ($1-2) | Low ($2-3) | High ($10-15) | | Best For | Obstacle detection, line following | Short-range proximity | Distance sensing applications | 7. Interfacing the FC-51 with Arduino (with Code Example) Now, let's put the datasheet knowledge to practice. Below is a complete example of connecting the FC-51 to an Arduino Uno and using the digital output to turn on an LED or print a message to the serial monitor. Circuit Connection: | FC-51 Pin | Arduino Uno Pin | | :--- | :--- | | VCC | 5V | | GND | GND | | OUT | Digital Pin 7 | Always test your specific module’s output logic (Active
It has a built-in potentiometer to adjust the detection threshold (sensitivity range). 2. FC-51 Sensor Pinout Before diving into the datasheet numbers, let's look at the physical interface. The FC-51 module typically has three pins (although some variants have 4, with an extra analog output pin).
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. For more technical resources, including the original LM393
// If sensor reads LOW (object detected) if (sensorValue == LOW) objectDetected = true; digitalWrite(ledPin, HIGH); // Turn LED ON Serial.println("Obstacle Detected!");