REPORT
REPORT
SANA’A UNIVERSITY
FACULTY OF ENGINEERING
ELECTRICAL DEPARTMENT
COMMUNICATION & NETWORK
ABSTRACT
and calculate the time taken for these waves to reflect back from an
when objects are detected below a specific threshold. While the system
scenarios.
Chapter 1
INTRODUCTION
1. RATIONALE
In the evolving landscape of automation, distance measurement has
become an indispensable component. Accurate and real-time distance sensing can
drastically improve the safety, efficiency, and functionality of various automated
systems. The demand for systems that can provide immediate feedback, both
visually and audibly, has grown, especially in applications like vehicle parking
assistance and robotics. However, creating a reliable system that can function
efficiently in various environments presents its own set of challenges, including
sensor calibration, noise interference, and power supply consistency.
2. DISTANCE SENSING:
Ultrasonic sensors, like the HC-SR04, operate on the principle of sending
out sound waves and measuring the time it takes for these waves to reflect back
after hitting an object. The speed of sound in air is used to determine the distance
between the sensor and the object. Due to their non-intrusive nature and ability
to detect a range of materials, ultrasonic sensors have become a popular choice
for proximity detection and distance measurement.
3. LITERATURE REVIEW
Several research studies and commercial projects have utilized ultrasonic
sensors for various applications. For instance:
The rich history and vast applicability of ultrasonic sensors, combined with
the power of microcontrollers, provide a solid foundation for the development of
this project. The literature underlines the potential success and significance of
such systems in real-world scenarios.
Chapter 3
METHODOLOGY
The development and execution of this project were carried out systematically
through the following steps:
1. OBJECTIVE DEFINITION:
The primary goal was set to design a system that provides real-time
distance measurements with both visual and audible feedback.
2) PIC Microcontroller
(PIC16F877A)
3) Buzzer
5) Crystal Oscillator
7) LED (Red)
3. SYSTEM DESCRIPTION:
1) HC-SR04 Ultrasonic Sensor: This sensor measures distance by emitting
an ultrasonic wave and calculating the time it takes for the wave to bounce
back after hitting an object. It provides accurate and stable readings, which
makes it suitable for various applications.
2) PIC Microcontroller (PIC16F877A): A versatile microcontroller that
handles the input from the ultrasonic sensor, processes the data, and
controls the output devices (buzzer and LCD).
3) Buzzer: Provides an audible alert. The frequency or duration of the sound
can vary based on the distance measured, serving as an intuitive indicator
of proximity.
4) LM16L LCD Display: Shows the exact distance measured in real-time,
providing a visual feedback to the user.
4. WORKING PRINCIPLE:
1) The HC-SR04 emits an ultrasonic wave.
2) The wave reflects off an object and returns to the sensor.
3) The PIC microcontroller calculates the time taken for the wave to return.
4) Based on this time, the microcontroller calculates the distance between the
sensor and the object.
5) The distance is displayed on the LCD.
6) If the distance is below a certain threshold, the buzzer is activated to alert
the user, and the RED-LED blinking.
6. SYSTEM TESTING: Once assembled, the system was tested under various
conditions to ensure accuracy, reliability, and responsiveness.
7. APPLICATIONS:
This system can be used in a variety of applications including:
1) Proximity alarms
2) Parking sensors for vehicles
3) Robotics for obstacle detection and avoidance
Chapter 4
MicroC CODE & PROTEUS SIMULATION
MicroC CODE
Chapter 5
CONCLUSION
6. https://electrosome.com/hc-sr04-ultrasonic-sensor-pic/