Skip to main content

Datasheet | Fc 51 Ir Sensor

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.

By referencing this , you now have the complete technical picture: pinouts, voltage limits, range adjustment, code examples, and troubleshooting. Whether you’re building a line-following robot, a contactless switch, or a factory counter, the FC-51 offers a straightforward “detect or not detect” solution that integrates with almost any microcontroller. Fc 51 Ir Sensor Datasheet

void loop() sensorState = digitalRead(sensorPin); Introduction In the world of embedded systems and

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) SENSOR_PIN = 17 GPIO.setup(SENSOR_PIN, GPIO.IN) By referencing this , you now have the

delay(50);

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