Arduino UNO Radar Project

Facebooktwitterredditpinterestlinkedinmailby feather

Arduino Radar Project

In this project, we will explain how to create a simple radar system using Arduino and Processing IDE. The Arduino radar project is implemented using Processing Applications.

Radar is a long-range object detection system that uses radio waves to establish specific parameters of the object, such as distance and position. Radar technology is used in airplanes, missiles, marine, weather forecasts, and automobiles. Technically, the project is based on Sonar technology, because we will use an ultrasonic sensor to determine the presence of any object in a given range.

The Arduino radar project is more a visual project than a circuit implementation. Of course, we will use different hardware such as Arduino UNO, an HC-SR04 ultrasonic sensor, and a servomotor. But the main aspect is the visual representation in the processing application.

Requirements of hardware in this project:

  1. Arduino UNO board
  2. USB cable connector for Arduino UNO
  3. Ultra Sonic HC-SR04
  4. Jumper wires male to female
  5. Tower Pro SG90 Servo Motor

Requirements of software in this Project:

  1. Arduino IDE
  2. Processing IDE

The Working principle of this Project:

The Ultrasonic sensor HC-SR04 releases ultrasound at 40,000Hz that travels in the air. If an object comes in its range, then the sound wave collides with the object and bounces back to the Ultrasonic module. The angle and distance of an object displays on the monitor.

Open the Arduino IDE and write the following code 

Save the program and compile the code.

Compile Code

Connect your Arduino UNO board to your laptop or desktop via Arduino UNO USB cable. Remove all other connections with the Arduino UNO board, such as the Ultrasonic sensor module and Tower Pro SG90 Servo Motor. Now upload the program to the Arduino UNO board.

Uploading Load

Note: Before uploading the code to the Arduino UNO board, make sure that Arduino serial port is selected. Otherwise, it shows an error message “Serial port not selected.”

To select your serial port in your laptop or desktop do the followings:

Open Device Manager -> Ports ->Arduino Uno -> Upload your code.

After uploading the program in the Arduino UNO board, connect all the modules (Ultrasonic sensor module and Tower Pro SG90 Servo Motor) with the Arduino UNO board. The following image shows the “Digital circuit diagram.”

Digital circuit diagram

Write the following code in the Processing IDE and run it. The Processing IDE displays the angle and distance of an object when it comes in the range of Ultrasonic sensors.

Full code show below: 

Save and run the code.

save and run

Place an object in front of the ultrasonic sensor. When the servo motor rotates, the objects enters in the range of the ultrasonic sensor. The appearance of an object appears on the screen. We have shown the presence of an object with the red mark. If there is no object in the processing application range of the ultrasonic sensor, it shows green marks.

Angle and Distance
Arduino UNO Radar Project
Facebooktwitterredditpinterestlinkedinmailby feather