Progress Bar

Skip to main content

Jaycar
...

Ultrasonic Radar

Ultrasonic Radar

Difficulty
Test & Tools

Summary

Watch a cool radar slide across your computer screen like the old time war-movies! Use the simple ultrasonic sensor to measure distance in a rotating fashion across your workbench.

Use Arduino to make the radar and Processing GUI to display on your computer.

Materials Required

1Duinotech UNO r3 Main BoardXC4410
1Arduino Compatible Dual Ultrasonic Sensor Module.XC4442
1Duinotech Arduino Compatible Prototyping ShieldXC4482
1Arduino Compatible 9G Micro Servo MotorYM2758
1Arduino Compatible Wi-Fi Mini Prototyping ShieldXC3850
24 Pin 0.1in 90 Degree Locking Header - 2.54mm Pitch - SingleHM3424
13 Pin 0.1in 90 Degree Locking Header - 2.54mm Pitch - SingleHM3423
1150mm Socket to Socket Jumper Leads - 40 PieceWC6026

The overall system is easy enough to understand, there are only two main modules and a computer system.

The SERVO motor will turn the ultrasonic sensor around in a range of angles to achieve distances at those angles. That will then be fed back through the UNO into the computer system.

We use a XC4482 as a base for creating our servo/ultrasonic interface, as well as a smaller prototyping shield to provide a physical hardware mounting between the SERVO and ultrasonic sensor.

To make the ultrasonic sensor fit on the servo easily, use the small XC3850 prototyping board as a base for the ultrasonic sensor.

Notice in the picture above there is a small hole drilled around the centre of the board. This is to allow the SERVO screw to fit in and mount the SERVO arm to the servo.

It's generally easier to drill this hole out first then solder the ultrasonic sensor into the board as shown.

Then it’s just a case of soldering wires to the four pins of the ultrasonic sensor, and hot-gluing one of the SERVO arms to the board so that it is attached to the SERVO.

We used wire-wrap wire ( WW4346 etc) for the small connections but you can use any wire that you have available. Make sure the wires don’t get in the way of the SERVO arm.

The shield interface is pretty simple to understand, it simply connects the SERVO (3 pin) and ultrasonic (4 pin) to the Arduino.

We position the header connectors close to the edge of the board so that there's plenty of room for the cables to move.

On the underside, we just wire it so the SERVO control pin is A1 and the Ultrasonic pins are connected to pins 8 and 9. We also use a jumper wire from one header connector to the other to join up the VCC connections, and then join the GND connection to the GND on the Arduino.

Following this order makes sure the socket leads stay together and run neatly next to each other without tangling VCC/GND/DATA lines.

Attach the SERVO module to the SERVO and rotate to check it’s in the correct position. The SERVO is non-continuous, so you’ll have to check and reposition the ultrasonic sensor if you find that it can’t turn the the full range of motion.

Once it's in place and rotating at the desired range, screw it into the SERVO through the screw hole.

Position it where it needs to be and put the shield on top of the Arduino. Make sure the VCC is going to 5V on the Arduino, and GND is connected to ground, for both modules.Then connect to Arduino and load the code, you should be able to press upload and see the SERVO begin to rotate.

Once the radar is activated you only need to open up the processing IDE, load up the GUI code, and press run.

The Processing GUI will connect to the last Serial port on your computer, which should be the Arduino.

You won't be able to connect to the Arduino via Processing if you have the Arduino Serial Monitor or Serial Plotter open. Close these and try to run the Processing sketch again.

Future Improvements

Do you have more ideas on how we can improve the radar? Submit a GitHub issue and get collaborating!

Similar projects you may be interested in

USB Serial Converter
Test & Tools
Arduino Tool: USB-Serial Converter
Difficulty

Test & Tools
GPS World Clock
Difficulty

UNO Programmer
Test & Tools
Duinotech Uno Programmer
Difficulty

HCF-August-Oscilloscope
Test & Tools
Simple Duinotech Oscilloscope
Difficulty