15 | Combine a gyroscope and accelerometer to measure angles - precisely

Поделиться
HTML-код
  • Опубликовано: 29 дек 2022
  • Full code and manual on GitHub: github.com/CarbonAeronautics
    In this video, you will learn how you a Kalman filter can combine gyroscope and accelerometer measurements from the MPU-6050 to give accurate roll and pitch angle data to the flight controller.
    The purpose of this video series is to learn the basics behind a quadcopter drone and enable you to build one yourself, by dividing this challenging project in several easy-to-understand parts. You use the capable Teensy 4.0 microcontroller together with the easy-to-use Arduino language.

Комментарии • 89

  • @guruG509
    @guruG509 Год назад +56

    you can also use madgwick filter with gradient descent, it will be lighter for the microcontroller and more accurate than kalman

  • @darrenconway8117
    @darrenconway8117 14 дней назад

    What you want to do is create a mathematical model of the drone. The model has the same inputs/controls/outputs as the actual drone. Then, in real time, compare the model with the drone position, attitude, speed, altitude etc. Compare the model with the actual drone to derive an error signal that is fed back to correct the model. The actual position, speed, etc of the drone is somewhere between the measured and modeled values. With the Kalman filter it is very important to accurately model the error/noise.

  • @thorverhoeven3426
    @thorverhoeven3426 14 дней назад

    i can't find the full code on github please someone help

  • @koopdi
    @koopdi  +10

    Have you tried reading the data from the MPU6050's onboard Digital Motion Processor? Reading the DMP register data returns a quaternion.

  • @Auddy_s7395

    If raw data change immediately ex 0-90 while the gyro is actually 90 the Kalman should take for a long time til 90 as I saw. How to Fix?

  • @jointstrike2
    @jointstrike2 14 часов назад

    The STS (space shuttle) flight control computers used Kalman filtering

  • @attilafazekas9508
    @attilafazekas9508 Год назад +2

    Hi! Great Video! Thanks! Can You please share with us the theoritical background of Your Kalman Filter application?

  • @PremiDhruv

    I think there is an issue. When Gyro Integration is happening in 3d, ideally you have rotation matrices multiplication at each step. But your code and logic does not adhere to it. I think it was handled little bit by Kalman filter and if you include that too, error will come down drastically. What say ?

  • @kazimkhan4259
    @kazimkhan4259 Год назад +9

    Great Job, quick question though. In the gyro_signals function we are setting Digital Low Filter(0x1A), Sensitivity for Gyro(0x1B) and Sensitivity for Accel(0x1C) and then read the raw values and then do the Kalman Magic. As gyro_signals get called every time we want to read the sensor data it will set the Digital Low Filter(0x1A), Sensitivity for Gyro(0x1B) and Sensitivity for Accel(0x1C) which in my personal opinion is redundant. Is there a reason why we are doing this? In my view Digital Low Filter(0x1A), Sensitivity for Gyro(0x1B) and Sensitivity for Accel(0x1C) can be set as part of the setup. I may be incorrect but thats how I see it.

  • @NFL_31258

    Need to have a patreon account

  • @techtheguy5180

    I can't thank you enough! You are making my lifelong dream come true.

  • @lexasolopow
    @lexasolopow Год назад +6

    This incredible work to share. Thanks so much

  • @VinodPatel-tb8ii
    @VinodPatel-tb8ii Год назад +10

    Great Job. I am also making a quadcopter using a complementary filter. After watching your Kalman filter video, I am thinking of incorporating your approach in my flight controller. Can't wait to see the next videos.

  • @Terx37
    @Terx37 Год назад +7

    Great explanation, thank you 👍

  • @leomartihart
    @leomartihart 21 день назад +1

    que buen proyecto, amigos.

  • @roliveira2225
    @roliveira2225 14 дней назад

    Very good! Thanks for posting!

  • @frankdearr2772
    @frankdearr2772 9 часов назад

    Great topic, thanks 👍

  • @salmantechnologies282
    @salmantechnologies282 Год назад

    Great Sir now start work on rocket control system ...

  • @AndrewTSq

    thanks for the video, is there any video that just shows what todo with the calibration data?

  • @mohammedhammouda2692

    Thank you very much. You should publish. Ready to help!