How to Make an Arduino Parking Sensor

Start the Guide
make an arduino parking sensor

How to Make an Arduino Parking Sensor

3.1k Views
Step 1 of 13
First dowload the arduino IDE and write your code. In my case the buzzer and led will activate in beeps together, and as the distance decreases they will gradually start beeping faster. (arduino.cc)

First dowload the arduino IDE and write your code. In my case the buzzer and led will activate in beeps together, and as the distance decreases they will gradually start beeping faster. (arduino.cc)

Step 2 of 13
You can download my code to get started with, from here: goo.gl/MHWDy .  For those familiar with java, coding for arduino is very similar.  For more code help visit arduino.cc

You can download my code to get started with, from here: goo.gl/MHWDy . For those familiar with java, coding for arduino is very similar. For more code help visit arduino.cc

Step 3 of 13
Connect the led to ground and pin 12.

Connect the led to ground and pin 12.

Step 4 of 13
Connect the buzzer to ground and pin 8.

Connect the buzzer to ground and pin 8.

Step 5 of 13
Connect the 5V on the arduino to the VCC on the sensor, and the GND on the arduino to the GND on the sensor.

Connect the 5V on the arduino to the VCC on the sensor, and the GND on the arduino to the GND on the sensor.

Step 6 of 13
Connect pin 4 to Trig on the sensor (purple), and pin 2 to Echo on the sensor (yellow).

Connect pin 4 to Trig on the sensor (purple), and pin 2 to Echo on the sensor (yellow).

Step 7 of 13
If you want the system to be constantly running you can connect the battery to the clip and then to the arduino board.

If you want the system to be constantly running you can connect the battery to the clip and then to the arduino board.

Step 8 of 13
Otherwise you need to split the ground into two. One to go into the rocker switch and the other to keep going to the board connection.

Otherwise you need to split the ground into two. One to go into the rocker switch and the other to keep going to the board connection.

Step 9 of 13
Ground wire FROM battery clip {connect ground to gold connection}. Power wire (red) FROM battery clip. Power wire (purple) TO board connection.

Ground wire FROM battery clip {connect ground to gold connection}. Power wire (red) FROM battery clip. Power wire (purple) TO board connection.

Step 10 of 13
Ground FROM battery clip, and power (purple) FROM rocker switch.

Ground FROM battery clip, and power (purple) FROM rocker switch.

Step 11 of 13

Now all you need to do is test the software with the hardware and make sure your commands work as desired.

Step 12 of 13
Now you need to solder the connections in place. To do so I would recommend using male and female pin connections so you won't solder directly to the components.

Now you need to solder the connections in place. To do so I would recommend using male and female pin connections so you won't solder directly to the components.

Step 13 of 13
Also I would recommend using heat shrink tubing to cover all open connections and soldered areas.

Also I would recommend using heat shrink tubing to cover all open connections and soldered areas.

Start Over

4 Comments
Supplies

1 Arduino UNO R3

1 HC-SR04 Ultrasonic Sensor

1 LED

1 Buzzer

1 9v Battery

1 9v Battery Clip

1 Rocker Switch

1 Male, Female Pin Connections

2 Resistors

1 Bread board

1 USB Type A - Type B cable

Melanie Mikaelian

Ahh and I do have an older car although it's only 10 years old. I don't write code though. You should think of doing a guide for simple code maybe in relation to this guide if it's possible to teach us non code writers ;-)

Melanie Mikaelian 10 months ago

Glyn Mercieca

The basic use is to be notified when you are approaching an object when you are parking your car. Most modern cars have cameras and built in sensors but for older cars you have to do something like this.

(author) 10 months ago

Melanie Mikaelian

Typo ... sensor

Melanie Mikaelian 10 months ago

Melanie Mikaelian

May I ask the question: what is or what does an Arduino parking switch do or what do you use it for?

Melanie Mikaelian 10 months ago

Be first to comment on Step 1.

Glyn Mercieca

http://goo.gl/MHWDy

(author) 4 months ago

Be first to comment on Step 3.

Be first to comment on Step 4.

Glyn Mercieca

It's the hc-sr04 ultrasonic sensor. Got it from eBay. Max range of 4 meters.

(author) 5 months ago

Avinash Rajeev

also the range?

Avinash Rajeev 5 months ago

Avinash Rajeev

what kinda sensor is used?

Avinash Rajeev 5 months ago

Be first to comment on Step 6.

Be first to comment on Step 7.

Be first to comment on Step 8.

Be first to comment on Step 9.

Be first to comment on Step 10.

Be first to comment on Step 11.

Be first to comment on Step 12.

Be first to comment on Step 13.