Fc 51 Ir Sensor Datasheet -

Fc 51 Ir Sensor Datasheet -

void loop() sensorState = digitalRead(sensorPin);

However, finding a consolidated, detailed datasheet for the FC-51 can be challenging. Many sellers provide only basic pinouts, leaving users to guess at critical specifications like current consumption, detection range, and timing characteristics. Fc 51 Ir Sensor Datasheet

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. Among the myriad of options available, the FC-51

| 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. GPIO.IN) int sensorPin = 2

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

int sensorPin = 2; int ledPin = 13; int sensorState = 0; void setup() pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600);