How to Make an Arduino Uno Radar Sensor Using Ultrasonic Sensor

by 974817 in Circuits > USB

34 Views, 0 Favorites, 0 Comments

How to Make an Arduino Uno Radar Sensor Using Ultrasonic Sensor

Capture.PNG

This is an Arduino Circuit using servos, Arduino Uno, ultrasonic sensors, LEDs, speakers and wires to create a fully functioning radar sensor that rotates 180 degrees and stops rotating when detecting something.

Supplies

1 Breadboard, 1 Arduino Uno, 1 180 Servo, 1 buzzer speaker, 2 LEDs one red one green, 2 330 resisters, 1 ultra sonic sensor and many wires, TOTAL COST: $44

Step1.PNG

First, grab the breadboard, and hook up the 5V and GND with the Arduino by wiring the positive and negative rails of the breadboard to the pins of the Arduino. Then connect the two positive and negative rails of the breadboard together with two colour coded wires to distribute the voltage to both sides of the rails.

Step2.PNG

Next, grab the 180 servo and 3 wires, then tape the servo onto somewhere on the breadboard, then take the brown wire of the servo, and connect it to negative rail, then the red one to the positive rail and finally the last wire to the 6th pin in the Arduino. Now the servo is connected and will be able to rotate.

Step3.PNG

Next, get the ultrasonic sensor, tape it to the servo and connect the GND and 5V to the rail of the breadboard, then connect ECHO to the 10 pin and TRIG to the 9 pin. The take a red LED with resistors and wires and attack the positive and the 5 pin on Arduino. Now the ultra sonic sensor is able to work with the code and the red LED will be used for showing if the sensor detects something.

Step4.PNG

Now add a green LED the same way as the red one but connect it to the 8 pin on the Arduino. Then also add a buzzer speaker and connect it to the power rail and then attach it to the 12 pin. This part will act as indicators of the sensor when it detects something, which turns it on. The green LED will stay on if nothing is detected and turn off is something is detected.

Lastly, enter the code that is provided here into the Arduino IDE app and connect the Arduino into the computer and then upload the code. This code will allow the servo to rotate, swiping left and right and stopping when the sensor detects something, which activates the speaker and red LED, and if nothing is detected the green LED will be left on.


Link: https://docs.google.com/document/d/1V4t-NIrh2tmyeyzmcjamooGOM5Lm97aHYceh64mOBac/edit?usp=sharing