51 Ir Sensor Datasheet - Fc

led_onboard = Pin(25, Pin.OUT, value=0)

| Pin Number | Name | Function | | :--- | :--- | :--- | | 1 | | Digital output signal (HIGH = no object, LOW = object detected) | | 2 | VCC | Power supply input (3.3V or 5V) | | 3 | GND | Ground (0V) |

The detection range is highly dependent on the . A white, glossy surface will be detected much farther away than a black, matte surface. The 2–30 cm range specification is typical for a standard, neutral-colored target in ideal conditions. Fc 51 Ir Sensor Datasheet

[IR Emitter] --------> (Infrared Light Beam) --------> [Obstacle] | [IR Receiver] <------- (Reflected Light) <------------------+ | [LM393 Comparator] ---> Compares with threshold preset by Potentiometer | [OUT Pin] ------------> Drops to LOW logic state

Sunlight and strong incandescent bulbs emit heavy infrared radiation. Operating the FC-51 under direct sunlight can flood the photodiode, triggering false positives. 6. Microcontroller Integration: Arduino Example led_onboard = Pin(25, Pin

Compares the analog voltage from the IR receiver against a reference voltage. It converts the analog reading into a clean, noise-free digital high/low signal.

For a Raspberry Pi Pico running MicroPython, the wiring is similar: triggering false positives. 6.

| Feature | FC-51 | TCRT5000 (Reflective) | Sharp GP2Y0A21 (Analog) | |---------|-------|------------------------|---------------------------| | Output | Digital | Digital (needs comparator) | Analog voltage | | Range | 2–30 cm | 1–15 cm | 10–80 cm | | Distance measurement | No | No | Yes | | Cost | $1–2 | $0.5–1 (bare) | $10–15 |

: The transmitter continuously sends out IR waves at a specific frequency.

# Bibliotheken laden from machine import Pin from time import sleep