Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use FC-51 IR Obstacle Sensor (Detection Indicator On): Examples, Pinouts, and Specs

Image of FC-51 IR Obstacle Sensor (Detection Indicator On)
Cirkit Designer LogoDesign with FC-51 IR Obstacle Sensor (Detection Indicator On) in Cirkit Designer

Introduction

The FC-51 IR Obstacle Sensor is a compact and efficient device designed to detect obstacles using infrared (IR) light. It works by emitting IR signals and measuring the reflected light to determine the presence of an object. When an obstacle is detected, the onboard detection indicator (an LED) lights up, providing a clear visual signal. This sensor is widely used in robotics, automation systems, and proximity detection applications due to its simplicity and reliability.

Explore Projects Built with FC-51 IR Obstacle Sensor (Detection Indicator On)

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
IR Obstacle Detection System with Relay-Controlled Gearmotors and Boost Converters
Image of LFR 1: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
This circuit consists of two FC-51 IR Obstacle Sensors connected to two KF-301 relays, which likely serve as triggers for switching the relays. Four gearmotors are powered through two XL6009E1 Boost Converters, which are likely used to step up the voltage from a 2-cell 18650 Li-ion battery pack. The relays appear to control the power flow to the boost converters, and thus to the gearmotors, based on the obstacle detection inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO R4 WiFi with IR Obstacle Detection and OLED Display
Image of proximtiy sensor: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
This circuit features an Arduino UNO R4 WiFi connected to a 0.96" OLED display and an FC-51 IR Obstacle Sensor. The Arduino powers both the display and the sensor, and it communicates with the OLED via I2C (using A4 and A5 pins as SDA and SCL). The IR sensor's output is read by the Arduino on digital pin D2 to detect the presence of obstacles, and the detection status is displayed on the OLED screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Controlled IR Sensor and Servo Motor Obstacle Interaction
Image of IR sensor: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an FC-51 IR sensor, two red LEDs, and an SG90 servo motor. The IR sensor output is connected to the Arduino's digital pin D8, which also controls one LED, while the other LED is controlled by pin D3 along with the servo motor's PWM signal. The Arduino runs a sketch that activates the servo and lights up the corresponding LED when the IR sensor detects an obstacle, indicating the servo's position and sensor status visually.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Obstacle Detection System with Buzzer Alert
Image of simple avoidance alarm: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
This circuit uses an Arduino UNO to control a buzzer based on input from an FC-51 IR Obstacle Sensor. When the sensor detects an obstacle, the Arduino activates the buzzer to alert the presence of the obstacle.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with FC-51 IR Obstacle Sensor (Detection Indicator On)

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of LFR 1: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
IR Obstacle Detection System with Relay-Controlled Gearmotors and Boost Converters
This circuit consists of two FC-51 IR Obstacle Sensors connected to two KF-301 relays, which likely serve as triggers for switching the relays. Four gearmotors are powered through two XL6009E1 Boost Converters, which are likely used to step up the voltage from a 2-cell 18650 Li-ion battery pack. The relays appear to control the power flow to the boost converters, and thus to the gearmotors, based on the obstacle detection inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of proximtiy sensor: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
Arduino UNO R4 WiFi with IR Obstacle Detection and OLED Display
This circuit features an Arduino UNO R4 WiFi connected to a 0.96" OLED display and an FC-51 IR Obstacle Sensor. The Arduino powers both the display and the sensor, and it communicates with the OLED via I2C (using A4 and A5 pins as SDA and SCL). The IR sensor's output is read by the Arduino on digital pin D2 to detect the presence of obstacles, and the detection status is displayed on the OLED screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of IR sensor: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
Arduino-Controlled IR Sensor and Servo Motor Obstacle Interaction
This circuit features an Arduino UNO microcontroller interfaced with an FC-51 IR sensor, two red LEDs, and an SG90 servo motor. The IR sensor output is connected to the Arduino's digital pin D8, which also controls one LED, while the other LED is controlled by pin D3 along with the servo motor's PWM signal. The Arduino runs a sketch that activates the servo and lights up the corresponding LED when the IR sensor detects an obstacle, indicating the servo's position and sensor status visually.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of simple avoidance alarm: A project utilizing FC-51 IR Obstacle Sensor (Detection Indicator On) in a practical application
Arduino UNO Obstacle Detection System with Buzzer Alert
This circuit uses an Arduino UNO to control a buzzer based on input from an FC-51 IR Obstacle Sensor. When the sensor detects an obstacle, the Arduino activates the buzzer to alert the presence of the obstacle.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Obstacle detection in robotics
  • Line-following robots
  • Automated doors and gates
  • Object counters
  • Proximity-based triggering systems

Technical Specifications

The following table outlines the key technical details of the FC-51 IR Obstacle Sensor:

Parameter Specification
Operating Voltage 3.3V to 5V
Operating Current 20mA (typical)
Detection Range 2cm to 30cm (adjustable)
Detection Angle ≤ 35°
Output Type Digital (High/Low)
Dimensions 3.1cm x 1.5cm x 0.7cm

Pin Configuration and Descriptions

The FC-51 IR Obstacle Sensor has a 3-pin interface. The pin configuration is as follows:

Pin Name Pin Number Description
VCC 1 Power supply pin (3.3V to 5V)
GND 2 Ground pin
OUT 3 Digital output pin (High when no obstacle, Low when obstacle detected)

Usage Instructions

How to Use the FC-51 IR Obstacle Sensor in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.
  2. Connect the Output: Connect the OUT pin to a digital input pin of your microcontroller (e.g., Arduino UNO).
  3. Adjust the Sensitivity: Use the onboard potentiometer to adjust the detection range. Turning the potentiometer clockwise increases the sensitivity, while turning it counterclockwise decreases it.
  4. Monitor the Output: When an obstacle is detected within the sensor's range, the OUT pin will output a LOW signal, and the onboard LED will light up.

Important Considerations and Best Practices

  • Ambient Light: Avoid using the sensor in environments with strong ambient IR light (e.g., direct sunlight), as it may interfere with detection accuracy.
  • Mounting: Ensure the sensor is mounted securely and aligned properly for optimal detection.
  • Power Supply: Use a stable power supply to avoid erratic behavior.
  • Distance Adjustment: Fine-tune the potentiometer to match the desired detection range for your application.

Example Code for Arduino UNO

Below is an example of how to use the FC-51 IR Obstacle Sensor with an Arduino UNO:

// FC-51 IR Obstacle Sensor Example Code
// Connect the OUT pin of the sensor to Arduino digital pin 2

const int sensorPin = 2;  // Sensor output pin connected to digital pin 2
const int ledPin = 13;    // Onboard LED pin for visual feedback

void setup() {
  pinMode(sensorPin, INPUT);  // Set sensor pin as input
  pinMode(ledPin, OUTPUT);    // Set LED pin as output
  Serial.begin(9600);         // Initialize serial communication
}

void loop() {
  int sensorValue = digitalRead(sensorPin);  // Read the sensor output

  if (sensorValue == LOW) {
    // Obstacle detected
    digitalWrite(ledPin, HIGH);  // Turn on the LED
    Serial.println("Obstacle detected!");
  } else {
    // No obstacle
    digitalWrite(ledPin, LOW);   // Turn off the LED
    Serial.println("No obstacle.");
  }

  delay(100);  // Small delay for stability
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The sensor is not detecting obstacles:

    • Ensure the sensor is powered correctly (check VCC and GND connections).
    • Adjust the potentiometer to increase the sensitivity.
    • Verify that the obstacle is within the detection range (2cm to 30cm).
  2. False detections or erratic behavior:

    • Check for strong ambient IR light sources and reduce their influence.
    • Ensure a stable power supply to the sensor.
    • Verify that the sensor is not obstructed by dirt or debris.
  3. The onboard LED does not light up:

    • Confirm that the sensor is receiving power.
    • Check the obstacle's position and ensure it is within the detection range.
    • Inspect the potentiometer for proper adjustment.

FAQs

Q: Can the FC-51 IR Obstacle Sensor detect transparent objects?
A: The sensor may struggle to detect transparent or highly reflective objects due to insufficient IR reflection.

Q: How do I increase the detection range?
A: Use the onboard potentiometer to adjust the sensitivity. Turn it clockwise to increase the range.

Q: Can I use the sensor with a 3.3V microcontroller?
A: Yes, the sensor operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V systems.

Q: What is the maximum detection angle of the sensor?
A: The sensor has a detection angle of ≤ 35°, so ensure obstacles are within this range for accurate detection.