This is a cache of https://www.96boards.org/blog/diy-drone-featuring-gumstix-96boards-take-flight-openhours/. It is a snapshot of the page at 2024-12-18T03:35:48.592+0000.
DIY Drone featuring Gumstix! 96Boards take flight on OpenHours - 96Boards

DIY Drone featuring Gumstix! 96Boards take flight on OpenHours

Robert Wolff
|

96Boards take flight on OpenHours!

As you may have seen, OpenHours broke into Season 2 with an exciting miniseries on drone development for 96Boards! In this two-part series we spoke with Keith Lee (the GumstixGuru) about Gumstix, Geppetto, dragonboard 410c and the Gumstix AeroCore 2 Mezzanine board, these were the main components used in his debut demo of the drone (Appropriately named the GadgetDrone). Because this demo was so awesome, Keith and the 96Boards team wanted to make sure everyone had access to instructions on how to recreate the drone he built and flew live on OpenHours Episode 25 (Drone launch at ~45m).

As an added OpenHours bonus, Gumstix has generously offered to provide a free one hour consult with Gumstix Engineers for anyone who fills out a short survey.

This is your chance to create your very own design in Geppetto and Gumstix Engineers will help you get it to market!

Excellent! Well with all of this said, I am sure you are ready to get building! Please share your drone progress with us on Twitter, we would love to see more 96Boards take to the sky!

Follow us on Twitter: 96Boards |Gumstix |Keith Lee |Robert Wolff


Introduction

Instructions by Keith Lee from Gumstix

These instructions will – as briefly as possible – help you set up a dragonboard 410c with the Aerocore 2 mezzanine card to fly a drone with PX4 R/C and wireless, telemetry, and video feed capabilities.  The final steps of this demo – software configuration, connections, and test-flight, were broadcast live during 96Boards Open Hours #25 and posted on the 96Boards YouTube channel.


Parts List

The parts used to construct this quad-copter drone are listed below, with storefront links to each of them.

Diy Drone Image 1

Prep Time

Before we get started, there are a few things you’ll need to take care of.

  • Assemble your drone kit.

    • Do not attach the rotor blades yet. You really don’t want your drone unexpectedly taking flight in the middle of your office/house/garage.
  • The 12V battery connector and regulator on the Aerocore can handle the main battery’s output but there is no built-in connector on the drone or the battery.

    • You can solder some jumper wires onto one of the motor power terminals on the base plate of your drone (circled in green here)
soldering highlight

Put It All Together

With these initial steps complete, it’s time to make a drone.

Step 1:  Attach your boards

You will want your boards securely attached to the frame of your drone.  Unfortunately, MAV frames don’t all come with universal mounting points so some creativity is required to get these boards mounted.  In the following example photos, a small, sturdy cardboard box is zip-tied to the frame and risers are attached, to which the dragonboard is attached.

box 2

The box proved to be handy in concealing the excess wiring for the PWMs, power and webcam.

box 1

Attach the dragonboard,  the satellite receiver, and the camera to the frame and the Aerocore to the dragonboard.

Dragonboard mounted screenshot drone

Step 2: Connect Wiring

Screenshot 2

There are a few wires and cables that must be attached to get your drone working: the PWM connections for the electronic speed controllers (ESCs), the DSM satellite receiver, power and camera. Finding the right sequence by which the PWMs should be attached is tedious if this is your first quadcopter build so the graphic below illustrates the PWM pin-out.

ac24db_pwm

Now it’s time to deal with the software.

Step 3: Software

The final pre-flight step is to configure your software.  There are three steps:

  1. Flash PX4 firmware to the MCU

  2. Start data pipeline on the dragonboard

  3. Calibrate on-board sensors

Flashing the firmware is made trivial by QGroundControl’s built-in flashing utility.  Open up the program and go to the setup tab ().  Along the left-hand side will be a button labeled “Firmware”. When you click on this button and then connect the Areocore 2’s “stm console”, QGC will guide you through the flash process.

microcontroller-console

The rest of the pre-flight work can be done over WiFi on the dragonboard. Going wire-free will also make calibration a little easier.

Disconnect the USB cable from your Aerocore and connect the battery. Once the MCU and dragonboard boot, SSH into the dragonboard and enter the following command:

mavproxy.py –master=/dev/ttyMSM1 –baudrate 115200 –out xxx.xxx.xxx.xxx:14550 –aircraft MyCopter

Once the MAVlink command interface comes up on the dragonboard, QGC should be able to connect to your drone. If it does not connect correctly, you may have to add a UDP connection to QGC’s settings.  The setup screen should look simmilar to the following screenshot:Where xxx.xxx.xxx.xxx is the IP address of your PC.

drone 96Boards

If this is the first time your aerocore has been configured, the cicles that appear green in this shot will be red and you will not be able to deploy your drone until they all appear green.

Configuring your drone and calibrating the sensors is very straightforward thanks to the self-explanatory interface in QGC.  Click on each item along the left-hand side in turn – apart from “Firmware”, which you have already done – and follow the on-screen instructions.  Once all the lights are green, you’re ready to fly.

The final, and completely optional steps are getting the camera feed from the dragonboard to QGC, and attaching a Pre-GO GPS module.

Adding a GPS module is very easy.  Once it’s connected, it will work right away.  The 5-pin molex connector next to the DSM satellite receiver connector.  Power down your drone and plug the module in using the included cable, and

The video streamer, like the MAVlink proxy, is a single command on the dragonboard:


gst-launch-1.0 uvch264src initial-bitrate=1000000 average-bitrate=1000000 iframe-period=1000 \

device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1920,height=1080, \

framerate=24/1 ! h264parse ! rtph264pay ! udpsink host=192.168.0.106 port=5600


With both the proxy and the video feed running on the dragonboard, your flight screen will look something like this:

If you have added a Pre-GO GPS module, your drone’s location will appear in the navigation map seen here in the inset. You can switch the primary view between the video stream and the navigation map by clicking on the inset in the bottom left-hand corner.


Conclusion

This completes the demonstration walkthrough.  Having followed these steps you should have a fully operational quad-copter.   Watch this video to see the Aerocore 2 for dragonboard 410c in action:

https://www.youtube.com/watch?v=LIH0tpi9KwE&t=0m41s


Open Hours

Don’t forget about the Open Hours every Thursday, where we will discuss this blog along with other pressing questions amongst a fun crowd of 96Boards users and developers over coffee. We hope to you see you there!

comments powered by Disqus