Fc 51 Ir Sensor Datasheet [upd]

Line following (can distinguish between black and white surfaces). Hand-wave switches or touchless triggers.

void loop() int sensorValue = digitalRead(sensorPin); // Read the sensor

The is a popular infrared (IR) obstacle avoidance sensor module commonly used in Arduino and robotics projects . It uses an IR transmitter (LED) and receiver (phototransistor) to detect objects within a specific range by measuring the reflection of infrared light. Technical Specifications

Most FC-51 modules feature an onboard pull-up resistor on the OUT pin, meaning it is safe to connect directly to standard logic pins without adding an external resistor. 6. Arduino Integration Code Example Fc 51 Ir Sensor Datasheet

Turning the onboard potentiometer clockwise usually the detection range (making it more sensitive). Counterclockwise decreases the range. This works by changing the comparator's reference threshold.

The FC-51 IR sensor has some limitations:

/* FC-51 IR Sensor - Basic Obstacle Detection Assumption: Sensor outputs LOW when object detected. Adjust logic if your sensor is ACTIVE HIGH. */ Line following (can distinguish between black and white

delay(200); // Small delay to avoid flooding the serial monitor

The onboard LM393 comparator compares the voltage from the receiver against a reference voltage set by the user.

Wiring the FC-51 to an Arduino is straightforward: It uses an IR transmitter (LED) and receiver

delay(50); // Small delay for debouncing

A voltage comparator chip that processes the signal from the receiver to determine if an object is present.

Automatic faucets, soap dispensers, and hand dryers.

The following specifications are typical for the standard FC-51 module. Always check your specific vendor datasheet, but the values below are industry-standard.