MuTech RoboticsLearning Hub
Adults onlyArduino NanoLevel 1/3

Reverse Parking Sensor

Green, yellow and red LEDs plus faster beeps as you back up. At 20 cm: a long beep, all red, STOP.

Reverse Parking Sensor
Adults only

Fitting it to a car means car wiring.

Not for children. Build at your own risk.

Build and test it on the bench. In a car, use a proper 12V-to-5V converter, a fuse and a qualified person. Always check your mirrors too.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The HC-SR04 measures the distance behind the car.
  2. Under 2 m green lights, under 1 m yellow, under 50 cm red.
  3. The beeps get faster as the distance drops.
  4. At 20 cm it beeps continuously: stop.

Parts you need

  • Arduino Nano× 1Buy
  • HC-SR04 ultrasonic sensor× 1Buy
  • LED bar module (green, yellow, red)× 1Buy
  • Active buzzer× 1Buy
  • Breadboard, jumper wires, USB 5V adapter (bench demo)× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 SignalHC-SR04 TRIGNano D10
2 SignalHC-SR04 ECHONano D9
3 PowerHC-SR04 VCCNano 5V
4 GroundHC-SR04 GNDNano GND
5 SignalLED bar GNano D7
6 SignalLED bar YNano D6
7 SignalLED bar RNano D5
8 GroundLED bar GNDNano GND
9 SignalBuzzer +Nano D8
10 GroundBuzzer −Nano GND

3D print files

This project has no 3D-printed parts.

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.