Radar Gun With Gyroscope.

by John Alimoglu in Circuits > Arduino

21 Views, 0 Favorites, 0 Comments

Radar Gun With Gyroscope.

IMG_0070.png

This is a speed measuring device that can calculate speed using both a linear measurement and a angular measurement.

Supplies

The material you will need include:


  1. 1 Arduino Nano
  2. 1 Ultrasonic Sensor
  3. 1 Small breadboard
  4. 1 Serial LCD (Or any display of your choice you will just have to make a slight modification to the code)
  5. 1 Gyroscope (I used a )
  6. 3D printer with filament to make the casing (optional)


Code and the .stl for the case: https://github.com/John-Alimoglu/SpeedCameraCode

IMG_0102.png

Attach your Arduino Nano to the front of the small breadboard. Then glue the breadboard down so the USB port is accessible through the hole.

IMG_0101.png

If required solder the pins onto your gryoscope. Make sure you use the straight pins not the 90 degree bent ones.

IMG_0100.png

Install your Gyroscope next to your Arduino

IMG_0099.png

Wire up the power pins on the gyroscope. Then wire SCL to A5 and SDA to A4. This allows us to receive info from the gyro.

IMG_0095.png

Solder 4 wires on to your ultrasonic sensor then wire the ground one to ground, vcc to 5v, trig to pin 2 and echo to pin 3.

IMG_0094.png

Push the ultrasonic sensor into its slot.

IMG_0097.png

Wires the displays power pins then wire the RX pin to the Arduino Nanos TX pin

IMG_0096.png

Use some wire, string or whatever you like to attach the screen to the box.

IMG_0093.png

Add your switch into the slot in the lid and wire it to pin 4 and 5v.

IMG_0070.png

Simply add the lid and run the code.