16 | Program an angle mode flight controller in Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ค. 2024
  • Full code and manual on GitHub: github.com/CarbonAeronautics
    In this video, you will learn how you can program an angle mode flight controller for your drone from the angles calculated by the Kalman filter.
    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.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 26

  • @kouider76
    @kouider76 ปีที่แล้ว +2

    This channel is really underrated. well done mate

  • @robertparenton7470
    @robertparenton7470 ปีที่แล้ว +2

    This channel is really underrated. Well done, mate. ( I agree because I can not find any information like this) Joop Brokking YMFC-32 has some great information on his drone builds but not the mathematical information CA has in the manual.

  • @quaternion932
    @quaternion932 ปีที่แล้ว +1

    well done mate. great job !!!!

  • @vasantnehete3459
    @vasantnehete3459 11 หลายเดือนก่อน

    Thanks for taking effort .

  • @teuluPaul
    @teuluPaul 12 วันที่ผ่านมา

    Thanks! Just one question from this video: you mentioned setting the I and D term to zero for the angle loop, and said you would explain later - I didn't see the later explanation? Apologies if I missed it!!

  • @farisalfianto01
    @farisalfianto01 ปีที่แล้ว +2

    i think it would be very interesting if this learning video was continued to make the flight controller mode way point. btw thanks bro👍

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว +4

      We'll see if i get to this point, but would be nice indeed! First we'll need to implement a GPS which was not foreseen initially, so let's see!

  • @user-ch9jn2qt8r
    @user-ch9jn2qt8r 6 หลายเดือนก่อน

    Extraordinary, but you are a genius of old school, because your system is a MONOLITHIC one! please continue in direction of way point! here you could stop or continue if you want! I have enjoyed the mathematical precision!
    Without way point (not more) is your genial work incomplete!
    (I know the genial work of Joop Brokking YMFC-32 very well!)

  • @saumik629
    @saumik629 6 หลายเดือนก่อน

    How did you change the PID constants as i am seeing two loops here. Can you explain or give me some advice please?

  • @praveenkumarsinha9192
    @praveenkumarsinha9192 4 หลายเดือนก่อน

    what was the reasoning behind proportionality constant of 2 for angle controller?

  • @Lorenz-Butterfly
    @Lorenz-Butterfly 4 หลายเดือนก่อน

    Thanks!

  • @TheTechnokobi
    @TheTechnokobi 10 หลายเดือนก่อน

    Can we get the yaw?

  • @juanitoplatagonia5156
    @juanitoplatagonia5156 ปีที่แล้ว +3

    I'm wondering, what are the reasons to use a double loop instead of directly controlling motor speed from Kalman angle error ?

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว +1

      Good question. The rotation rate measured with the gyroscope changes much faster than the angle measured with the accelerometer. As such, you need the very responsive inner loop based on the rotation rate to balance the drone. If you would directly control the motor speed with the angle error, the response will be too slow to balance the quadcopter

    • @juanitoplatagonia5156
      @juanitoplatagonia5156 ปีที่แล้ว +1

      @@carbonaeronautics Thanks a lot for your answer !
      However, the MPU6050 has a 1000Hz refresh rate for the accelerometer, shouldn't that be responsive enough for a 250Hz PID controller ?
      In practice, I'm currently trying to make it work with a single loop and it's pretty unstable so I will probably try 2 loops soon, but I'd still like to understand why it's not good enough

  • @hassanismail3087
    @hassanismail3087 ปีที่แล้ว

    Hello, if all roll, pitch, and yaw inputs must be 1500 for 0 movement, what should the total input to motor 1 be? If we had a throttle value between 1000-2000, motor 1 would never start. Can you please guide me through this? How should I deal with the motor mixing algorithm?

    • @lightbender2769
      @lightbender2769 6 หลายเดือนก่อน

      You you the a look at the flight controlling code, you will see that the common variable on all 4 motors is the throttle input from the rxtransmitter.. hence, if there is no movement on pitch, toll or yaw of the transmitter, , with a good pid tuning values, all those motors are to have the same value promotional to the throttle stick position.
      That only, ofcz, if the quadcopter as well, isn't moving.
      So the throttle is the common denominator for all motors.

  • @thorverhoeven3426
    @thorverhoeven3426 5 วันที่ผ่านมา

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

  • @uav.project8022
    @uav.project8022 ปีที่แล้ว +1

    i can hear the motors suffering from high frequency noise in the gyro data because u didnt care about filtering. isnt motors and esc s hot?

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว +1

      I did not experience issues with the motors and ESCs. The gyro measurements are in fact filtered through the low pass filter, that we set to 10 Hz in register 1A of the MPU6050 (see part IV).

  • @feruzmurodinov6367
    @feruzmurodinov6367 ปีที่แล้ว

    Servo mashina e giraskop da

  • @hereagain
    @hereagain ปีที่แล้ว

    Please share the Angle Flight Controller code on github

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว +2

      I've uploaded it just now: github.com/CarbonAeronautics/Part-XVI-FlightControllerAngleMode

    • @hereagain
      @hereagain ปีที่แล้ว

      @@carbonaeronautics Thanks

    • @hereagain
      @hereagain ปีที่แล้ว

      There are two PID’s for angle and rate, so which pid values I have to tune