A Quadcopter from Scratch

Quadcopter

[AwesomeAwesomeness] wanted a low cost quadcopter, so he built one from scratch. Okay, not quite from scratch. [AA's] cookie mix came in the form of an Arduino Uno and some motors. He started with motors and propellers from a Hubsan X4 quadcopter. Once the power system was specified, [AA] designed a frame, arms, and motor pods in Solidworks. He printed his parts out and had a sweet quadcopter that just needed a brain.

Rather than buy a pre-made control board, [AA] started with an Arduino Uno.  An Arduino alone can’t source enough current to drive the Hubsan motors. To handle this, [AA] added a ULN2003A  Darlington transistor array. The 2003A did work, but [AA] had some glitching issues. We think FETs would do much better in this application, especially when running PWM.

On the control side of things, [AA] added an MPU-6050 Triple Axis Accelerometer and Gyro breakout from SparkFun. The 6050 has 3 gyros and 3 accelerometers in one package. Plenty for a quadcopter.

All this left was the coding. Multicopters generally use Proportional-Integral-Derivative (PID) control loops to maintain stability in the air. [AA] used the Arduino PID library for his quadcopter. He actually created two PID instances – one for pitch and one for roll.

[AA] doesn’t have any videos of his quadcopter in action yet, and we’re guessing this is due in part to weight. Lifting an Uno, a perfboard, and a frame is a tall task for those motors. Going with a one of the many tiny Arduino’s out there would help reduce weight. In addition, [AA] could use a gear system similar to what is used in the Syma X series quadcopters. Stick with it – you’re on the right track!

 

Comments

  1. Biomed says:

    Use of “off the shelf” Uno and libraries gets no demerits from me! I’d really like to see details on your next couple generations of the design.

  2. Joe233 says:

    Is there anything more ‘buzzwordy’ than a * 3D printed * Arduino * Quadcopter * ? Anyway, nice work, but does it actually fly? I ain’t see no video there.

  3. geebles says:

    It probably also doesn’t fly properly because the props are not on correctly (opposite corners must spin in the same direction!)

  4. echodelta says:

    I can’t help but wonder if the airframes of the multicopters I have seen lately are clunky or too fragile. I make various things out of piano wire. It is very strong, springy, tool bent, or unbent, solderable, from .00X to .030 inch gauge, and in my case is scrap. Triangular space frame design, should be near crash proof. It just springs back, if not it’s up to two pliers and it’s tweaked. Wrap one turn around other wire (vise grips) and solder to join elements. Find a full service piano tuner-rebuilder. No toolbox or shop should be without it.

    • Mr Name Required says:

      Yeah, I agree. This frame looks quite heavy and fragile. I use music wire on occasions too, but my material of choice these days is carbon fiber rod. It’s not as expensive, rare or as outlandish as it sounds, as rods and strips of various sizes can be found at pretty much any hobby store nowadays. It’s super light and strong.
      Now, to attach CF to things I use my next-favourite modern material – Kevlar thread. It’s easy to buy a 50yd cotton reel of fly-tying Kevlar on eBay, and once again not expensive. Bind the rod or strip using the Kevlar, fix in place with cyanoacrylate (superglue) and smear a thin layer of epoxy over the binding. The result is a massively strong and light assembly.

    • Jim says:

      That sounds really interesting but I’m having trouble visualizing the construction you described – could you point me to some examples of structural frames built from music wire?

  5. This is great! This is exactly what i have been looking for :) Was kind of hoping HaD would have a some suggestion to other 3D printed frames, can’t help but think that the shapes of the “arms” should be flat and more aerodynamic.

  6. Advertise a Day == Hack a day.

  7. Ren says:

    I don’t see (read) of a control mechanism. If it is to be autonomous, it will need MEMS and sonar or something, if radio controlled it will need TX/RX circuits (additional weight)

  8. MS3FGX says:

    While I won’t deny this might be able to lift itself off the ground, I have serious doubts about its ability to fly around on its own. The Arduino Uno alone weighs 28 grams, which is more than half of the lift capacity of the Hubsan X4’s motors.

    Add in the frame, the rest of the electronics, battery…I don’t see it happening. Especially once you get into adding an actual radio or the hardware necessary for autonomous flight.

  9. rouan8bo says:

    Did a similar project not too long ago using an arduino due. http://fluentart.com/building-a-quadcopter/

  10. Alex Cruise says:

    The Vancouver HackSpace did one too (co-designed by Dan Royer, who’s been featured here a few times): http://learn.marginallyclever.com/index.php/Betamax_Quadcopter

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 92,354 other followers