T ThinkEdge Learn

Arduino Nano — Parking Sensor

4 distance zones — 1 slow low beep far, 2 fast high-pitch beeps close (like a real car reversing buzzer)

Arduino Nano Ultrasonic Buzzer pulseIn map
Arduino ultrasonic distance sensor project for students · Tier 2 · Sensor Projects · Intermediate · 30 min · Arduino Nano

What you will learn

What you will need

Component
1× Arduino Nano
1× HC-SR04 ultrasonic sensor
1× buzzer
1× breadboard
4× jumper wires

Step by step

Take it further

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.

Open the interactive lab See plans for your class

Related projects

Arduino Nano — Reaction Timer GameHow fast can you press the button? Built in a tiny form factor. Arduino Nano — 4-Note Mini PianoFour buttons, four notes, one tiny piano that fits in your pocket Arduino — PIR Motion Burglar AlarmDetect motion with the PIR sensor and sound the buzzer Arduino — Two-Player Reaction BattleTwo players, two buttons — fastest finger wins Arduino — Potentiometer Tone ControlTurn the knob, hear the pitch change in real time Ultrasonic — Pitch by DistanceCloser = higher pitch

Guides that use this project

2 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.

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. Window Cleaning Robots: How They Stick to GlassHow a window cleaning robot grips glass with a vacuum fan, why the squeegee matters as much as the suction, and how to build the winch logic.

Where this project sits

It is also part of these lists, which is how a class usually finds it.

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.