PID demo

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024
  • For those not in the know, PID stands for proportional, integral, derivative control. I’ll break it down:
    P: if you’re not where you want to be, get there.
    I: if you haven’t been where you want to be for a long time, get there faster
    D: if you’re getting close to where you want to be, slow down.
    Motors, in general, don’t start or stop on a dime. So it’s easy to overshoot, undershoot, whatever. PID allows you to dial in those three concepts with numbers
    Thanks Warlax 56 for simplifying the PID
    تجربة مثيرة لفهم تأثير معلمات متحكم PID
    تستطيع تحميل ملفات المشروع من الرابط التالي : drive.google.c...
    Author : Dale Heatherington

ความคิดเห็น • 1.8K

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

    in 1 minute and 28 seconds, without saying a single word, you have explained how PID tuning works better than any other article or video I have ever seen

  • @warlax5658
    @warlax5658 5 ปีที่แล้ว +3186

    For those not in the know, PID stands for proportional, integral, derivative control. I’ll break it down:
    P: if you’re not where you want to be, get there.
    I: if you haven’t been where you want to be for a long time, get there faster
    D: if you’re getting close to where you want to be, slow down.
    Motors, in general, don’t start or stop on a dime. So it’s easy to overshoot, undershoot, whatever. PID allows you to dial in those three concepts with numbers.
    P.s. read the video description carefully

    • @jimothyus
      @jimothyus 5 ปีที่แล้ว +96

      Daniel Warfield good explanation, you really understand your shit. Thank you

    • @warlax5658
      @warlax5658 5 ปีที่แล้ว +111

      @Hazem Ketat I doubt it. Proportional means speed is proportional to the displacement between where you are and the goal.
      integral is the integral of the displacement over time, I think. that would mean that value would grow as time continued.
      I'm not an expert on PID, but I do know calc pretty well, and the underlying mathematical principles of integration and proportionality wouldn't make any sense in reverse. Proportionality, by definition, has no notion of time.

    • @DantevanGemert
      @DantevanGemert 5 ปีที่แล้ว +18

      This is the best explanation I've ever seen! Pure gold

    • @user-cw9lf3gl6x
      @user-cw9lf3gl6x 5 ปีที่แล้ว +204

      @Hazem Ketat His explanation is correct. Think of it this way. You're tailing a car with an identical car. The ideal position is right beside the car you're following. The P(roportional) controller would control the "speed" of your car. If the car you're following increases their speed, you'll also increase your speed to be the same. But that means once you get left behind, you'll always be left behind (because you can't get faster than the car you're following to catch up). This is the steady state error. Increasing P value in this kind of system results in faster "speed" control, but because of the reason stated above, you can't get rid of steady state error.
      I(ntegral) controller on the other hand would control the "position" of the car (because the integral of a speed function is a position function). This way you can get rid of steady-state error, because you're not only matching up the speed of the car you're following, you can also catch up, because while the P controller lets you get to the target car speed, I controller lets you get to the target car position. Add these two terms together and you can get more speed than the car you're following, and you can catch up if you're left behind. This gets rid of steady-state error.
      Additionally, D(erivative) would control acceleration rate. When you're getting closer the the target car while catching up, it will slow down the acceleration rate.
      Combining these three parameters, you can create a fast and responsive system (P) while being accurate and efficient (I) without the risk of damaging equipments due to the system overreacting (overshooting) (D).

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

      Thank you!

  • @Silverlightnick
    @Silverlightnick 5 ปีที่แล้ว +8804

    Imagine watching this without knowing nothing at all about Control theory

    • @PsyZueiro
      @PsyZueiro 5 ปีที่แล้ว +1108

      i am....whats that??? PID

    • @consciousart1
      @consciousart1 5 ปีที่แล้ว +492

      PsyZueiro product integration and derivation. in a system the difference between the output and supposed output for a given input is minimised by a closed loop system by tuning the input by a multiplication with a p parameter of error added to multiplication with an i paramer of accumulation of error added to multiplication with a d parameter of difference of error. this is really the most useful tool of control theory and cybernetics is indeed appeared based only on this simple technique

    • @sexyfacenation
      @sexyfacenation 5 ปีที่แล้ว +316

      @@consciousart1 proportional integral derivative are the terms.

    • @deelowe3
      @deelowe3 5 ปีที่แล้ว +92

      @@consciousart1 proportional integral derivative control. It gets its name from the calculations performed by the algorithm. You can also have p, pi, or pd control

    • @consciousart1
      @consciousart1 5 ปีที่แล้ว +16

      ​@@sexyfacenation you are exactly right I know the case but product for p letter appeared on my mind sorry :)

  • @mandarbamane4268
    @mandarbamane4268 ปีที่แล้ว +877

    For those who studied control systems/theory/engineering and still didn't understand
    P : Proportional gain (makes system faster, improving response)
    D : Derivative gain (improves transient response, i.e. from before moving to settling)
    I : Integral gain (improves steady state error, i.e. closer to where it should settle)
    0:17 : Unit step input
    Very bad transient (wiggles) and steady state response
    0:23 : Proportional gain increased
    System response is now faster
    0:31 [PD]: Derivative gain increased
    Transient part improved (no wiggles)
    0:52 Integral gain reduces steady state error,
    Notice the error it gets in steady state with decrease in integrak gain

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

      You didn't explain anything relevant to the video.
      What's the controler here(what's the actuators) ? What's the controlled quantity? What's the region of values we want to stay in? Why do we leave the region?

    • @steveskeletonneii6336
      @steveskeletonneii6336 ปีที่แล้ว +90

      @@MrCmon113 ??? how was this not relevant to the video. They described PID, then timestamped examples of how adjusting the knobs adjusts the output. The controller would probably be some kind of motor.
      Do any of those other things matter in this case? It's a simple demonstration, not an actual implementation for any real purpose.

    • @deang5622
      @deang5622 ปีที่แล้ว +9

      I think you will find that those that studied Control Theory at university *DO* understand.

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

      @@deang5622 well one of my friend didn't, so... (also look at 1st reply by MrCmon... those who studied controls should have that knowledge already, that's why).

    • @EscapeFromYoutubesSugges-zi9ou
      @EscapeFromYoutubesSugges-zi9ou ปีที่แล้ว +2

      Wish I had this back in high school lol

  • @RimmyTimfpv
    @RimmyTimfpv 5 ปีที่แล้ว +1257

    If you already have a general grasp of what a PID Loop does, this is actually really straightforward and practical information for understanding how it affects real objects.
    Thanks for the demonstration.

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

      Hey,
      So i ran into this, seemingly by fluke. I have read the comments explaining what P, I, and D mean. But I am not sure how this demonstrates what they are explaining. I am not picking up what is changing. The relationship between the lower wheel, I am guessing attached to the motor, to the wheel attached to the pulley with a metal needle seems to stay the same... What is he trying to do here other than just swinging them back and forth....

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

      @@steve2547 hey, I fly quadcopters and recently learnt how to tune pids. It's basically the same. So p is like the sharpness setting, if you under shoot or overshoot, you can adjust p. D is like the dampening for p, you see those bounce backs? those are because the d is too low. I is like a stiffness setting, if your thing is all wobbly ( slow wobble ), increasing I will help that. Hope this helps!

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

      @@abrahamtan9704 actually the ratio of I and D is the dampening.

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

      @@BrosBrothersLP really? huh, I learnt something cool today

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

      ​@@steve2547 Ok let me break it down for you.
      PID is a type of control. It has different "parts" to it, wich have an influence on how to reach a certain point. In this case an specified angle.
      The most left switch turns the system on, like "power on, and go to angle X!".
      The dial right of that controls where X is.
      Now by adjusting the dials on the right the parts for D - Derivate, P - Proportional and I - Integral of the controler can be adjusted.
      Different amounts for that parts lead to different system behaviour. Th goal is to go from angle Y (starting angle) to X.
      Every control system aims to reach the target point as fast as possible. Some system require tuning so it doesnt overchute, mostly for positioning controls, which in turn makes the control slow.
      So depending on your application the control has to be designed towards the restrictions.
      This experiment shows how the different parts of the control affect the way the target is reached.
      P just takes the difference and amplifies the lead directly, for example a current or voltage. This leads to overchuting and a "waving" pattern around X. Its moderately fast, but is never precise.
      D dampens the amplification if getting near X, which can make the control faster, but also slower to reach 100% X.
      I integrates over time, which means that the longer you are not at X the stronger it gets. This increase precision but can lead to waving behaviour, called "wind up".
      Hope this helps. Control theory is a whole engineering field in its own. Anti lock breaking systems, adaptive chassis, thermostates in AC units are examples of control systems.

  • @Serenity17
    @Serenity17 5 ปีที่แล้ว +1938

    I suddenly understand how to tune my quad, thanks for the video very informative

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

      What are you doing here

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

      @@keanumack3944 Learning to tune his quad

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

      QuadCopter I hope you meant.

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

      Wow, what a great way to help understand quadcopter tuning! This is a must see video for anyone building a quad. Thank you!!

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

      The closed loop idle control system on my car uses PID. Tuning it was basically just guessing at numbers.

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

    I have no idea what this is and what's going on. But this is still more important than my spanish homework

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

      Thanks. That's started our day with a good laugh.

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

      Defend Armenia! Hoah... are you from Glendale?

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

      @@vongunter9947 no, I am from Yerevan

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

      The hardest I have laughed for years, maybe forever. Still laughing. More than brilliant. Thankyou!

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

      Deberías hacer tus deberes de Español

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

    The best explanation of PID loop tuning as a visual that ive seen. Nice job.
    My favorite oral explanation is thinking of the throttle in a car.
    You’re at a stop light.
    You want to get up to 35 mph in the fastest time possible.
    You hit the throttle hard. (high P)
    You’re approaching 35 but you dont want to exceed 35.
    You throttle back before you reach your desired speed.
    This is (D)
    You want to maintain 35 after reaching that speed. minor throttle regulation is the (I)

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

    this video illustrates one of the most important points about learning -- quick iteration is key! Imagine learning this by watching water levels endlessly oscillate around the setpoint at a frequency of 0.05 hz...

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

      Yeah Bandler was stating that people don't learn things too slow, they learn things very fast but most of the fast learned things are random, useless and dangerous for them. Now I will go browse some random internet videos.

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

    My teacher has been explaining this for 2 years now and 1 hour before my exam I find this video. You saved my semester man. Thanks

    • @buttcrack7784
      @buttcrack7784 13 วันที่ผ่านมา

      Must be one crappy teacher.

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

      Join a robotics group. Learned this in about a week just from playing around.
      (I'm sure you've already gone on to be successful in your area, I'm just making a general statement.)

  • @jarrodvsinclair
    @jarrodvsinclair ปีที่แล้ว +39

    Entire day I have been reading papers and watching various videos and this simple video with no words explained it much better than all of them, amazingly simple! Thank you!

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

    I woke up at 5 AM and found this video. I had 0 clue what I was watching but I watched it twice. I then Googled PID. Side note, inflamed pelvic disease, is a thing, who knew?
    After doing a bit of reading, I now understand what I watched. Pretty cool.

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

    The missile knows where is it by knowing where it isn't...

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

      And knows where will it be because it knows where it wasn't.

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

      @@ChrisD__ And it knows it hasn't been where it wants to be in a while, so it's trying to get there faster.

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

      And it wants a strawberry milkshake because it saw a kid with one

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

      @@MaNNeRz91 lol

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

      @@kushkiller7108 you better be smoking a joint right now

  • @warped-sliderule
    @warped-sliderule 10 วันที่ผ่านมา

    A good educator will adapt teaching methods to the student's strengths. You have brought the PID controller lesson into the realm of visual learners -- about 90% of male students. It's brilliant!

  • @jmannUSMC
    @jmannUSMC 10 หลายเดือนก่อน +3

    This video is what finally made it click for me when I was taking my control systems class in college about 3 years ago. I ended up getting a C in that course, but now I work with hydraulic control systems every day and I love it!

  • @sagizm0nd
    @sagizm0nd ปีที่แล้ว +101

    I just love how without words, all of us just got intuitive understanding of what PID does and how it "feels" what parameters do.

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

      При чем все понятно для любого языка общения!)
      Не зря язык жестов так же считается единым для многих стран

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

    Not a single word. And now I know what PID is. You sir, deserve a like.

  • @BornIIfly
    @BornIIfly 6 หลายเดือนก่อน +1

    Hi thanks a lot 👏 I‘m a remote pilot, I work with drones. Was having trouble understanding the PID tuning. Watching your example brought everything to light 💡
    Take care 🍀

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

    While playing with implementing PID in Unity3D I found that:
    P: is just a vector pointing towards goal, that can be used as a force vector. The farther you are the bigger magnitude and bigger force to apply.
    D: is predicting future by analyzing last and current P values. It acts like a break since it's vector value is pointed in (almost) opposite direction. D stabilizes motion and prevents overshooting.
    I: this is harder to explain, because integral value not only don't help, but makes things harder to stabilize. It's main goal is to counter external forces, like for example wind or gravity. For example if you have Quadcopter that has GPS and can fly to a given position. Using only P and D won't allow to reach desired height, because gravity will become equal to proportional force so quadcopter will stabilize at some lower height and with stabilized position D will be equal zero (value - value = 0). In such case Integral becomes important since it is basically a sum of all previous P values multiplied by time intervals. So when a PID devices reaches a stable position far from goal integral value will build up which will increase PID value to reach goal despite all external forces.
    Integral makes PID immune to wind, gravity, ocean waves and other external influence. Sum of P and D will approach zero when approaching goal, but I value can be anything. It should become zero exactly in goal overtime, but in real life scenario external forces will prevent to reach exact goal position and even an epsilon difference is enough to keep integral value at any level. At such stable state integral value will become opposite to external influence like gravity.

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

      I been using PID control for my active rag doll in Unity for years… I can tell you one thing: my active rag doll system contains no Integral part merely because of its uselessness, so basically it’s called PD control rather than PID.

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

      That was very helpful ...thank you

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

      All i see is power , intensity ( i current) , and decay. Course done lol

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

      Very well written, sir.

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

      This my first time seeing or knowing about a pid on this video and I already know how it works and adjust it.its not that hard.

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

    This has been by far the best explanation of how to tune my 3d printer heater PID! Thank you!

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

    1:29 seconds with zero words explained PID better than three lectures with 120+ slides

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

    I learned this when I was 10 years old.
    I was trying to make a group of robots that had several "leader" bots and a bunch of "follower" bots. The idea was to have an algorithm that would select the most advantageous leader and then have the followers follow it around like a train with no physical connection.
    I had to suss out the details on my own by trial and error.
    I finally realized that I needed three algorithms to insure that the "train" didn't decay into chaos.
    My instructor was amazed. He explained to me that I had implemented a control loop based on calculus.
    Thing is I had not taken calculus yet and had no knowledge of it whatsoever!
    A demo IS worth TEN THOUSAND words and diagrams!

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

    literally did an entire class on control systems and PID control, pretty sure I learned more from this 1.5 minute video and description than I did a whole semester, thanks university.

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

      I disagree. But this is a helpful visual demonstration.

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

      @@mattooi4322 I don't think you understand how bad my professor was... I'm also using ghoulish over kill

  • @RaserballKP
    @RaserballKP 16 วันที่ผ่านมา

    This is a great video. As someone who's working in the chemical industry, I have to work with all different kinds of controllers everyday. This here show a great practical way, what P I D does, instead of boring theory, how I had to learn it. For everyone who's studying control basics, this should be a must see!

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

    I’ve been trying to visualize what each does for months now and this video has literally made it all click. This is perfect.

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

      Just got the exact same problem finally solved!!

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

    The lack of sound or music made it even more educational.
    BRILLIANT!!!

  • @JasonDrennen
    @JasonDrennen 5 ปีที่แล้ว +56

    Thank you so much that was the most easiest way I have seen to understand PID tuning. Out of all the mumbo-jumbo that's out there this really help show people like me that have to see it to understand it. So thank you I will say this video and reference it anytime I'm tuning. That was great thinking.

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

    This video explained PID better than 3 years of school and 5 years apprenticeship as an industrial electrician. Well done.

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

      Than you had a very bad teacher sadly

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

    I spend many hours by learning PID. My professors couldn’t explain this in simple words. They used „science terms” which bored me af xD. Finally, I didin’t know how exacly it works... Until today. I swear, 1 minute of this video is more brighter, then hours of their talking in class xD

    • @Angry-Lynx
      @Angry-Lynx 3 ปีที่แล้ว +3

      "if you can't explain something in simple words you dont understand it well enough" or something ... ;

    • @Angry-Lynx
      @Angry-Lynx 3 ปีที่แล้ว +2

      dopiero sie zczailem po avatarze... Zbysiu! 😂

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

      Yeah but as an engineer you need to understand the maths and theory to actually optimize a controller

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

      Jakoś człon całkujący słabo pokazał co robi 🤷‍♂️

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

      @Tomek Herman It is you who need to learn English better than to broadcast gibberish like "didin't ...exacly....more brighter, then" rather than blaming professors.

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

    This is truly very genius. All you need to know, almost, about PID operation in this very short video.

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

    I sir salute you. Nothing else has ever made this much sense. Thank you so much for this beautiful demonstration

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

    The most instructive video on this subject. Shows more than diagrams or formulas or numbers.

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

    I’ve watched countless PID tuning videos and this, without sound just explained it all to me! I can now make my car idle perfect thanks dude 😇😇

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

      With the help of..DR RORPOPOR HERBAL ON TH-cam i have been cured totally from PID....🤩🤩

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

    I somehow got here without having a clue what this about, and while the comments have only confused me more, I am thoroughly convinced by them that this must be a great video

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

    It is very strange. I never thought that a short video without words would be so informative.

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

      That's what modern day education does to the human brain. We are not used to using our eyes alone to learn. The system has taught us to rely on our ears to listen to someone talk for hours on end to learn. Here it's completely visual. You see what he did and you see what happened. Your brain can understand and learn from that far greater and far faster than anyone could talk you through it. That's why hands on experience is unmatched!

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

    The combination of the video's presentation, and discussion in the comments, helped me to understand PID control. Thanks.

  • @marchelfman3278
    @marchelfman3278 ปีที่แล้ว +22

    PID is one of most powerful and versatile algorithms out there, whether for having a robot track an object, or a person drive a car. There are so many examples in both technology and nature that makes this tool for reaching and maintaining a goal state so useful (in the human body, this is called homeostasis and what provides us with our sense of balance and being able to walk upright, or to maintain a constant body temperature.

    • @u1zha
      @u1zha 10 หลายเดือนก่อน +1

      So you claim homeostasis is the same algorithm as PID? Sounds like it's the only algorithm you know and that's why you think homeostasis can't be using _any other_ form of closed loop control?

  • @7royalseven7
    @7royalseven7 3 ปีที่แล้ว +1

    Patch..... Genius !!!!
    Best description ever..... eher Single time when I must explain PID , I will Show your Video .
    Perfekt

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

    We were made to do this with a heat source and a temps sensor. -it took hours making changes to the parameters and plotting. This is a nice visual introduction - well made.

  • @uiopuiop3472
    @uiopuiop3472 7 หลายเดือนก่อน +1

    you have made me understood how to tune my mind, my soul, my whole essence with this video. i am forever grateful and will remind everyone until the end of time of this video. this is the new theory of everything

  • @RobU-u8v
    @RobU-u8v ปีที่แล้ว +12

    Explanation for those who have questions: The upper right hand switch controls the system power supply. The lower left side switch sets all the potentiometers to zero (down) or enabled (up). The upper pulley and pointer are mounted on a motor. The motor drives the lower pulley through the drive belt, which turns the position potentiometer as the system measured variable.
    The left side potentiometer is the system position setpoint. The pointer, and the position potentiometer attempt to follow the position of the set point potentiometer. When the enable switch is down, the set point, position, and PID potentiometers are all set to zero. The effects of P, I and D can be observed by adjusting their respective control potentiometers. Most feedback control systems are tuned for stability using different settings of P, P and I, P and D, or all three. There are also I controllers but are not very common.

    • @B-System
      @B-System 11 หลายเดือนก่อน +3

      the PID parameter pots remain in effect at all times, or else the return of the position to the zero point would be uncontrolled.

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

    And suddenly I understood how to tune my quad. Thank your so much, sir. Maybe you don't even know what I'm talking about but your video improved dramatically my drone pilot skills!

  • @Liberty4Ever
    @Liberty4Ever 5 ปีที่แล้ว +36

    I understand PID control loops. I've programmed servos, analog as well as digital parameters in a servo controller, and while this video demonstrates the concepts some explanation of what is being demonstrated would have greatly improved the educational value.

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

      Equally confused by what I am observing. just thinking buy a stepper motor and learn to code

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

      The system has two inputs: a switch and a knob. What do those inputs do? Maybe the knob represents some input, [0..1]. Does the switch, in the off position, force the input to 0, and in the on position let the knob determine the input?

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

    Probably the best demo of PID control on TH-cam.

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

    Tip: best way to tune PID is to tune P to get it mostly there, then D to smooth it, then I

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

      Can you explain to me abit more what i does?

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

      @@beatboxdailyshorts5885 you're better off finding a tutorial, but a PID loop has 3 variables and 3 constants. You set the constants, and the variables are set via how far away the input value is from the desired one
      Each variable is multiplied by a constant in the P I D loop, so when you're tuning it's best to start with the variable multiplying P first, since that's the variable that's set based on the difference between your expected and actual values. D is damping, and is based on changes in P and tuning that next makes it less jumpy. I is the variable representing over-correction. If after tuning P and D, your actual value overshoots your expected, add some more I

    • @onradioactivewaves
      @onradioactivewaves วันที่ผ่านมา

      How you tune depends on the application as well. In terms of a damped harmonic oscillator, there is 3 cases.
      Underdamped - this gets to the setpoint in the quickest amount of time, but continues overshooting as it rings out, and takes the longest amount of time to settle. and then continues to ring out with overshoot and taking the most amount of time to settle.. This is the best choice when you need to get to the setpoint quickly and do not care about the overshoot ringing out oscillations for a long time.
      Overdamped- gets there eventually without any overshoot. The only acceptable choice when overshoot is unacceptable. Settles faster than underdamped but not as fast as critically damped.
      Critically damped - overshoot once above, again below and then settles. This is the choice when you need to be settled in the quickest amount of time and an overshoot is acceptable.

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

    Thank you for this, your video, without a word, explained to me in a few seconds what I have been trying to understand for who knows how long! Watching this, everything I have learned, trying to figure it out, just fell into place. Thank you.

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

    When I studied control systems last year, I found it hard to visualize what the individual gains of the PID controller actually did. This simple 1 minute video was more helpful than any of the plots in MATLAB I made to visualize how a PID controller actually works! Too bad I didn't see this last year haha. I miss the course actually, it was really fun and we got to regulate a double tank system with a PID controller as our final project!

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

    Absolutely fantastic visual demonstration!
    You could make a fortune selling this device as a learning tool!

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

    Yep. Now I’m certain that I’ve watched too many useless machine videos to get this treasure in my recommendation.

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

      Well, this useless machine evolved into an interactive model

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

      @@supernova5434 so what you'r saying is useless machines are now useful and useful machine are now useless?

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

    if you can’t figure PID without this video you shouldn’t be anywhere around technology

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

    When new engineers is about to tune their first control system, i always go through the ziegler-nichols method with them. It takes away 90% of the confusion. Also, remember, that many tasks can be solved with using only PI making the tuning more straight forward. The D part is incredible at counteracting load change, which fx is the key to success in almost all heating and cooling systems.

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

      I have been waiting for so long for this kind of comment.

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

      The problem though is for years 'experts' try to teach PID with ridiculously complex maths that turns 99% of people away (mainly Laplace/Fourier transforms), while a simple video explains PIDs with far more clarity than any amount of pages of Laplace transformation mathematics does.
      People can learn PIDs much simpler and with much better knowledge of how to tune them properly using an explanation like this coupled with real world trial and error using a gyroscopic drone or a simulation like the computer game 'From the Depths' which has an excellent implementation of PIDs.

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

    That explanation in the description nailed it so well! Thanks a lot for the video and the explanation!

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

    Very simple video with no words but it really says a lot, thank you for this great visual explanation.

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

    This 1 1/2 minute vidéo is better than 3 months of teaching in college, where I made the calculus and the experiment without understanding what I was dooing. Anyway, I had IR electric radiators in my previous house (60 € each) using this kind of intelligent driving and the house was very comfortable.

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

    Having recently completed a Master course in robotics, I really wish I’d had one of these, or been assigned to build one. So clever and clear.

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

      why would someone need to tell you to build one? just build one

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

      @@justinc2633 Because maybe he's one of those people who knows it all on paper, but has no practical ability? (Like every graduate engineer you meet in the field).

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

      @@nickmaclachlan5178 haha yeah fr, im not an engineer but i love building things like this, if i had gone to school for it id have some cool projects under my belt

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

      I will.
      When I've finished the other cool projects I'm working on.

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

    Wow, I just fully grasped how my IAC works on my pickup. Seeing PID on my tuning software was completely foreign to me, and the manual basically says if you don't know, leave it alone. Thanks!

  • @Eieieieinszweidrei
    @Eieieieinszweidrei 5 ปีที่แล้ว +788

    Am I the only one watching without even knowing what PID is? 😂

    • @karimkarara5804
      @karimkarara5804 5 ปีที่แล้ว +41

      🤣🤣🤣🤣🤣 Proptional integral derivative control used for optimizing the control loop

    • @cheezefpv6550
      @cheezefpv6550 5 ปีที่แล้ว +41

      One application of PIDs are the settings in a drones flight controller. There is a lot going on when flying a drone, many different effects and inputs that the actual quad experiences, and the PIDs control how much influence each aspect affects that actual flight control output.

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

      Nope...

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

      Не парься. Я тоже в этом ничего не понял.

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

      So what did you see in this video?😂

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

    Кто настраивал частотные преобразователи все сразу поймет без слов! Спасибо автору ролика и создателям установки, все наглядно и прекрасно видно! Браво!

    • @АлександрС-з7в
      @АлександрС-з7в 3 ปีที่แล้ว

      Мне непонятно. На каком железе это сделано, как меняется уставка, где графики ?

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

      @@АлександрС-з7в На простом частотном преобразователе осуществлено управление асинхронным двигателем переменного тока, его вал второй слева, через резиновый пасик соединяется со стрелкой и производится, с помощью трёх переменных резисторов, настройка функции PID- регулятора. Изменяя интегральную и дифференциальную составляющую, и чувствительность удаётся наглядно увидеть скорость затухания вращения вала привода. При настройке этих параметров на реальном приводе, изменение этих настроек чаще всего не видно визуально( например привод насоса, вентилятора). На приводе же подъёмного крана ,без этой настройки груз после остановки подъёма будет раскачиваться вверх- вниз.

    • @АлександрС-з7в
      @АлександрС-з7в 3 ปีที่แล้ว

      @@aleksfoks901 что является датчиком обратной связи?

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

      @@АлександрС-з7в По видимому, датчик угла поворота, видно что рабочий вал вращается в определённом секторе. Детального описания, как видите, нет.

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

    What a great educational tool! Visual aids really help solidify theory in a way that is much more intuitive than crunching numbers. Great demo!

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

    Higher P = Quicker and snappier response
    Higher I = Less wavier response
    Higher D = Smoother response
    This video demonstrates PID in general with no words spoken ( °O°)

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

    Very cool. Everyone in the Instrumentation world is smiling while watching this :)

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

    The description was a life lesson in itself. Thanks I needed to read that.

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

    just passed system control last semester. i like how youtube recommend this now :)

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

    I dont even remember how many videos I watched trying to get PID idea. Your video should be first hit whenever someone search 'PID'.

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

    here i am, trying to fix a broken lamp and i stumble upon this, i have no clue what this is about but i like it

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

      Sometimes, that's the story of life....😁

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

    This is amazing. I broke my brain trying to understand PID. After watching this a couple of times I actually understand what's going on.

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

    Me: *aggressively searching for a map*
    This video: "Took a wrong turn in the algorithm didn't ya?"

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

    That's the first time I've run into PID hardware. I could play with that for hours. Very useful for robotics I should imagine. Thanks m8. Keep well. :)

  • @davidanderson6222
    @davidanderson6222 5 ปีที่แล้ว +26

    Believe it or not, this helped with tuning my quadcopter , cool

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

    Not a word said. But im tuning my quad now!!!!!! Thank you!!! Best teaching video ever for PID tuning!

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

    Это лучшая демонстрация, из тех что я видел.👍

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

      Так а че это за хрень?

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

      @@etl9143 ПИД регулятор, точнее демонстрация влияния коэффициентов на его поведение.

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

    Thank you, this is the best PID demonstration I have ever seen, Much appreciated...

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

    One of my hardest undergraduate classes.... Come back to haunt me. NO PROFESSOR, I REFUSE TO FIND THE ROOT LOCUS.

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

    Very intuitive demo of underdamped/overdamped/perfectly damped

  • @Murathanaksoz
    @Murathanaksoz 7 ปีที่แล้ว +58

    the best example

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

    No home is complete without one of these very practical little machines that you could buy in bulk from the Dollar Store in those days without a license.
    I remember those balmy Saturday nights at grandma's house, sipping vodka and twiddling the knobs all evening, entertaining Uncle Herbert and Aunty Ethel and the rest of their extended family until the sun came up.
    Even grandma's budgie used to get in on the act, but never touched alcohol which we all found to be a big pity. I guess you could call him a sensible hedonist. He never succumbed to peer pressure. Not even from grandma's dog who was known to indulge in a little tipple on the odd occasion, especially when grandma used to weer that skimpy black leather thong and grandpa would play the kazoo till the early hours of Sunday morning.

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

    This explains why everyone attacks me first at the duel arena.

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

    I play a game "Stormworks", I always fail to setup my PID, this explained better than anything. Thanks!

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

    TH-cam recomended this video to me. I didn't knew what it was untill I realised it's an electromechanical laugh machine!!! And it's adjustable!!! Wow,the things we can see today!

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

    This is better than any explanation I've heard so far. I'm glad you made that box and the video.

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

    I started my controls class a couple of weeks ago and this is really cool.

  • @alefpvc.r.4540
    @alefpvc.r.4540 3 ปีที่แล้ว

    Wow, this is the most clear and easy to understand video about PIDs I've seen so far.... and its from 2016... thank you !

  • @ua1315
    @ua1315 5 ปีที่แล้ว +8

    Now I understand the principle of adjusting the regulator! Thank you.

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

    This isn't what PID stands for, but it helped me some:
    P-rimary speed
    to
    I-ncreasing speed
    to
    D-ecreasing speed

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

    This is really clever, thanks. It would also be interesting if you showed controller responses to error causes by pushing the sensor with your finger. Maybe a part II?

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

    Have to agree with a lot of the other comments. This is an excellent representation of what PID tuning can achieve.
    Nice job.

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

    It should have a weight on a spring at the end of the arm. Then I and D would really come in handy.

  • @EclecticSceptic
    @EclecticSceptic 10 หลายเดือนก่อน +1

    Amazing. Every control theory lab / class should have one of these.

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

    I’ve learned _something_ , i just don’t know what.

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

    I had no idea what PID was but now I feel like I understand what it is just by watching this video. Still have no clue where it's used, but have an understanding how it works. Very cool

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

      For an everyday example, think about balancing a drone/quadcopter.

  • @felineboy
    @felineboy 5 ปีที่แล้ว +9

    I was waiting for it to become unstable. Great demonstration, nonetheless!

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

      At some point when reducing D you could see overshoot with a damped oscillation. That was close to getting unstable. He fixed that by reducing P

  • @Nets-nutsBr
    @Nets-nutsBr 7 หลายเดือนก่อน +1

    I am used to say that you have tne power of synthesis. You have explained all PID concepts once for all

  • @dubbadan1
    @dubbadan1 5 ปีที่แล้ว +7

    OMG that is effing genius. I just wanted to see more...

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

    Phew! For a minute there I thought I might actually have to go to college! You just saved me Thousand of bucks! Thanks!

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

    Увидимся в рекомендациях через 10 лет

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

    A geared motor is used here. It isn't made clear here or in the schematic or code. Code is written a bit sloppily
    too. (Arduino pseudo C after all) 10ms delay (supposed to give us 100Hz PID loop) doesn't take into account the
    code run time which adds another 0.67ms (with the serial stuff removed, that is). The PID loop should always be
    timer interrupt driven, so that ADC sampling and PID update always occurs at the same time intervals. This is
    especially important with reference to noise introduction to the Derivative term, which we don't want.
    Still, a great educational tool, nonetheless.

  • @teamEP789
    @teamEP789 5 ปีที่แล้ว +32

    gf: i am home alone
    me: turns D all the way up

    • @sergiomarucci
      @sergiomarucci 5 ปีที่แล้ว +9

      teamEP789 that literally means you will very slowly or almost never get there lol

    • @3ckitani
      @3ckitani 5 ปีที่แล้ว +2

      More like
      Crank D all the way down
      Crank I and P all the way up

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

    I think I understand the concept behind this video and its really simple explanation of how pid works and the impact of low and high values. Great Video!

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

    Add lcd for display value

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

    Those that know, know that this video speaks a thousand words. Thanks for posting!