Quadcopter PID explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2017
  • 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.buymeacoffee.com/atamo

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

  • @nghin4vacsf
    @nghin4vacsf 6 ปีที่แล้ว +5

    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.

  • @undertheradar4645
    @undertheradar4645 6 ปีที่แล้ว +6

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

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

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

  • @malcdickinson06
    @malcdickinson06 7 ปีที่แล้ว +6

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

  • @tobybaerman2296
    @tobybaerman2296 6 ปีที่แล้ว +6

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

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

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

  • @lalaneverquit
    @lalaneverquit 4 ปีที่แล้ว

    Thankyou so much for the beautiful explanation.

  • @thomasilk7
    @thomasilk7 6 ปีที่แล้ว

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

  • @AsgardStudios
    @AsgardStudios 5 ปีที่แล้ว

    Fantastic tutorial. Cheers!

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

    Really well explained...thank u sir.❤

  • @joshchambers1941
    @joshchambers1941 6 ปีที่แล้ว

    Thanks for the description.

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

    that was really helpful GJ!!!!

  • @stephankahlau6759
    @stephankahlau6759 5 ปีที่แล้ว

    Great video!

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

    Very well explained.

  • @goodkhan5597
    @goodkhan5597 5 ปีที่แล้ว

    very good explanation....thank you sir

  • @propabilityfpv303
    @propabilityfpv303 6 ปีที่แล้ว

    thx for the good explanation

  • @fiendleon
    @fiendleon 4 ปีที่แล้ว

    Thanks for this video

  • @UTubeJunky
    @UTubeJunky 3 ปีที่แล้ว

    Well, done.

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

    Nice

  • @evanriggs1381
    @evanriggs1381 3 ปีที่แล้ว

    Thank you!

  • @toddspeck9415
    @toddspeck9415 4 ปีที่แล้ว +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.

  • @Funcentric
    @Funcentric 3 ปีที่แล้ว

    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?

  • @apisxquad1732
    @apisxquad1732 5 ปีที่แล้ว

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

  • @stonedDawg
    @stonedDawg 3 ปีที่แล้ว

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

  • @Rov-qc2ti
    @Rov-qc2ti 6 ปีที่แล้ว

    thx i will implement it to arduino

  • @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.

  • @datafuse32
    @datafuse32 4 ปีที่แล้ว

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

  • @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.

  • @exorc1st995
    @exorc1st995 5 ปีที่แล้ว

    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?

  • @crazysavage7840
    @crazysavage7840 6 ปีที่แล้ว

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

  • @lalaneverquit
    @lalaneverquit 4 ปีที่แล้ว

    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 ?

  • @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.

  • @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.

  • @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... th-cam.com/video/27lMKi2inpk/w-d-xo.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).

  • @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

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

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

  • @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.

  • @twp3029
    @twp3029 3 ปีที่แล้ว

    Just use pids 66 66 69

  • @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

  • @vamsidharreddydalli3647
    @vamsidharreddydalli3647 5 ปีที่แล้ว

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