Ultrasonic Distance & Parking Pack

← All projects

Three builds from one HC-SR04 — a digital distance meter in centimetres and inches, a parking assistant with safe/warning/stop zones, and an obstacle detector whose beep speeds up as you close in.

AutomationArduino UnoBeginner3 builds in this pack
Ultrasonic Distance & Parking Pack

What is inside

Digital Distance Measurement System

Live distance in cm and inches on the OLED, updating every second, with OUT OF RANGE when nothing is there.

Smart Parking Assistance System

Zones the distance into safe, warning, danger and stop, with the beep rate and traffic lights changing per zone.

Assistive Obstacle Detection System

Written for navigation aids: CLEAR PATH, OBSTACLE AHEAD and STOP, with the buzzer tightening as the obstacle nears.

Circuit connections

ConnectionArduino pin
HC-SR04 TrigD9
HC-SR04 EchoD10
Traffic light red / yellow / greenD4 / D5 / D6
Buzzer signalD8
OLED SDA / SCLA4 / A5
Module power5V + GND

Bench note: Readings jump about under 3 cm and past 400 cm. Clamp the range in software before you display it, or the parking zones will flicker.

Libraries used

Wire.hAdafruit_GFX.hAdafruit_SSD1306.h

Get the parts

Two ways to build this, and you can choose either. Take the complete kit in one box, or buy only the individual components you are missing. Both use the normal shop cart.

Option 1 — Complete kit

₹999

eARgle Mini Beginner Kit — everything needed, boxed, with the quick-start card and reference sketches.

Add kit to cart

Option 2 — Individual components

₹1,292

The full parts list is ₹1,292 for all 8 items. Add them all at once, or pick single items from the list below.

Already own the board or the display? Skip them — the sketches do not care where the parts came from.

From the bench

Ultrasonic Distance & Parking Pack build photoUltrasonic Distance & Parking Pack build photoUltrasonic Distance & Parking Pack build photo

Source code

Every sketch on this page is open source. Clone it, change it, break it, tell us what you learned.

View the code on GitHub

Want to be taught this, not just handed the code?

We run this as a mentor-led session for schools, colleges and individual learners, online or at our centre. Tell us what you want to build.

Contact us about teaching