Introduction: DIY Radar System Using Ultrasonic Sensor

Here I share this project with you which is easy to make with ultrasonic sensor arduino and servo motor.


Arduino UNO & Genuino UNO×1

Ultrasonic Sensor - HC-SR04 (Generic)×1

Jumper wires (generic)×1

SG90 Micro-servo motor×1

Solderless Breadboard

Softwares Used

Arduino IDE

The Processing Foundation Processing

Step 1: Hardware

1.connect vcc of servomotor(red wire) and vcc of ultrasonic sensor to 5v of arduino

2.connect the gnd of ultrasonic sensor and servo(black wire) to ground of the arduino

3.connect trig and echo pin of ultrasonic sensor to 8 and 7 of arduino

4.connect signal pin of servo to pin 9 of arduino

Step 2: Software

1.Lets start first by installing arduino ide clickhere

2.After downloading it paste the given code in it

3.Next download the latest version of processing ide clickhere

4.Paste the given code in processing ide

5.Run the processing ide.

Note: change the com3 on the code to your com port to which arduino ide is connected.To know which com port you are connected follow the image

Watch our video from here

Step 3: Code for Arduino Ide & Processing

Copy and Paste the code from here