Arduino Uno Mini Radar - Luke Floyd
by lfloyd5 in Circuits > Arduino
27 Views, 1 Favorites, 0 Comments
Arduino Uno Mini Radar - Luke Floyd

This project is a mini version of a radar made with Arduino components and coded in Arduino IDE and Processing IDE. The physical components consist of an Arduino Uno microcontroller, breadboard, servo motor, and ultrasonic distance sensor. The ultrasonic distance is attached to the top of the servo motor, which rotates the distance sensor and acts as the radar. The Arduino IDE code controls these components and collects angle data from the servo, and distance data from the ultrasonic distance sensor. This data is displayed in the serial monitor, and analyzed through serial communication using the Processing IDE. The Processing IDE is used to draw and display the radar outline, sweeping lines, and red detection lines. Combining all this gives you a functioning small scale radar system.
Supplies

- Arduino Uno microcontroller
- Breadboard
- Micro servo motor
- Ultrasonic distance sensor
- 5 male to male jumper wires
- 4 female to male jumper wires
- Double sided tape/hot glue
- Arduino IDE program
- Processing IDE program
Physical Component Construction

- Breadboard is wired with 5V power and ground connections from the Arduino Uno
- Servo motor with long arm attachment is wired to 5V power, ground and digital pin 4
- Ultrasonic distance sensor is wired to 5V power and ground, trig to digital pin 2, echo to digital pin 1
- Servo motor is secured to the end of the breadboard via double sided tape or hot glue
- Ultrasonic distance sensor is hot glued or taped upside down to the arms of the servo motor with the wire connections at the top
Codes and Running the Radar
Implement attached codes into Arduino IDE and Processing IDE. First, verify and upload the Arduino IDE code to the Arduino Uno microcontroller, and make sure the physical components run properly. Then check the serial monitor and verify that angle and distance data is displaying in the serial monitor. Serial monitor data shower be displayed like (angle, distance) with each on a new line to properly be read by the Processing IDE. Once this is verified, close the serial monitor and run the Processing IDE with the correct serial port implemented into the Processing IDE code. This should result in a radar display using data directly from the Arduino IDE serial monitor. It can be tested by placing an object like a water bottle or your hand in front of the ultrasonic distance sensor to verify everything is working properly.