Quadcopter PID explained

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • I created this video to help with PID understanding, In this video I discuss Proportional, Integral and Derivative components to the PID.
    Later in the video I demonstrate how the PID works in terms of the CPU cycles on the flight controller.
    Quadcopter PID explained.
    Follow me at:
    Twitter: / atamopodcast
    Tip Jar
    www.buymeacoff...

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

  • @nghin4vacsf
    @nghin4vacsf 6 лет назад +6

    Your tutorial is the only one I've seen so far that removes the mystery involving PID. It gave me the needed foundation so I could go into betaflight to make changes to the PID values with confidence. Thank you very much.

  • @StonyRC
    @StonyRC 3 года назад +8

    As a newbie to Quads, this was both mind-bending and extremely interesting. Many Thanks.

  • @tobybaerman2296
    @tobybaerman2296 6 лет назад +6

    im glad you broke this down...i dont want a brainiack course just an explination..... excellent!!!

  • @undertheradar4645
    @undertheradar4645 6 лет назад +6

    Awesome video Andrew. I appreciate you taking the time to make this!

  • @aswinsuresh2097
    @aswinsuresh2097 4 года назад +3

    Well explained
    After this am able to get a clear view about pid

  • @malcdickinson06
    @malcdickinson06 7 лет назад +6

    very well explained, much easier to understand, thank you!!!

  • @BrjanBuckmaster
    @BrjanBuckmaster 24 дня назад

    Thank you for this enlightening explanation. My challenge now is to determine what the initial values should be for a large quad I am building. I’m thinking of using the default values built into the flight controller’s firmware and then tweak the values individually, beginning with P then I and finally D until I get the stability I desire.

    • @BusinessAnalyzer
      @BusinessAnalyzer  День назад

      Do start with the default values then tune from there. There is really no 'template' that I have found. You could have the same flight controller model but they behave slightly differently.

    • @BrjanBuckmaster
      @BrjanBuckmaster День назад

      @@BusinessAnalyzer Yeah, I found that out the hard way. Mine crashed when I changed flight modes to LAND and the motors disarmed. I am almost done repairing the damage and when it is ready to fly again, I will start with the default values and make small tweaks.

    • @BusinessAnalyzer
      @BusinessAnalyzer  3 часа назад

      @@BrjanBuckmaster Ouch! I use a Frsky Taranis transmitter and programmed the flight modes into a toggle, including a toggle for the Arm and Disarm. Betasky flight controllers. I used a lot of RUclips tutorials to get all those configured back in the day. I've been away from building for a while. Maybe will get back into it in a couple years when the kiddos get older and bother me less :)

  • @robinsharma7920
    @robinsharma7920 4 года назад +2

    Really well explained...thank u sir.❤

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

    Very well explained.

  • @lalaneverquit
    @lalaneverquit 5 лет назад

    Thankyou so much for the beautiful explanation.

  • @thomasilk7
    @thomasilk7 6 лет назад

    Thank you
    This helps me a lot by building my autonomous gnss drone!

  • @goodkhan5597
    @goodkhan5597 5 лет назад

    very good explanation....thank you sir

  • @joshchambers1941
    @joshchambers1941 6 лет назад

    Thanks for the description.

  • @AsgardStudios
    @AsgardStudios 5 лет назад

    Fantastic tutorial. Cheers!

  • @UTubeJunky
    @UTubeJunky 3 года назад

    Well, done.

  • @stephankahlau6759
    @stephankahlau6759 5 лет назад

    Great video!

  • @fiendleon
    @fiendleon 4 года назад

    Thanks for this video

  • @tsilfidis1996
    @tsilfidis1996 6 лет назад +1

    that was really helpful GJ!!!!

  • @datafuse32
    @datafuse32 4 года назад

    Nice video sr ... Can u please make a video .. explaining all the. Parts of flight control board ... Along with function ... Plz

  • @ApmusicAbhay
    @ApmusicAbhay 5 лет назад +1

    Nice

  • @apisxquad1732
    @apisxquad1732 5 лет назад

    Different explanation in BF. At least your explanation give me some ideas what PID its all about. Thanks Andrew.

  • @toddspeck9415
    @toddspeck9415 5 лет назад +1

    Really good explanation of pids. Thank you very much! Wonder if you might have any tips...Running Silverware on Bwhoop pro...I'm in the Keil bug software. Learning how to adjust quads at programming level. I am getting this really crazy back and forth wobble in angle mode...It is not as bad in acro. I know that in acro it's turning off the gyro/accelerometer. I am using the b-whoop boards in my own custom builds. I have tried so many different test's adjusments...It's better. But I still have a slight wobble in acro...and its terrible in angle mode. In the stock firmware there was no wobble in angle..Bound and determined to figure this out.

  • @magicmic2786
    @magicmic2786 6 лет назад

    I watched full video very well explained as I have watched others PID videos. I like your analogy's and easy to understand.

  • @propabilityfpv303
    @propabilityfpv303 6 лет назад

    thx for the good explanation

  • @evanriggs1381
    @evanriggs1381 3 года назад

    Thank you!

  • @Funcentric
    @Funcentric 4 года назад

    Wow, nice video. The way you're explaining it sounds like PID tuning is more about adjustments to correct the quad to become more predictable - to match stick input with what the quad does. As opposed to rates adjustment which is more about personal preference (of sensitivity of the sticks at each part of the range). Am I understanding that correctly?
    As far as the cycles are concerned, it sounds like PID needs to be adjusted in that exact order. e.g. loud scream, quieter scream and adjustment once loud scream is no longer heard. Correct?

  • @Rov-qc2ti
    @Rov-qc2ti 6 лет назад

    thx i will implement it to arduino

  • @stonedDawg
    @stonedDawg 3 года назад

    cool! thanks for explaining! btw, why would D cause a hot motor?

  • @dflash0
    @dflash0 6 лет назад +8

    I have heard the same explanations from 3 diff plp and they still dont teach you how PIDs truly affect the flight. They are teaching theory on a whiteboard. Just grab a quad and a laptop, take it to the field and demo how diff setting in Betaflight, cleanflight, etc affect the flight, flips, dives. That what I want to hear.

    • @propabilityfpv303
      @propabilityfpv303 6 лет назад +1

      depends on your learning style

    • @BusinessAnalyzer
      @BusinessAnalyzer  6 лет назад +3

      Hi Eli. Agreed as well, however, unless you have the sticks in your hand it is hard to demonstrate this. Hearing the PID explanations helped me to understand why I am getting certain wobbles during flight and how to adapt the PIDs to get a more stable flight.
      Check Mr. Steele (Former RoterRiot member) he has a video where he had 2 quads with the same flight controllers and the quads performed radically different. The theory helps frame the context.
      Large differences in control, work on the PID, for smaller vibrations during flight, work with the I and D. It's all trial and error at that point.
      Cheers!

    • @bdok7607
      @bdok7607 5 лет назад

      Look here its what u want... ruclips.net/video/27lMKi2inpk/видео.html

    • @dlwalter
      @dlwalter 5 лет назад +1

      The problem is that most quads are running PID controllers on their attitude rates, not attitude itself. Correcting attitude error is much more intuitive like in this video, when in actuality, the quad controller PID is correcting attitude rate error (deg/second of roll, pitch, and yaw)

    • @santiagomoebio
      @santiagomoebio 4 года назад

      @@dlwalter Thanks for this clarification, I was thinking something was off with the explanation… the sticks do not command quad angle, they command quad rotation speed! I guess one way to see it is that the video is still valid as explanation considering that the aiming position is in constant movement (at the rate set by the stick).

  • @mcbalasubramaniam4690
    @mcbalasubramaniam4690 5 лет назад +1

    how does a pid do two motionl analysis like a roll to a particular angle and a rise to a particular altitude

    • @jaideepshekhar4621
      @jaideepshekhar4621 4 года назад

      How about all three at the same time? Pitch, Roll and Thrust.

  • @exorc1st995
    @exorc1st995 6 лет назад

    Still what values do what though ? 0 is turning off higher is making it work more ?

  • @swarnamohanchandrakanth5243
    @swarnamohanchandrakanth5243 3 года назад

    Sir if we are equal P and I values, what will effect on drones?

  • @legolas8886
    @legolas8886 4 года назад

    A basic question here, the error is [Radio Input - Sensor] or [Zero level - Sensor]?

    • @vickihurd8082
      @vickihurd8082 4 года назад

      legolas8886 I believe Radio Input minus Sensor is the error, as that is the error between what you wanted your result to be versus what your current actual result is.

  • @user-lf1yw5cl4s
    @user-lf1yw5cl4s Год назад

    ho thank to you for good information , can have the information in pdf iam student indeed to make report to my teacher to help me in examination degree ,plc

  • @vanabhilash
    @vanabhilash 6 лет назад

    Sir, Why does proportional stops at a certain threshold? What decides that threshold? And what is making the integral know that proportional has stopped and now it has to come into process.

  • @lalaneverquit
    @lalaneverquit 5 лет назад

    I have one question. Is it possible to use any processor like smartphone's snapdragon, mediatek, exynos etc or PC processors like Intel or AMD processors for a Flight Controller?

    • @noobFPV
      @noobFPV 4 года назад

      Sure. Why would you though ?

  • @zx128ks
    @zx128ks 6 лет назад

    Andrew, thanks for video. One question, when tuning P, do we need to have I and D already set? or starting with like P = 50, I = 0 and D = 0 is ok?

    • @BusinessAnalyzer
      @BusinessAnalyzer  6 лет назад +2

      Lev Ani Some drones might wobble in flight. This can be very visible while flying the drone with FPV goggles. However, sudden forces on the drone like a gust of wind can cause erratic behaviour and a possible crash.
      One of my nano drones will simply flip over the moment I give it enough throttle to get into the air.

  • @crazysavage7840
    @crazysavage7840 7 лет назад

    hey can I get the formula for the calculation of pid??

  • @djacob7
    @djacob7 6 лет назад +2

    Derivative?

    • @abbeyglencircle
      @abbeyglencircle 6 лет назад +1

      Dan Jacob that extra push at the end into position

    • @djacob7
      @djacob7 6 лет назад +1

      abbeyglencircle
      Just the spelling he got wrong

  • @gazzmireful
    @gazzmireful 5 лет назад

    You mention cycles on miliseconds time frame, that seems inaccurate. If the CPU cycle rate is for example 1 GHz then a cycle lasts 1 nanosecond.

    • @dlwalter
      @dlwalter 5 лет назад

      The attitude controller software for quads is running on a loop in the microsecond to milliseconds scale which is much slower than a CPUs clock cycle.

  • @fpvforever1790
    @fpvforever1790 6 лет назад +1

    P and D are doing all the work. I seems useless.

  • @twp3029
    @twp3029 3 года назад

    Just use pids 66 66 69

  • @vamsidharreddydalli3647
    @vamsidharreddydalli3647 6 лет назад

    you explanation is awesome. but can you please upload the arduino code for that.