Skip to content
0:00 / 0:00

#complementaryfilter#imu#gyroscope

Drone Control and the Complementary Filter

Brian Douglas

339K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2020 to 2025.
  • Presented by Brian Douglas

Intermediate. Assumes working knowledge.

144K views7 years ago2 recommendations

Systems programmingHardwareEmbedded systemsAlgorithms

Brian Douglas explains how to use a complementary filter to estimate drone attitude by combining accelerometer and gyroscope data.

Find all of my other videos here: engineeringmedia.com/videos Get the map of control theory: redbubble.com/shop/ap/55089837 Download eBook on the fundamentals of control theory (in progress): engineeringmedia.com Let's talk about the complementary filter and how we can use it to estimate the attitude of a drone using an IMU. It is such a dead simple filter, which is a good reason to learn it, but it’s also practical because it produces nice results when blending measurements from two different sensors. Check out my videos on Drone Simulation and Control: bit.ly/2OnlW5m Website - www.engineeringmedia.com Patreon - patreon.com/briandouglas Twitter - @brianbdouglas Email - controlsystemlectures@gmail.com Errata: ~ - I state that the accelerometer is measuring the acceleration due to gravity, when in fact it's measuring the acceleration caused by the normal force from the ground. So it's directly up and the exact opposite direction of gravity! Whereas, an accelerometer in free fall would measure no acceleration at all even though it would be accelerating. So the "convert to angle" block would also take care of this sign flip. Don't forget to subscribe! If you have any questions on it leave them in the comment section below or on Twitter and I'll try my best to answer them. I will be loading a new video whenever I can and welcome suggestions for new topics. Please leave a comment or question below and I will do my best to address it. Thanks for watching!

Why it's here

2 people recommend this

What people say. Recommended as a simple and clear explanation of sensor fusion using a complementary filter for IMUs.

Moments people linked to

u/makingaquickaccountin r/embedded • Recommends

On “How to Convert Gyroscope Angular Acceleration to Angle?”

…n. Since Gyroscope gives Degrees/s that is angular velocity, so using the same logic you can sum these values up and then multiply by the sample rate. So if you sample it every 2ms, then it will be gyro\_data += gyro\_data \* dt (i.e. 2ms). Like everyone else was saying using an accelerometer is a great way to help correct error in the long run. [video this is SUPER simple filter to implement, and it explains how the gyro and the accel work together. How do you find position using accelerometer? Just like finding the angles between two vectors, you are gonna combine 2 vectors into one using the distance formula, then using arctangent (x/w) or (y/w) where w is the other two vectors combine…
3View on Reddit

u/KDallas_Multipassin r/embedded • Recommends

On “Why do IMU's use Gyroscopes? Looking for good resources on IMU's”

An example application and why you need both link to this video