Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

In this project, we designed a simple Arduino Car Reverse Parking Sensor Circuit

using Arduino UNO and HC-SR04 Ultrasonic Sensor.

Overview of Arduino Car Reverse Parking Sensor


Parking a car in congested parking lots and tiny spaces is a tedious job and the
important thing is that you must be very careful while reversing so that you do not
damage the car.

Almost all modern cars are equipped with reverse parking sensors that are activated
when the car is put in reverse gear and beep at variable rate depending on the
distance between the car and the closest obstacle.

The Reverse Parking Sensors that are equipped in the car are basically Ultrasonic
Proximity Sensors i.e. they use Ultrasonic Sensors to measure the distance between
the car and the object and warn the driver if the car is too close.

In this project, we have built a simple prototype of a Car Reverse Parking Sensor
with the help of Arduino UNO and the very famous HC-SR04 Ultrasonic Sensor.

Components Required
 Arduino UNO
 HC-SR04 Ultrasonic Sensor
 5V Buzzer
 Mini Breadboard
 Connecting Wires
 Power Supply

Principle of the Circuit


The Ultrasonic Sensor is the main unit (component) that is responsible for measuring
the distance. Arduino UNO acts as the main controlling unit that will control the
Ultrasonic Sensor, calculate the distance and activate the buzzer.

The principle of the circuit is as follows: The Ultrasonic Sensor sends pulses and the
Arduino measures the interval of each reflected signal. Based on this time interval,
Arduino then calculates the distance of the object.

Arduino then activates the Buzzer if the distance between the sensor and object is
less that a certain range.
Design of Arduino Car Reverse Parking Sensor
Circuit
The design of the Arduino Car Reverse Parking Sensor Circuit is very simple.
Starting with the Ultrasonic Sensor, it has 4 pins: VCC, TRIG, ECHO and GND.

The VCC and GND are connected to +5V and GND of the power supply while the
TRIG and ECHO are connected to Digital I/O pins 5 and 6 of Arduino respectively.
The buzzer used here is a 5V buzzer

Code Explanation
The code is very simple

its working is as follows:

The TRIG Pin should be high for a minimum of 10µS.

After this, the Ultrasonic Sensor automatically sends pulses of 40KHz frequency.

The time between this and the reflected signal is calculated by reading the HIGH on
the ECHO pin.

Distance can be calculated as Time (for which ECHO is HIGH) * Velocity of Sound /
2.

Working
When the circuit is powered ON, the Arduino will start measuring the distance of the
objects in front of the Ultrasonic Sensor.

If the calculated distance is less than the specified distance, then Arduino activates
the buzzer. we can modify the code to beep the buzzer so that the intensity of the
beeps increases with a decrease in the distance

Applications
The Arduino Car Reversing Parking Sensor Circuit can be used:

 Autonomous Vehicles
 Obstacle Avoiding Robots
 Distance Measurement
 Proximity Detection
 Human Detection
 Drones, UAVs and Helicopters

You might also like