A PID Tuning Guide | Understanding PID Control, Part 4

Sdílet
Vložit
  • čas přidán 6. 06. 2024
  • It can be difficult to navigate all the resources that promise to explain the secrets of PID tuning.
    Some proclaim that PID tuning is an art that requires finesse and experience, while others are adamant that tuning requires a few rigid rules. Why is there such a vast difference? It is because PID tuning depends on the characteristics of the system. For that reason, a one-size-fits-all tuning method doesn’t exist.
    - Download Code Examples to Learn How to Automatically Tune PID Controller Gains: bit.ly/2HKBh12
    Get an overview of various PID tuning techniques ranging from model-based tuning to heuristic methods such as Ziegler-Nichols and Cohen-Coon.
    Related Resources:
    - PID Control with MATLAB and Simulink: bit.ly/2Qg57y8
    - PID Control Made Easy: bit.ly/2Q7Hhor
    - PID Control Design with Control System Toolbox: bit.ly/2QbdHy5
    - Designing PID Controllers with PID Tuner: bit.ly/2QjVtLf
    - PID Controller Tuning in Simulink: bit.ly/2Q9sIRc
    - PID Controller Design for a DC Motor: bit.ly/2QfhlXS
    - Automated PID tuning: bit.ly/2QeDfdP
    - Embedded PID Autotuner: bit.ly/2QfhLNW
    Watch more MATLAB Tech Talks: bit.ly/2rTc8Yp
    Check out more control system lectures on Brian's Channel: bit.ly/2IUlvkw
    Additional References:
    - Summary of PID Tuning - Overview: bit.ly/2KEQ9yZ
    - Control System Design with the Control System Designer App - Video: bit.ly/2KuAnr9
    - PID Control System Analysis and Design - IEEE Article: bit.ly/2KoWMWV
    - For a handy guide on how PID gains affect different requirements, see table 1.
    ---------------------------------------------------------------------------------------------------------------------------------------
    Get a free product Trial: goo.gl/ZHFb5u
    Learn more about MATLAB: goo.gl/8QV7ZZ
    Learn more about Simulink: goo.gl/nqnbLe
    © 2018 The MathWorks, Inc. MATLAB and Simulink are registered
    trademarks of The MathWorks, Inc.
    See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names maybe trademarks or registered trademarks of their respective holders.
  • Věda a technologie

Komentáře • 75

  • @BrianBDouglas
    @BrianBDouglas Před 6 lety +163

    Hey everyone, thanks for watching! I know this was a whirlwind of a video so if you have any questions on any of it leave them here and I'll try my best to answer them. Cheers!

    • @vasylvarvolik4332
      @vasylvarvolik4332 Před 6 lety +3

      Hi Brian)
      It is very interesting. You explained to me very clear.

    • @BrianBDouglas
      @BrianBDouglas Před 6 lety +2

      Thanks for the feedback!

    • @ehsanu1
      @ehsanu1 Před 6 lety +3

      Great video! I wasn't 100% sure what you meant by an integrator-like plant, despite the example of a motor. Is that idea that a motor, given a constant signal, over time accumulates distance in whatever it's driving? It's not clear to me how that would obviate the need for an integral factor in the controller.

    • @ehsanu1
      @ehsanu1 Před 6 lety +2

      Oh, and can you point to any resources to help with the "understand the system you're controlling" bit?

    • @BrianBDouglas
      @BrianBDouglas Před 5 lety +8

      That was confusing, wasn't it? A motor in position control acts like an integrator for the reason you state - it accumulates distance given a constant signal. The motor control example I used was a velocity controller, which doesn't act like an integrator since a constant voltage produces a constant velocity. Therefore, my statement about the motor controller was misleading. To understand why an integrating transfer function may not require an integrator in the PID controller, search Google for "transfer function type steady state error" and click on the UMich link at the top. There is a great explanation of transfer function type and how that relates to steady state error. If you want zero steady state error for a step input then your system needs to be a type 1 (or one pole at the origin, or another way of putting it - an integrator). If your plant doesn't have that integrator, then you'll need to add one in the controller. Hope this helps.

  • @videoexpert27
    @videoexpert27 Před 3 lety +11

    This was a nice overview of what I have learned in university. In the courses the things didn't form a good big picture but this helps me to put everything together so the knowledge becomes more useful

  • @bharathp1000
    @bharathp1000 Před 6 lety +2

    Hi Brian..I guessed it was you , that presentation and voice won't (your channel) forget that.,,
    Best explanation.👍

  • @rexsolomon6325
    @rexsolomon6325 Před 4 lety +1

    Hello Brian, your videos are fantastic! A perfect tie-in for this Part4 PID Tuning would be Benjamin Vedder's VESC Tool, specifically, the PID Controller menu tab (the default numbers are meant to be tweaked for different motors, but there is no clear guide as to how). If you could integrate Benji's VESC Tool PID Controllers into your Part 4 PID Tuning video (as a new video), it would be of tremendous, immediate benefit to thousands of e-bike, e-skateboard and quadcopter users. Thank you!

  • @seenathgooding181
    @seenathgooding181 Před 4 lety +3

    Great Video. This series is giving me an understanding that my lecturer couldn't. Thank you.

  • @quinn6152730
    @quinn6152730 Před 3 lety

    I didn't click the like bottom every part but I have to say every part is crystal clear and the order is well arranged!! Thank you matlab for saving a disappointed ME student doing project^^

  • @renatoduenas4104
    @renatoduenas4104 Před 4 lety

    Awesome I am checking all your videos. Your method to explain is great. Congratulations!

  • @tbk01
    @tbk01 Před 3 lety +7

    You make stuff so much more understandable. the PID tuning flowchart was incredible!

    • @mnada72
      @mnada72 Před 3 lety +3

      Where is it ?

    • @Deuto418
      @Deuto418 Před 3 lety +2

      @@mnada72 Link in the description after: PID Control System Analysis and Design - IEEE Article. It is the first table in the linked article. (edit: The Flow Chart is in the video, for example at 11:30)

  • @leadeeeeer
    @leadeeeeer Před 5 lety +2

    Brian, This is amazing! thanks so much !

  • @nicholasn.2883
    @nicholasn.2883 Před 3 lety

    This was a great little course. Thanks

  • @abhinavbharadwaj9755
    @abhinavbharadwaj9755 Před 4 měsíci

    PID tuning has never been explained in a more appreciable form

  • @user-sm5en5id3n
    @user-sm5en5id3n Před rokem +1

    Brian ! You are amazing ,amazing!🙌😱🙏

  • @na-py3zb
    @na-py3zb Před 4 lety

    Hi Brian. Thanks a lot for sharing your knowledge with us. I am working on a microgrid simulink model where voltage error is at the input of the PI controller. What result should I expect at the output of the controller? Do I need to get the value of the reference voltage by tuning the controller? Also can Ziegler Nichols method be used for all the cases?

  • @SMV1972
    @SMV1972 Před 6 měsíci

    Брайан, спасибо большое за знания!

  • @sivebaartman9001
    @sivebaartman9001 Před 5 lety +4

    Hi Great Video ! I was wondering what do you think about using nature-inspired heuristic methods, such as Genetic Algorithms and Particle Swarm Optimization algorithms to tune the PID values ?

  • @fifaham
    @fifaham Před 2 lety +2

    I once worked in a Florida based company that manufactres security products and I implemented an algorithm (C and Assembly code) in the microcontroller that perfoms "Automatic-Self-Testing" for the product to save time testing the product after production, this also saved time and money on testing the product. The reason I metioned this is that now I am thinking of similar automatic-self-tuning algorithm that will drive the Drone to the desired behaviour and automatically adjust the PID gains over time to compensate for the aging and deformation of Dron parts and sensors. I think this kind of algorithm will solve the tuning problem of PID control loop. Has anyone done anything like that before? I guess such algorith may need a high MIPS ARM microcontroller with very generous memory. Once this is a success I will add it to the service of my small business.

    • @sandmaster4444
      @sandmaster4444 Před 10 měsíci +1

      Maybe a bit late, but for anyone interested in this kind of work, look into adaptive control

  • @faziljalali8948
    @faziljalali8948 Před 3 lety

    thanks for your nice explanation.

  • @lanakayhan1275
    @lanakayhan1275 Před 5 lety

    Brian that amazing thank you so much

  • @nasrinedamouche8028
    @nasrinedamouche8028 Před 2 lety

    Just amazing! Thanks a lot

  • @isbestlizard
    @isbestlizard Před 4 lety

    ahh this was amazing thanks for explaining :D

  • @lincolnwallace17
    @lincolnwallace17 Před 3 lety +1

    This videos are amazing! Just a question: An artificial neural network could be considered as an automatic tuning?

  • @emrevatansever15
    @emrevatansever15 Před 2 lety

    I believe ziegler-nichols 1st method about s-shaped output response and probably usable for real life systems.

  • @TheSymonak
    @TheSymonak Před 4 lety +3

    What's "table 1" to see the gains on PID effects?

  • @mattiasecchi815
    @mattiasecchi815 Před 6 lety +2

    Hi! Thanks for the explanation! May I ask you which kind of software did you use for the "blackboard" presentation?

    • @BrianBDouglas
      @BrianBDouglas Před 6 lety +15

      I draw everything in Photoshop with a black background using a Wacom tablet. I record the screen while I do the drawing using Capto (but any screen capture program will work). Then I take that video into Final Cut Pro to speed it up and cut out any mistakes I made. Finally, I record the voiceover in Final Cut and publish the video.

    • @BrianBDouglas
      @BrianBDouglas Před 5 lety +3

      Thanks Adam! I didn't know what software Khan Academy used. I obviously copied his style though because I think it's a fun and effective way to convey information. I'll let people know of Smooth Draw next time I get this question.

  • @abdullahannaijjar9306
    @abdullahannaijjar9306 Před 3 lety

    Please what’s the difference between PID and QFT controllers? They all control the same Electro-hydrostatic Actuator position!
    Please any answer!

  • @blessoneasovarghese9834
    @blessoneasovarghese9834 Před 4 lety +11

    Where is the handy chart of PID tuning for different applications?

    • @ahnafsakib
      @ahnafsakib Před 4 lety

      It's in table 1 of this paper

    • @mnada72
      @mnada72 Před 3 lety

      @@ahnafsakib Where is it ?

  • @siy0808
    @siy0808 Před 5 lety

    Great!

  • @user-cn1wu2tx2m
    @user-cn1wu2tx2m Před 7 měsíci

    what is 'table 1' in the description supposed to point us to? I was looking forward to the gains guide

    • @HansScharler
      @HansScharler Před 7 měsíci

      That is a funny reference. Here's the table: blogs.mathworks.com/community/files/table-1.png

    • @BrianBDouglas
      @BrianBDouglas Před 7 měsíci

      It's table 1 of the document that is in the link above it - PID Control System Analysis and Design - IEEE Article: bit.ly/2KoWMWV. I think the "table 1" bullet should have been indented or made more clear.

  • @fifaham
    @fifaham Před 2 lety

    I believe that PID gains tuning should not be problem since the embedded firmware of the drone maybe able to implement such kinds of algorithms to performs Automatic-Self-Tuning. Someone must have done it somewhere around the World...!

  • @bopapa_1979
    @bopapa_1979 Před rokem

    What is Brian using to create these visualizations?

  • @andrewmorgan5541
    @andrewmorgan5541 Před 4 lety

    I'm facing a challenge of refresh rate for the feedback sensor. The temp reading refreshes every 11 seconds, the PID goes from one extreme to the other in that time period and the temperature swing is large. How can I learn how to correct this?

    • @odissey2
      @odissey2 Před 4 lety

      Most likely the gain in the feedback is too high. Reduce P and I terms

    • @andrewmorgan5541
      @andrewmorgan5541 Před 4 lety

      @@odissey2 I will try this weekend thank you sir

  • @nfkt101
    @nfkt101 Před 3 lety

    Can we implement machine learning for better tuning and optimizing?

  • @zaspanyflegmatyk2446
    @zaspanyflegmatyk2446 Před 4 lety

    3:20 , lol i felt that xD

  • @sruthichandrika4120
    @sruthichandrika4120 Před 2 lety

    Oh great

  • @michlgilbertclements6178

    Some auto-tuning like KMC does not work.

  • @fares3651
    @fares3651 Před 5 lety +7

    gg lost me this one..

  • @luismesquita8202
    @luismesquita8202 Před 3 lety +1

    Video on PID control:
    czcams.com/video/71o4lFRBZnk/video.html

  • @bestcakesdesign
    @bestcakesdesign Před 3 lety

    Is matlab free?

    • @Amine-gz7gq
      @Amine-gz7gq Před 26 dny

      nope, but you can download a pirate copy

  • @uzkanda
    @uzkanda Před 3 lety +1

    Lack of actual examples and edge cases, leaves manual tuning part with very little worth.

  • @zaidhamid1622
    @zaidhamid1622 Před 5 lety +2

    Great explanation. Please can you a little bit go slower ? Thx again

  • @lailomahmughal9695
    @lailomahmughal9695 Před 5 lety

    Thank you Brian . I really appreciate your work it is awesome . can you please share your email id?

  • @sghost128
    @sghost128 Před 4 lety +1

    *Come into a technical video*
    *complain about the technicality*
    Okay then.

  • @fredlambe7096
    @fredlambe7096 Před 5 lety

    way to technical ....