
Building an Ultrasonic Parking Sensor
Measure distance with sound. An HC-SR04 ultrasonic sensor sends out a pulse of sound and times its echo, and the Arduino turns that into a distance in centimetres. Wire it to a buzzer that beeps faster as something gets closer — a car parking sensor, a reversing aid, or a doorway proximity alarm.
Instrucciones
Wire the sensor and buzzer
Wire the sensor and buzzer
Push the HC-SR04 and the active buzzer into the breadboard. Wire the sensor: VCC to Arduino 5V, GND to GND, Trig to pin 9, Echo to pin 10. Wire the buzzer: + to pin 8, - to GND.
Materiales para este paso:
Arduino Uno R31 pieza
HC-SR04 Ultrasonic Distance Sensor (5-Pack)1 pieza
Active Buzzer Module (5V, 5-Pack)1 pieza
Breadboard1 pieza
Jumper Wires (Male-to-Male)1 paqueteConnect and open the IDE
Connect and open the IDE
Plug the Arduino into your computer with the USB cable, open the Arduino IDE, and select Arduino Uno and its serial port.
Materiales para este paso:
USB-B Cable1 piezaHerramientas necesarias:
Computer with Arduino IDEUpload the parking-sensor sketch
Upload the parking-sensor sketch
Paste this sketch and upload. It measures the distance and beeps faster the closer an object is. Open the Serial Monitor to see the distance in centimetres.
Test and set the range
Test and set the range
Move your hand toward the sensor — the buzzer beeps faster as you get closer and nearly solid when very near. Change the 50 in the sketch to set how far away it starts reacting, and the * 6 to change how quickly the beeping speeds up.
Mount it
Mount it
Fix the sensor facing outward on a bracket or in a small box and power the Arduino from a USB power bank or a 9 V adapter. Aim it at your parking spot, garage wall or doorway.
Materiales
6- 1 piezaMX$467.00
- 1 piezaMX$72.00
- Marcador de posición
- 1 piezaMX$164.00
- MX$87.00
- MX$98.00
Herramientas requeridas
1- Marcador de posición
Blueprints relacionados
Estos blueprints comparten conocimiento — técnicas, materiales o principios
Related blueprints
Other builds that share materials, tools, or techniques with this one.
CC0 Dominio público
Este Blueprint se publica bajo CC0. Eres libre de copiar, modificar, distribuir y usar este trabajo para cualquier propósito, sin pedir permiso.
Apoya al Maker comprando productos a través de su Blueprint, donde gana una Comisión del Maker establecida por los vendedores, o crea una nueva iteración de este Blueprint e inclúyela como conexión en tu propio Blueprint para compartir ingresos.





