PAID SUBSCRIPTION

Fc 51 Ir Sensor Datasheet [new]

Understanding the physical board layout helps optimize the sensor for different environmental conditions. The LM393 Comparator IC

Ground connection. Connect this to the common system ground.

Understanding the physical layout of the FC-51 PCB helps during installation and calibration: Fc 51 Ir Sensor Datasheet

Mounted on the front or sides of wheeled robots to prevent collisions.

const int sensorPin = 2; // Pin connected to FC-51 OUT const int ledPin = 13; // Built-in LED void setup() pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); void loop() int sensorState = digitalRead(sensorPin); if (sensorState == LOW) // Obstacle detected digitalWrite(ledPin, HIGH); Serial.println("Obstacle Detected!"); else // Path clear digitalWrite(ledPin, LOW); Serial.println("Path Clear"); delay(100); Use code with caution. Understanding the physical board layout helps optimize the

int sensorPin = 2; int ledPin = 13;

On some variants, the middle pin is VCC and the outer pin is OUT. Use a multimeter to confirm if unsure. Understanding the physical layout of the FC-51 PCB

When an object enters the detection range, the light reflects back to the photodiode.