HL7 Terminology (THO)
3.0.0 - Publication
Its core function is to determine if an object is present within a certain distance in front of the sensor, outputting a simple digital signal indicating a "clear" or "obstacle" condition.
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.
White and light-colored surfaces reflect IR light exceptionally well, maximizing range. Black or dark surfaces absorb IR light, severely reducing the detection distance (sometimes down to less than a centimeter).
Here are some example code snippets to quickly get the FC-51 up and running. Fc 51 Ir Sensor Datasheet
The FC-51 IR sensor offers several key features that make it a popular choice for various applications:
⚠️ : The FC-51 module is sometimes found under other brand names or model numbers, such as "MH-B" or "MH-Sensor-Series Flying-fish".
Connecting the FC-51 to an Arduino requires only three jumper wires. Below is a step-by-step guide to building a basic obstacle detection circuit. Circuit Connections →right arrow Arduino 5V FC-51 GND →right arrow Arduino GND FC-51 OUT →right arrow Arduino Digital Pin 2 Arduino Example Code Its core function is to determine if an
Power LED (Red) and Obstacle Detection LED (Green/Red depending on the manufacturer) Working Principle The FC-51 operates on the principle of infrared reflection.
Adjustable from 2cm to 30cm via an onboard potentiometer.
If the reflected light is strong enough to pass the threshold, the LM393 pulls the OUT pin LOW and illuminates the green "Obstacle" LED. The Impact of Color and Material The FC-51 IR sensor offers several key features
// Define Pin Allocations const int irSensorPin = 2; // OUT pin connected to Digital Pin 2 const int ledPin = 13; // Onboard Arduino LED void setup() // Initialize Serial Communication Serial.begin(9600); // Configure Pin Modes pinMode(irSensorPin, INPUT); pinMode(ledPin, OUTPUT); void loop() // Read the sensor output (LOW means obstacle detected) int sensorState = digitalRead(irSensorPin); if (sensorState == LOW) digitalWrite(ledPin, HIGH); // Turn on the LED Serial.println("Obstacle Detected!"); else digitalWrite(ledPin, LOW); // Turn off the LED Serial.println("Path Clear."); delay(100); // Small delay to avoid flooding the serial monitor Use code with caution. Common Applications
The FC-51's simplicity makes it a great entry-level sensor.
The module operates based on . An onboard IR LED (the transparent transmitter) continuously emits infrared light. When an object enters the detection range, the light bounces off the object's surface and is captured by the IR receiver (the black photodiode). Go to product viewer dialog for this item. Googlehttps://www.google.com