You are here

How to make a radar using arduino UNO and processing

How to make a radar/sonar using arduino UNO and processing

How to make a radar

Radar system uses radio waves to detects objects and determines distance, altitude, speed and direction of that object. In our project, we are using Arduino UNO to control the system, UltraSonic sensor (HC-SR04) to send and receive signal and servo to keep rotating the sensor by 90 degrees.


List of parts used in this project:

arduino UNO

1- Arduino UNO 
first and the most important component is the micro controller. In this project, we have used Arduino UNO. for more information, please visit


ultrasonic sensor hc-sr04

2- Ultrasonic sensor
Ultrasonic ranging module HC-SR04 provides 2cm to 400cm non-contact
measurement function, the ranging accuracy can reach to 3mm. The module
includes control circuit, ultrasonic transmitters and receiver. 

The basic principle of work:
a- Using Input output trigger for at least 10Micro seconds high level signal
b- The Module automatically sends eight 40 Khz and detect whether there is a
pulse signal back.
c- If the signal back, through high level , time of high output Input output duration is
the time from sending ultrasonic to returning.


3- Servo
You can use any suitable servo, in this project, we have used Tower Pro micro servo 9g, it can rotates from 0 to 180. in this project, we have used from 45 to 135 degrees.

4- Some Balsa wood for making the base

5- wires, bread board .. etc

The project wiring diagram

wiring diagram


The video:


Codes are attached.. Copy right to grook

Arduino UNO code - radar1.81 KB
processing code - Radar1.17 KB