
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.
ལམ་སྟོན
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.
གོམ་པ་འདིའི་རྫས་རིགས:
Arduino Uno R31 piece
HC-SR04 Ultrasonic Distance Sensor (5-Pack)1 piece
Active Buzzer Module (5V, 5-Pack)1 piece
Breadboard1 piece
Jumper Wires (Male-to-Male)1 packConnect 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.
གོམ་པ་འདིའི་རྫས་རིགས:
USB-B Cable1 pieceལག་ཆས་དགོས་མཁོ:
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.
རྫས་རིགས
6- 1 piece$27.00
- 1 piece$5.00
- ས་ཆ་འཛིན
- 1 piece$10.00
- $6.00
ལག་ཆས་དགོས་མཁོ
1- ས་ཆ་འཛིན
འབྲེལ་ཡོད་བིལུ་པིརིན་ཊི
བིལུ་པིརིན་ཊི་འདི་ཚུ་ཐབས་ལམ་དང་རྫས་རིགས། སྤྱི་ཆོས་བགོ་བཤའ་བྱེད
Related blueprints
Other builds that share materials, tools, or techniques with this one.
CC0 སྤྱི་དབང
བིལུ་པིརིན་ཊི་འདི་CC0 འོག་བཀྲམས་ཡོད། ཁྱེད་རང་གིས་ཆོག་མཆན་མ་བཞེས་པར་ཕབ་ལེན་དང་བཟོ་བཅོས། བགོ་བཤའ། དགོས་མཁོ་གང་ལའང་བཀོལ་སྤྱོད་བྱས་ཆོག
བཟོ་མཁན་ལ་རྒྱབ་སྐྱོར་བྱེད་པའི་ཆེད་ཁོང་ཚོའི་བིལུ་པིརིན་ཊི་བརྒྱུད་ཐོན་སྐྱེད་ཉོ། བཟོ་མཁན་གྱིས བཟོ་མཁན་གྱི་ཁེ་ཕོགས ཚོང་པས་གཏན་འཁེལ་བྱས་པ། ཡང་ན་བིལུ་པིརིན་ཊི་འདིའི་པར་གསར་བཟོས་ཏེ་ཁྱེད་རང་གི་བིལུ་པིརིན་ཊི་ནང་མཐུད་སྦྲེལ་བྱས་ཏེ་ཡོང་སྒོ་བགོ་བཤའ་བྱེད།





