Sunday, November 2, 2014

Seeing Spark - Sparky2 and SparkyBGC quad

Update: Sparky2 is available here

One of my longer term goals for a while is a system that can chase me around and film my friends and myself having fun. This seems to be a trendy topic this year with piles of kickstarter projects about this, so I won't pretend this is a unique idea. However I finally have something that is getting close. You can find this on Thingiverse.


Some of my recent boards have been coming together towards this aim (see this post for a longer discussion of boards and some history). Sparky BGC is a cleaned up revision on my previous daughter board for Sparky (providing BGC outputs to a normal Sparky) and adding an external sensor board for light weight gimbals. It also drops the whole thing into the standard 36x36 mm board size which makes it very convenient to stack up with a Sparky.

Tau Link is a miniature radio board that works with the Tau Labs Android GCS for telemetry. I ended up doing another revision that shrinks it down and adds a male USB connector which is more convenient when quickly plugging into an OTG cable or laptop.

Sparky 2 is a pretty major overhaul of Sparky 1, adding lots more IO and processing power, as well as radio capabilities which is convenient for communicating with Tau Link and ground stations.

One of the nice things about Sparky2 and SparkyBGC is that they both support CAN which provides a robust high-speed bidirectional communication bus between both boards. This means that Sparky2 (or Sparky1) can tell the gimbal about the desired angle to a position of interest for the camera.

Through discussion on IRC recently, I also realized that means it is possible to pass the heading measurements from the magnetometer on the gimbal (which is often fairly far from the motors) back to the flight controller to provide an external magnetometer for free. I'm pretty excited to try this.

All this means that the android application can easily pass the tablet or phone location up to the UAV, which can then point the camera at that location and acquire nice stabilized video. I have a few multirotors with gimbals that could be used for testing this, but they are all big and less conveinent for testing, so it was design time!

Power distro

I also really wanted to try out KISS ESC18A, which are tiny little things and also do not provide a BEC outputs. That seemed like a great motivator to make a power distro board that would route the PWM signals to these little ESCs and provide 5V to the flight controller. This board also provides current and voltage monitoring back to Sparky2 and comes in at just a hair below 30mm square.

You can see the wires for current voltage monitoring coming off the top, and for the ESC outputs below. The extra two outputs at the bottom at 5V and 0V. The footprints align to the KISS ESCs but can also be connected to any other ESCs. The connections for the PWM line are routed quite carefully around the edge to not obscure the power planes.

Frame Design

The goal was something about as small as I could achieve that could carry a mobius camera and stabilize it with the above hardware. I started with something similar in my mind as Flying Spark. I wanted a closed canopy over most of the hardware with the battery on the inside.  I also wanted the gimbal integrated into the main body to keep it compact.

 It wasn't possible to design a solid body that could hold all the components that could be assembled as a single piece. One thing I ended up doing to get it quite compact was to make a recessed pocket in the main body for the ESCs and PDB and hand the flight controller and gimbal controller from the top of the canopy, and then printing it upside down.

The arms have a little protective hub around the motors and a channel for the wires to run into the body.

The cables then go into the central body to the ESCs.

Here are the ESCs and power distribution board installed into the body of the frame.

And then Sparky2 and SparkyBGC installed into the bottom of the canopy and connected to the PDB ESCs and battery/voltage measurements.

And then covers placed over the boards and PDB to keep the battery away from them.

And here is the integrated gimbal on the front with the SparkyBGC sensor mounted to the top.

Camera Control

The camera is stabilized via the SparkyBGC board. This communicates via CAN (which is a nice high speed bidirectional bus) to the Sparky2 board. This allows information from Sparky2 to control the camera angle. For example, you can set it up to only correct part of the flight controller roll which creates a smooth video that still shows some of the action. You can also set up the pitch to be controlled via a slider or switch from the transmitter that is relayed via the flight controller.

Finally, you can also use the Tau Labs Android GCS to talk to the flight controller and pass the location of the phone or tablet. The FC then calculates the heading and camera pitch to focus on that point of interest and tracks it. This doesn't work perfectly because the phone GPS is sometimes noisy or slow, but generally works quite well. You can also work around this by directly dragging and moving the POI location rather than tracking the tablet.

Final Assembly and Flights

Here you can see it all put together.

And with an updated canopy that has smoother lines:

Here it is being used to do some simple point of interest tracking to my phone, being held by my lovely assistant.

Crashing :D

This quad got plenty of crashing :). You can see in the long video at the end where I plowed it into the ground upside down. The result was two broken arms:

I also had a good time taking it out this weekend. My friends dog also absolutely loved chasing it (he loves running). I'm still not the best at flying backwards at high speeds while leading a dog, though. One of the earlier flights I caught a tree enough to unscrew a prop nut. It landed flat enough and unharmed. Unfortunately despite ten minutes of a number of us looking, we couldn't find the nut and I foolishly forgot spares.

I turns out you can use a spacer screwed on with camping tongs to get airborne again :D

Unfortunately, that only lasted too long until I backed into another tree, this time much higher...

So back to the 3D printer. I think I might try and smooth some of the curves in the canopy anyway, and possibly reinforce the walls some more.


  1. This doesn't work perfectly because the phone GPS is sometimes noisy or slow, but generally works quite well. You can also work around this ...

  2. No more waiting to become famous currently. Buy Facebook Followers as a way to acquire popularity and authority on internet in a short span. order facebook followers

  3. For getting an increased publicity for your facebook account, Individuals expend dollars to Buy Facebook Followers to conveniently have exposure on world wide web. facebook followers

  4. This doesn't work perfectly because the phone GPS is sometimes noisy or slow,

    Send Flowers To Japan

  5. Nice and informative post. Thanks for such a wonderful post.
    Myassignmenthelp provides custom Nursing assignment help to students who find it difficult to complete their essays and assignments in the available time.

  6. Wonderful, what a weblog it is! This website presents helpful information to us, keep it up. Send Gifts To Pakistan

  7. Hire professional writers for Assignment Help New Zealand service at which provides best quality academic help to the students. Our more than 3000 well qualified writers are offering assistance through best writing services. Our experts are available online 24x7 for students help.

  8. Ireland Assignment Help is dublin assignment help service Provider Company which helps students to avail report writing helps.

  9. I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. Send Gifts To pakistan.

  10. Informative write up. When the pressure of producing an elaborate essay paper on a complex topic gives you sleepless nights, that’s when you should reach out to our best essay typer. These writers guarantee that the services provided by them are nothing short of excellent.

  11. At the time we've come to check out right here a little over a week ago, my brother was first so insistent around making comment on Ryan's idea actually being put forward. I, however, insisted that we ought to keep our mouth closed for a while and merely never come up with a comment however when he made an effort to create one more comment that provides criticisms like Pakistan trends Pakistaneo about how other people reacted on his assertion, I guess he was dead completely wrong with it. so check Pakistan

  12. Website is the premier method to introduce your business to the market. I find it good to see that you have done well in maintaining your site. Students not being able to write their academic coursework could opt for our Thanks..!!!!!!!
    Assignment Help
    and can get comprehensive homework written from us.

  13. This comment has been removed by the author.

  14. is a quality written work benefit accessible on the web. Be that as it may, it has two hindrances: there is no valuing page accessible so you can't set a particular spending plan for your paper and you are restricted to the ways you can get in touch with them, which is now and again is inadmissible for scholarly written work request.

  15. You can see the wires for current voltage monitoring coming off the top, and for the ESC outputs.
    Get more info. about
    corporate finance assignment

  16. Nice Article Dear! Appreciate your sharing this best posting. Thank you for this great info with tips, and the encouragement!! I'm Content Writer, Write Assignments for students, If you want to see premium assignment writing services services please check my take assignment help blog.