Diy Arduino Radar




Not long ago, bought a Srf02 ultrasonic sensor for my hobby projects. The first project that I did was a DIY radar that draws a map.
When I finished it I wanted to share this project and here I am writing this instructable. 
The principle of this radar is this:
The servo motor is moving from 0 to 180 degrees and is taking a measurement at each step.
The value of the measurement is sent to the PC and a program written in Vb.Net draws a map using some trigonometrical functions.

I will tell you in the first  step what you need to have to do this , in the second how to build the hardware , in the third i will tell you more about the software and in the fourth you will see my version at work and some final conclusions.

Let's go on with the Materials ;)

Step 1: Materials

For this project you will need the following materials :
-  An Arduino ( does not matter what arduino ) 
-  A servo motor
-  An ultrasonic sensor ( Srf02 in my case. I attached code for the Ping)))  too)
-  some adaptor wires
- a board on which all parts will go 
- and a thingy to connect the sensor to the servo horn

...and the following tools:
-some screwdrivers screws and nuts (if you want to hold the servo in place using screws , like I did )
-double adhesive duct tape ( if you want to hold the servo and the arduino in place using duct tape )
-a soldering gun, iron or station ,some solder (for the wires)
-and a drill for the screws

Ok, if you have all you need let's continue with the hardware part ...

Step 2: Hardware

1- Take the board and measure where the servo comes
2- Drill the holes for the screws and screw the servo in place. or duct dape the servo in place
3-Put duct tape on the arduino and put it in place.
4-Put the sensor on the thingy and the thingy on the servo
5-Make the connections as in the attached schematics ( for ping plug the sig conector from ping to the 7 pin of arduino
6- Congratulations ! You just finished the hardware part

Step 3: Software

There are 2 softwares involved in this project:
-The arduino software
-The pc software

The arduino software moves the servo and sends the values of the sensor at each step via Serial to the PC software
The pc software does the drawing of the map. It is written in and uses trigonometric functions to calculate the length and angle used in the drawing of the map.
The map is then displayed on the form.
The pc software is poor and you are invited to make it better if you want and know how.

The following files are attached:
-vb source
-arduino file for

Step 4: Conclusions

This in my opinion was a fun to do project from that i learned a lot. Hope you like it. If you have questions you can ask me at or ask a comment here. If you like it please vote my project for the microcontroller and toy chellange.

If you would like to see how it works :



    • Organization Contest

      Organization Contest
    • Build a Tool Contest

      Build a Tool Contest
    • Epilog X Contest

      Epilog X Contest

    19 Discussions


    4 years ago on Introduction

    can you send the electrical design to please ?


    5 years ago

    nice job but i will not take a look on the files after the comments with the viruses... and as it was already said by some people it's not a radar, its a SONAR(SOundNavigation And Ranging) not a RADAR(RAdioDetection and Ranging) though it can be used for the same purpose(an example is detecting objects or obstacels) it is not the same, so please get your facts straight. nevertheless you did a nice job


    5 years ago on Introduction

    i here a lot says this is spelled wrong sonar instead of radar

    but if you go to youtube and type in "arduino radar" you will see many video's using a sonar with a panning servo as a radar with a RADAR MAP GUI code
    some in processing,some in VBNET and some in python

    CHRISTI great instructables ,but your code for VBNET has many viruses under email eml ,in every folder has a virus email attachment


    7 years ago on Introduction

    Neat little project though on a technical note you're using an ultrasonic sensor which makes it a sonar, not a radar. Your use of radar in the name implies using radio waves which it's not.

    1 reply

    Reply 5 years ago on Introduction

    by panning a sonar and the right coding it can be used as a radar
    more of a imitation radar design

    its a very common cheap radar used in robotics

    here is how he/she did it
    The value of the measurement is sent to the PC and a program written in Vb.Net draws a map using some trigonometrical functions


    5 years ago

    Please update the title. It's sonar, not radar. Thanks.

    1 reply

    Reply 5 years ago on Introduction

    sonar can be used like a radar if pans 0-180 and with the right code
    its a very common design idea in robotics


    6 years ago on Step 3

    Very nice! I might just make this for my nerf-optimized backyard! lol...


    7 years ago on Introduction

    I agree with soshimo... my AV flagged the entire ...


    7 years ago on Step 3

    Please remove the Christi.eml file from your download. My anti virus flagged it as having about 10 trojans. Now I'm SURE you didn't MEAN to put that file there right? Take it out please. I'm also following up with an email to the site admins as I'm sure they wouldn't want their website to be identified as an infection vector.

    misto proiect / nice project :) if you want to talk about arduino, add my yahoo id: h3x_your_nightmare. i also have an arduino, uno in my case and i'm pretty newbie in this "bussiness" . anyway, good luck and greetings from Targu-Jiu, Gorj :D


    7 years ago on Step 3

    could you plz mail me the folder '' to

    i've tried with mozilla 5 with chrome 12 and none of them have problems, you could try with one of these, if it does not work I will email you or upload these files to rapidshare


    7 years ago on Introduction


    I have two suggestions:
    1) Add captions to the video.
    2) Change tittle to this Instructable.