Ultrasonic Sensor on Dragonboard With Mezzanine Board [DRAGONBOARD] [QUALCOMM] [HACKATHON]

by MateusG8 in Workshop > Tools

764 Views, 1 Favorites, 0 Comments

Ultrasonic Sensor on Dragonboard With Mezzanine Board [DRAGONBOARD] [QUALCOMM] [HACKATHON]

16229979_637230596461336_1099235406_o (1).jpg

HI THERE!

With this instructable you'll be able to use the Ultrassonic Sensor with the Dragonboard.

Pre-requisites:

  1. Arduino IDE installed on your Dragonboard's system ~ $ sudo apt-get install arduino-mk ~
  2. Mezzanine board for Dragonboard
  3. Ultrasonic Sensor
  4. Ultrasonic Sensor Lib for Arduino
  5. Mezzanine digital port's adpter
  6. Four Male-Female wires

It's supposed to your connection be like in the photo :)

Connecting Wires in the Adapter

16251083_637230613128001_1920707537_o.jpg
16229734_637230643127998_883331035_o.jpg

As you can see, the ultrasonic sensor has 4 outputs(Vcc, Trig, Echo and GND seeing it by the front side). You'll put the female side of each wire male-female on each output. Then you'll observe the adapter. It has wires of four colors right?? So do the following thing: the GND wire that you put on the GND output you'll put in the black input of the adpater, the Vcc wire in the red input, the Trig wire in the yellow input and the Echo wire in the white input. Then you can connect the adapter on any Digital port of the Mezzanine board.

That`s what the Brazilians call "Gambiarra" :P

Coding and Do the Same Old As You Do on Arduino

16197036_1226293870759148_530803688_o.jpg

Once you did the connections, you'll code like you're coding for an Arduino platform. The only thing that you have to be aware is, for example, if you connect the adapter on the D3 port of the Mezzanine Board, the Trigger pin you'll declare it like it's the digital3 port and the Echo pin you'll declare like it's the digital4 port. If you watch very carefully, above or next to each port has the specification of each wire of the port (GND,Vcc, Dx, Dy) as you can see on the photo of the D7. That`s how we discovered how to do our "Gambiarra" :P .

DONE!

16229979_637230596461336_1099235406_o.jpg

OK! So... this is it. Thank you for using our Instructable!