Jaypee Institute of Information Technology
University, Noida ’
Department of Electronics & Communication
Engineering
A Project Based Learning (PBL)
On
SONAR-BASED ALERT SYSTEM
Session ODD Semester
(2025-2026)
Submitted by: Submitted to: Dr Ajay Kumar
UTKARSH ARORA (2501180039)
LAKSHVEER SINGH (2501180055)
ARNAV GUPTA (2501180041)
Index
Brief Description of the Proposed Work
1. Components used
2. Circuit diagram
3. Working principle
4. Equations & Calculations
5. Photo of working model
6. Expected Outcome
7. Applications
8. Learning outcome
9. References
Aim
To construct a microcontroller-based alert system that uses an ultrasonic
sensor to measure distance, identifies the presence or motion of an object,
and displays the information on an LCD while activating an audible buzzer
alarm. The project aims to demonstrate sensor interfacing, distance
measurem ent, and real-tim e alert generation using Arduino.
Description Of The Project
The proposed work involves designing and implementing a ultrasonic object
detection and alert system using an Arduino Uno microcontroller. The system
uses an HC-SR04 ultrasonic sensor to continuously monitor a specific area for
any incoming object or movement. When the sensor detects that an object has
entered a predefined distance range, the Arduino interprets this as motion or
intrusion.
Upon detection, the system immediately activates a buzzer and LED indicators to
provide an audible and visual warning. At the same time, a 16×2 LCD display with
an I2C interface shows alert messages such as “Motion Detected” or “Object
Nearby” to inform the user about the event. This ensures that even in silent
environments, the alert can still be noticed visually.
The project demonstrates how ultrasonic sensing and microcontroller
programming can be combined to build a low- cost, efficient, and reliable motion
alert system. It also showcases practical skills such as sensor interfacing, real-time
signal processing, hardware integration, and embedded programming. This
system can be used in various real-world applications including basic home
security, object detection for automation, and safety monitoring in restricted
areas.
Components Used
1. Arduino Uno
A microcontroller board based on the ATmega328P
used to control the entire system, process sensor data,
and trigger the alert outputs.
2. HC-SR04 Ultrasonic Sensor
A Ultrasonic object detection system that emits
ultrasonic waves and measures the time taken for the
echo to return. It is used in this project to detect
motion or the presence of an object within a
predefined range.
3. 16×2 LCD Display with I2C Module
A character display used to show system messages
such as “Motion Detected” or “Alert!”.
The I2C interface reduces the number of wires needed
and simplifies communication with the Arduino.
4. Buzzer
Provides an audible alarm when motion is detected. It
alerts the user instantly about intrusion or object
presence.
5. LEDs (Indicator Lights)
Red/green LEDs used to give visual indicators of
system status — such as normal monitoring condition
or alert condition.
6. 220Ω Resistors
Used with LEDs to limit current and prevent damage to
the components.
7. Breadboard
A solder-free board used to prototype the circuit and
connect all components neatly.
8. Jumper Wires
Male-to-male wires used to make electrical
connections between the Arduino, sensor, display, and
other components.
9. USB Cable
Used to power the Arduino and upload the program
from the computer.
Circuit Diagram
The circuit consists of an Arduino Uno connected to an HC-SR04
ultrasonic sensor, a 16×2 LCD with an I2C module, a buzzer, and indicator
LEDs. The TRIG and ECHO pins of the ultrasonic sensor are connected to
Arduino digital pins D9 and D10, while its VCC and GND are connected to
5V and ground. The LCD’s SDA and SCL pins are connected to Arduino
pins A4 and A5 for I2C communication. A buzzer is connected between
pin D6 and ground, and an LED is connected to pin D7 through a 220Ω
resistor. All components share a common 5V and ground supply from the
Arduino. The circuit is assembled on a breadboard for prototyping.
Working Princinple
The working principle of this project is based on ultrasonic sensing
and time-of-flight measurement to detect the presence or motion
of an object within a predefined range.
The HC-SR04 ultrasonic sensor continuously emits high-frequency
sound waves (40 kHz) through its transmitter. When these sound
waves hit an object, they get reflected back and are received by the
sensor’s echo pin. The Arduino measures the time taken by the
ultrasonic pulse to travel to the object and return. This time is then
interpreted to determine whether an object is present within the
set detection zone.
In normal conditions, when no object is near, the echo time remains
large and stable. However, when an object or person enters the
detection range, the returning echo pulse becom es shorter,
indicating the presence of an obstacle. The Arduino continuously
monitors this change, and once the measured distance falls below
the predefined threshold, it identifies that motion or intrusion has
occurred.
As soon as motion is detected:
1. The Arduino activates the buzzer, producing an audible alarm.
2. The LED turns ON or blinks to give a visual alert.
3. The LCD display shows warning messages such as “Motion
Detected” or “Alert!” to notify the user.
The system continues to stay in alert mode for a short duration and
then returns to monitoring mode. This ensures continuous
surveillance and quick response to any object entering the
monitored area.
The principle demonstrates how ultrasonic waves, sensor
interfacing, and microcontroller logic can be combined to build a
simple yet effective motion-alert and security system.
Working Model
“Working prototype: Arduino Uno, HC-
SR04 ultrasonic sensor, I2C 16×2 LCD,
active buzzer and status LED. The system
detects approaching objects and displays
real-time distance and alert messages”
-
Expected Outcome
The expected outcome of this project is a fully
functional ultrasonic object detect system that
reliably detects any object or person entering a
predefined range.
• Detects motion or object presence within the set
ultrasonic range.
• Buzzer sounds instantly when motion is
detected.
• LED indicators turn ON or blink during alert
mode.
• LCD shows warning messages like “Motion
Detected” or “Alert!”.
• Arduino responds in real time with minimal
delay.
• Sensor gives stable readings suitable for indoor
environments.
• System functions as an inexpensive and reliable
alert/security device.
• Demonstrates proper integration of sensor, LCD,
buzzer, and microcontroller logic.
Applications
1. Home and Room Security Systems
Can be used near doors, windows, or
restricted areas to detect intrusions.
2. Automation and Smart Systems
Useful in automatic gates, parking
assistance, and obstacle detection.
3. Robotics
Helps mobile robots detect nearby objects
or obstacles for safe navigation.
4. Safety Monitoring
Can be used in labs, storerooms, or
corridors to detect unauthorized entry.
5. Educational and Prototype Projects
Ideal for demonstrating ultrasonic sensing
and microcontroller interfacing.
Learning Outcomes
By completing this project, students will learn:
1. How ultrasonic sensors work using the time-of-
flight principle.
2. How to interface sensors, LCD modules, buzzers,
and LEDs with Arduino.
3. How to write and understand embedded C/C++
code for real-time detection.
4. How to design and assemble electronic circuits
on a breadboard.
5. How to debug hardware and tune detection
thresholds for better accuracy.
6. How microcontrollers are used in automation,
alert systems, and electronics.
7. How to prepare technical documentation,
including aim, working principle, and block
diagrams.
References
--
1. Arduino Official Documentation –
[Link]
2. HC-SR04 Ultrasonic Sensor Datasheet
3. Liquid Crystal I2C Library Examples
4. Tutorials on Arduino Sensor Interfacing
(various electronics learning platforms)
5. Basic Electronics Textbooks for circuit
theory and components