Create Object Radar with Ultrasound Distance Sensor

We use an Arduino UNO, an SR-04 ultrasound sensor, a LED bar graph and a buzzer to create an object radar that will alarm when object is closer than 10cm. The LED bar graph indicates the distance between object and the radar. When there is an object approaching to the radar, and the distance is less than 10cm, the radar starts the alarm, and the volume will increase when the object gets even closer. The LED bar graph (an array of LEDs) will indicate how close the object is.

The Wiring

The figure below show the wiring.

alerter_wiringAnd here is the picture of how it is actually wired on the bread board.

actual_wiring

 

Arduino Source Code

Here is the source code for the Arduino:

 Video

Here is a short video that shows how it works:

See also