Ultrasonic — Reverse Parking Sensor
Beep faster as you get closer
Ultrasonic
Buzzer
LED
Distance
What you will learn
- How to map a sensor value to a different range (this time, to a delay)
- How to use a "cutoff" threshold to keep the buzzer silent past a safe distance
- How to combine sound + light indicators so a driver never misses the cue
- How real parking sensors work in cars
What you will need
| Component |
|---|
| 1× 9V battery |
| 1× HC-SR04 |
| 1× buzzer |
| 1× red LED (warning) |
| 1× green LED (safe, sits above the buzzer) |
| 2× 220Ω resistor |
| Breadboard |
| 10× jumper wires |
Step by step
Take it further
- Add a second ultrasonic sensor — alternate between reading them.
- Add a 16x2 LCD to show the distance in real numbers.
- Make the LED brighter as you get closer (use map() to scale the brightness).
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
Police SirenAlternating red + blue LEDs with a wailing 600–1500 Hz buzzer
DHT11 — Temperature AlarmToo hot, too cold, or just right
Ultrasonic — Pitch by DistanceCloser = higher pitch
PIR — Smart Doorbell / Welcome LightA guest walks up to the door — chime + welcome LED
Simon Says — Memory GameRepeat the pattern, level by level
PIR — Intruder AlarmMotion + armed switch = loud alarm. Disarm first.
Guides that use this project
6 guides on the site build this project as part of a longer explanation. The guide says why the circuit works; this page says how to wire it.
How to Build a RobotHow to build a robot from scratch: one motor and a switch, then sensors, then a line-follower that steers itself. Every stage runs in a browser simulator first.
Robotics for BeginnersRobotics for beginners: five projects that take you from a blinking LED to a robot that steers itself, with the parts and the mistakes at each step.
Robotic Lawn Mowers: Boundary, Blades and BalanceHow robotic lawn mowers find the edge of the grass, why the blade motor causes brownouts, and what a $30 ultrasonic sensor can and cannot do.
Cleaning Robots: Bumpers, Cliff Sensors and the BrushHow a robot vacuum finds its way around a room, why cliff sensors matter more than the brush motor, and which Arduino projects teach each part of the loop.
Autonomous Vehicles: What the Car Actually SensesAutonomous vehicles fuse lidar, radar, cameras and ultrasonics into one picture of the road. Here is what each sensor is good at, and how to build the loop.
Drone DeliveryHow drone delivery works in practice: the range limits, the landing and drop mechanisms, the regulatory hurdles, and why most deliveries use a van for the last mile.
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Arduino LED projects for beginners36 projects in this list
Arduino ultrasonic distance sensor projects10 projects in this list
Arduino buzzer and tone projects19 projects in this list
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.