Introduction: 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 vb.net 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:
-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 firstname.lastname@example.org 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 : http://www.youtube.com/watch?v=AaqLJvHIdOE