Introduction
As technology is evolving, it is getting easier to find new applications for it. One of the main applications is transportation. The numbre of vehicles has increased rapidly, and with that, the necessity of being safe as we drive. I've built a small circuit that will detect when an object is approaching and will make an alarm sound when it's close enough.
Hardware
The hardware used for this project is:
- OSEPP UNO R3 (Arduino compatible)
- Ultrasonic Range Finder HC-SR04
- Buzzer
- 100 ohm resistance
- Jumpers
Software
The software used for this project is:
- Arduino IDE
- Fritzing
Schematics
This Schematic shows how the circuit is connected
Code
Initiaization:
Get distance:
Turn on alarm:
Circuit
The picture shows the circuit connected
Results
The video shows the circuit working
Top Comments