Back Up Sensor on Arduino Uno, Applicable on Anything!
by vithushanvijey in Circuits > Arduino
226 Views, 4 Favorites, 0 Comments
Back Up Sensor on Arduino Uno, Applicable on Anything!


This Arduino breadboard circuit is a simple backup sensor designed for cars. Using an ultrasonic sensor, it detects how close an object is behind the vehicle. As the object gets closer, the LED flashes faster and a buzzer beeps more rapidly, giving a clear warning to the driver. It's a great beginner project for learning how to use distance sensors and output components with Arduino.
Supplies
- 2 LEDs
- 3 220 Ohm Resistors
- Buzzer
- Ultrasonic Distance Sensor
- 1 Small sized Breadboard
- Arduino Uno with Usb connection cable
- Arduino IDE Software downloaded to code
- 14 wires

Firstly Lets build our circuit,
- Connect the Positive and negative rows on the bread board to the 5v, and GND pin on the Arduino respectively.
- Connect the two LEDS as shown in photo, the red led going back to pin 9, and green led going back to pin 11 on the Arduino.

Now lets on the buzzer, starting with the buzzer pin on the positive row, attach a resistor and wire to the buzzer's negative pin, which leads to pin 10 on the Arduino.

Lets Connect the Distance sensor, with the following connections
- Vcc pin to positive row
- Gnd pin to negative row
- Trig pin to pin 3 on the Arduino
- Echo pin to pin 2 on the Arduino
Code

Next we must code the Arduino, below is the code required for this project to work.
Once you open a new folder on Arduino ide, paste this code, then upload it, make sure to select the correct board and COM number.
Downloads
Once it is done, if all steps are completed, it should work something like this!
Now be CREATIVE! Add whatever outer casing you want to make it look nicer, here is what I did.