Smart Obstacle Detection Using Arduino UNO and FC-51 Module

Arduino 03-05-26
381 0

Tutorial plan

1- Objective of the project

2- Required Components

3- Circuit Connections of system

4- Arduino program

 

 

Objective of the project

The objective of this project is to design and build a smart obstacle detection system using the Arduino UNO, the FC-51 infrared sensor, an LCD I2C display, and a buzzer. This system aims to detect the presence of nearby objects without physical contact and to provide both visual and audible feedback to the user. It helps learners understand how sensors interact with microcontrollers, how to display information in real time, and how to create simple alert systems. Such a project is useful in many applications like robotics, security systems, and automated devices.

Functioning

The system operates by using the FC-51 infrared sensor to continuously monitor the space in front of it. When an object comes within the sensor’s detection range, the sensor sends a digital signal to the Arduino UNO. The microcontroller processes this signal and immediately triggers two actions. First, it activates the buzzer to produce a sound alert, indicating that an obstacle has been detected. Second, it sends a message to the LCD I2C display to show information such as “Obstacle Detected” or “No Obstacle.”

When no object is present, the sensor output remains inactive, and the Arduino keeps the buzzer turned off while the LCD displays a normal status message. This continuous loop allows real-time monitoring of the environment. The use of the I2C interface simplifies the wiring of the LCD, requiring fewer pins and making the system more efficient and easier to build. Overall, the project demonstrates how different electronic components can work together to create an interactive and responsive detection system.

 

Required Components

1. Arduino UNO

Arduino Uno

The Arduino UNO is the main microcontroller board that controls the entire system. It processes the signals received from the sensor and decides how the other components should respond. It acts as the “brain” of the project by executing the programmed instructions.

2. FC-51 sensor

The FC-51 IR Sensor Module is used to detect obstacles. It emits infrared rays and measures the reflection from nearby objects. When an obstacle is present, the sensor sends a digital signal (HIGH or LOW) to the Arduino. It also includes a potentiometer that allows adjusting the detection sensitivity and distance.

3. LCD Display with I2C Module

The I2C LCD 16x2 Display is used to display messages such as “Object Detected”.

4. Buzzer 

The buzzer is an output component that produces sound. In this project, it is activated when an obstacle is detected, providing an audible alert to the user. It is simple to use and requires only one control pin from the ESP32.

5. Breadboard 

Breadboard

A breadboard is used to assemble the circuit without soldering. It makes it easy to connect and modify the components during testing and development.

6. Jumper Wires

Jumper wires

Jumper wires are used to connect the Arduino UNO, FC-51 sensor, and LCD display together. They ensure proper electrical connections between all components.

 

Circuit Connections of system

 

1- Connection of FC-51 sensor to Arduino UNO

FC-51 sensor Arduino UNO
VCC 3V
GND GND
OUT D2

 

2- Connection of LCD I2C display to Arduino UNO

LCD I2C display Arduino UNO
VCC 5V
GND GND
SDA A4
SCL A5

 

3- Connection of Buzzer to Arduino UNO

Buzzer Arduino UNO
Terminal (+) D3
Terminal (-) GND

 

Arduino program of system

This Arduino program implements a smart obstacle detection system using an infrared sensor, a buzzer, and an I2C LCD display. It continuously monitors the environment and provides both visual and audible feedback when an object is detected.

You need to install this library : LiquidCrystal_I2C for I2C LCD screen.

 

At the beginning, the program includes the necessary libraries for I2C communication and LCD control. It then initializes the LCD display (20 columns × 4 rows) and defines two pins: one connected to the FC-51 infrared sensor and the other to the buzzer. In the setup() function, the sensor pin is configured as an input and the buzzer pin as an output. The LCD is initialized, its backlight is turned on, and a welcome message (“System Ready…”) is displayed for two seconds before clearing the screen.

In the loop() function, the Arduino continuously reads the digital signal from the sensor. If an obstacle is detected (the sensor outputs a LOW signal), the program activates the buzzer and displays “Object Detected” along with “Buzzer ON” on the LCD. If no obstacle is present (HIGH signal), the buzzer is turned off and the LCD shows “No Object” and “Buzzer OFF.”

0 comment

Leave a comment

Veuillez noter s'il vous plaît*

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Purpose of this website

Educational robotics refers to the use of robots and robotics technology to promote learning in educational settings. It involves the integration of technology, engineering, and computer science into the classroom, allowing students to engage in hands-on, project-based learning experiences.
In this context, our website represents an excellent resource for parents, teachers and children who wish to discover robotics.

Contact details

Zaouiet Kontech-Jemmel-Monastir-Tunisia

Pictures of the articles

Robotic site created by Mohamed Ali Haj Salah - Teacher info