Fc 51 Ir Sensor Datasheet May 2026

void loop() sensorState = digitalRead(sensorPin);

Happy sensing! Disclaimer: Specifications may vary slightly between manufacturers. Always test your specific module with a multimeter before integrating into a final design. Fc 51 Ir Sensor Datasheet

| Condition | Output Pin | Output LED | | :--- | :--- | :--- | | No object in front | HIGH (1) | OFF | | Object within set range | LOW (0) | ON | The FC-51 features a small, blue potentiometer (variable resistor) on the back of the PCB. Turning this potentiometer changes the comparator’s reference voltage, effectively adjusting the sensitivity. | Condition | Output Pin | Output LED

int sensorPin = 2; int ledPin = 13; int sensorState = 0; void setup() pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); Among the myriad of options available, the FC-51

Introduction In the world of embedded systems and robotics, few components are as ubiquitous or as essential as the infrared proximity sensor. Among the myriad of options available, the FC-51 IR Sensor stands out as a favorite for hobbyists and professionals alike. It is cheap, reliable, easy to interface with microcontrollers like Arduino, Raspberry Pi, and ESP32, and incredibly effective for non-contact object detection.

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) SENSOR_PIN = 17 GPIO.setup(SENSOR_PIN, GPIO.IN)