Building Quadcopter Software from Scratch - Theory

Topics: Control theory, PID controller, Inertial navigation system Pages: 2 (589 words) Published: August 27, 2013
I will be using aeroquad-s flight control software as a reference point (mostly because it works great and its one of the most used open source flight controllers out there).

My flight controller implementation is based on a MK20DX128 chip (found in Teensy 3.0 dev board), there is also an "older" outdated implementation of simple flight controller for ATmega328 (found in many Arduino boards, for this implementation i was using Arduino Nano). Step 1.: Hardware and parts

Let me start by listing the essential components that will you be needing for a working quad (of course you can pick your own hardware from a scratch) but i will list just a few basic parts anyway.

quadcopter frame (your own, or you can buy one on ebay)
4 brushless motors (at least)
4x ESCs (electronic speed controllers)
set of propellers (i advise you to get more, if you are planning to experiment with kinematics) lipo battery
sensors (i will be using mpu6050 chip on a simple breakout board) Microcontroller (either some Arduino compatible board, Teensy, or any uC that will suit your needs) TX system (more on the cheap side, you could use Turnigy 9x or Turnigy 9xR with a receiver that supports PPM output) - more on that later Step 2.: Sensors

Its time for you to learn what accelerometer and gyroscope actually do. (yes really)

accelerometer - measures g-force, its great to determinate pitch and roll angles, however accelerometers are acceptable to vibrations and shock Graph displaying accelerometer angle (shaking in hand)

gyroscope - gyroscope measures acceleration rate (which is perfect for quadcopters), gyroscopes aren't affected by vibrations however gyroscopes tend to drift over time (more on this later) Graph displaying gyroscope angle drifting over time

From the block diagram on top, you could probably have guessed that getting reliable data from those 2 sensors won't be so easy, but worry not.

Step 3.: Kinematics
Part where all the sensor "magic" happen, i will...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Building Software versus Building a House Essay
  • Quadcopter Essay
  • Essay on software
  • Software Essay
  • Jetblue Airways: Starting from Scratch Essay
  • From Determinism to Cognitive Theory Essay
  • Essay about Database Software
  • Theories Essay

Become a StudyMode Member

Sign Up - It's Free