loading

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 :)

Step 1: Connecting Wires in the Adapter

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

Step 2: Coding and Do the Same Old As You Do on Arduino

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 .

Step 3: DONE!

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

<p>Welcome to Instructables. Thanks for sharing the cool project.</p>
Thank you! Gonna share much more :)