Hopefully, everyone who is reading this article right now must be aware of how Radar works, if you are new and don't know anything about radar then must read basics of radar here.
Building the device:
I have shown everything carefully in the video, Kindly watch the video for better understanding.
As you people can see that I have connected Trigger pins of the two attached Ultrasonic Sensors to the Pin No 10 of the Arduino Uno Board. Echo Pins of the Distance sensors have been connected to the pin No 11 of the Arduino Board.
I have connected Control wire (yellow) of the Servomotor to the Pin No 12 of the Arduino Board.
External Power for Arduino:
As we can see that this project is truly based on serial communication between Arduino IDE and Processing Code software. For serial communication, we will connect our Arduino Board to the PC through USB cable. Yes everyone knows that we can give power to our Arduino Board directly from the PC through the USB cable without using external power supply. This is perfect but in this case, you are using servo motor and of course, it will require more current to operate accurately.
First, you need to Turn on your Arduino board by using your pc but if you found that the movement of the servo motor is slow or laggy or irregular then use external power supply to the jack of the Arduino or Vin pin (Do not unplug USB cable). I am going to clear one thing, many students and hobbyists are still confused and think that their Arduino board will blow away if they use the External power supply at the same time when Arduino board is connected to the pc through USB cable. This statement is totally wrong, you can give power to the Arduino board by using both sources at the same time and Arduino board is intelligent device it will choose the best input power having more current as compared to the other one.
Before going to get a copy of a source code for this project, first, you need to Download a Processing Code development software. Processing Code development Software is a free and open source programming tool, everyone can download and use it for free for their projects and research related to computer science or Electrical and Electronic Engineering. From past few years, Processing interface with Arduino is a hot topic in the technology domain. Processing software helps us to show our serial data in a real-time right on our PC screen with different graphics simulations. In this Project, Processing Software will receive data from the two Ultrasonic Sensors with the help of serial communication. A radar Graphical Simulation will appear on your screen to display Distance and angle of the target.
Download Processing Code and paste on processing window. Before going to press Run button you need to save your sketch first and it will create a folder like sketch0123. Download required font, Once you download font go and paste that font file in your sketch folder. Remember It will show an error until you didn't paste the right font file inside sketch folder.