Introduction: Ultrasonic Sensor on Dragonboard With Mezzanine Board [DRAGONBOARD] [QUALCOMM] [HACKATHON]
With this instructable you'll be able to use the Ultrassonic Sensor with the Dragonboard.
- Arduino IDE installed on your Dragonboard's system ~ $ sudo apt-get install arduino-mk ~
- Mezzanine board for Dragonboard
- Ultrasonic Sensor
- Ultrasonic Sensor Lib for Arduino
- Mezzanine digital port's adpter
- 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!
We have a be nice policy.
Please be positive and constructive.