EEVacademy #6 - PID Controllers Explained

Ғылым және технология

David explains PID controllers.
First part of a mini-series on control theory.
Forum: www.eevblog.com/forum/blog/eev...
EEVblog Main Web Site: www.eevblog.com
The 2nd EEVblog Channel: / eevblog2
Support the EEVblog through Patreon!
/ eevblog
Donate With Bitcoin & Other Crypto Currencies!
www.eevblog.com/crypto-currency/
EEVblog Amazon Store (Dave gets a cut):
astore.amazon.com/eevblogstore-20
T-Shirts: teespring.com/stores/eevblog
💗 Likecoin - Coins for Likes: likecoin.pro/@eevblog/dil9/hcq3

Пікірлер: 337

  • @MarcoTedaldi
    @MarcoTedaldi6 жыл бұрын

    "control theory, feedback appreciated" 😊😊😂

  • @mukil_saravanan

    @mukil_saravanan

    3 жыл бұрын

    Negative feedback is good 😆

  • @MartynDavies
    @MartynDavies6 жыл бұрын

    00:17 "any feedback would be appreciated". Aha feedback: control theory. I see what you're doing there ;-)

  • @uzimonkey
    @uzimonkey6 жыл бұрын

    I use PID controllers in a different context: game development. You'll often have a variable you need to drive to a value, but need to do it in a kind of smooth or organic way. Instead of writing a new way to do it every single time I need to do this, I use a PID controller. This is especially useful when other things are trying to effect this value as well, as the PID controller can react and push harder toward the set point and generally won't overshoot the set point. It is of course also very useful in physics simulations. I've made a hovercar just by making 4 "thrusters" on the bottom of the car, using the distance to the ground at that location as my setpoint and adding forces at those locations. If I were to try to program something like that, first I think it would take a while, but second I think I would end up with something a lot like a PID controller. They're just useful all over the place in gamedev. I also like to think in simplified terms, usually I'm not doing equations and figuring things out exactly in gamedev, it's more of a "put values in until it looks right" kind of task. So imagine a cube that can only move up or down and the PID controller is controlling an upward force against gravity and we want it to hover at a certain height. P is the power, it's responsible for the majority of upward force. D is the damper, it wants to stop all movement, it's responsible for killing oscillations. I is intelligent, it'll make the small adjustments that P and D can't do, namely without I the cube will never quite get to the desired height. This is definitely not engineering, so definitely not an engineer's way of thinking about it but I think it's very useful.

  • @bloodyl_uk

    @bloodyl_uk

    6 жыл бұрын

    Exactly what I saw in watching this video, cheers.

  • @victornpb

    @victornpb

    6 жыл бұрын

    Yeah I used it in software a few times as well.

  • @iamjimgroth

    @iamjimgroth

    6 жыл бұрын

    uzimonkey I use this for AI controllers. :)

  • @justinbouchard

    @justinbouchard

    Жыл бұрын

    i love principles that can be applied to mass amounts of different applications absolutely fabulous

  • @kevyelyod1211
    @kevyelyod12116 жыл бұрын

    I look forward to more control theory videos.

  • @TheHuesSciTech
    @TheHuesSciTech6 жыл бұрын

    I think you missed the main point of the D term. If your oven has a lot of thermal mass, *both* the P and the I terms will suffer from overshoot. The D term is very specifically the anti-overshoot term; because it's the only one "smart" enough to see "the oven is below the target temperature, but nevertheless I'm going to vote *against* putting in more effort because it is trending up so fast that I can see it might overshoot soon". On the flip side though, it's refreshing to see a video that doesn't claim/imply that PID controllers are perfect in all scenarios; thank you for mentioning bang-bang controllers.

  • @ramueller11

    @ramueller11

    6 жыл бұрын

    That's a good point. To go futher PID terms could be considered the present, past and future terms, respectively.

  • @qcnck2776

    @qcnck2776

    6 жыл бұрын

    ramueller: Thanks, that is a great way to look at it

  • @JRush374

    @JRush374

    6 жыл бұрын

    TheHue's SciTech this is what I was thinking too. The D term would take the current position and its derivative and use that to calculate an approximation for a future position. If it's getting close to the set point but is still pushing hard towards that set point, the D term puts on the brakes to help prevent overshoot. Then in the next time step it calculates the approximation again and adjusts accordingly.

  • @Bigelowbrook
    @Bigelowbrook6 жыл бұрын

    What's the whiteboard software that you're using? Thanks!

  • @davidledger5941

    @davidledger5941

    6 жыл бұрын

    Drawboard, from the windows store.

  • @Bigelowbrook

    @Bigelowbrook

    6 жыл бұрын

    Thanks!

  • @kiranchinnam4341

    @kiranchinnam4341

    6 жыл бұрын

    David Ledger On the Surface?

  • @Donaldo

    @Donaldo

    6 жыл бұрын

    I find the undrawing of the pen stroke really distracting

  • @Mr.Newlove
    @Mr.Newlove6 жыл бұрын

    Great video, and contrary to other comments; keep the math or even have more of it. But with some people talking about including electronics, maybe you could have used a small heater element and an Arduino to demonstrate real-time tuning? Or even auto-tuning like many 3d printers use for their heaters. In the end a strong foundation in the theory followed by a good practical example of the implimentation is a great way to drive things home.

  • @itzlagana

    @itzlagana

    6 жыл бұрын

    maybe steal a vid of an inverted double pendulum

  • @qcnck2776

    @qcnck2776

    6 жыл бұрын

    I second that, esp using an Arduino. Great vid, many thanks

  • @wgm-en2gx

    @wgm-en2gx

    6 жыл бұрын

    Does anyone know of a good simulator of an over or inverted pendulum in which you could try applying a PID controller to?

  • @wgm-en2gx

    @wgm-en2gx

    6 жыл бұрын

    Can you post links in YT comments? This might be a good simulation. robotic-controls.com/static/inverted-pendulum/ If the link does come through google robotic-controls inverted-pendulum. There is a link in the article for the simulator.

  • @metheone4

    @metheone4

    6 жыл бұрын

    why not?YT=Google and links are not copyright protected,soooo....

  • @calabrese1531
    @calabrese15316 жыл бұрын

    Very easy to follow, clear and fun explanation of what PID Theory is. Thank you David. Looking forward for the continuation of this topic. Good job!

  • @pacsmile
    @pacsmile6 жыл бұрын

    What a nice way to explain this, i wish my teachers at college taught me like this, keep up the good work!

  • @krgtim
    @krgtim6 жыл бұрын

    I hesitated to click on this video because I usually watch Dave's EEVBlog videos to slowly fall asleep, but now that I have found some time to watch it out of my usual schedule I have to say I really liked it for the educational aspect. Please make more videos like this one! Thanks! Oh and nice touch with the picture at the end. That made me actually chuckle a little bit.

  • @adamsfusion
    @adamsfusion6 жыл бұрын

    This was so cool and so enlightening. I'm just a hobbyist, but I love diving into the work of degreed professionals and seeing what kinds of things they learned in school, and these EEVacademy courses are like a treasure trove of direct info as well as info to look up later.

  • @peoplethesedaysberetarded
    @peoplethesedaysberetarded6 жыл бұрын

    Greetings. One immediate recommendation: please don't wait until 5 minutes in next time to define your main acronym. Common practice is something like this: "Proportional Integral Derivative (PID) Controllers Explained." Right there in the title or title slide. Boom. Done. This isn't a slight against you or hate-mail, just a touch-stone to one common recommendation of providing clear technical writing.

  • @Axelios
    @Axelios6 жыл бұрын

    Nice PID video. I thought I already knew everything about PID but you taught me several things I hadn't realized or come across. It was worth the 27 minutes!

  • @coje4219
    @coje42196 жыл бұрын

    Great video, very informative and well done 🤗 looking forward for the rest of the series!

  • @jeremyhall7259
    @jeremyhall72596 жыл бұрын

    An actual good video on PID controllers, FINALLY! I have been trying to learn these for years!

  • @Mr321ruben
    @Mr321ruben2 ай бұрын

    I was like in a total dark room, and now there is a ray of light. Thanks a lot Bro.

  • @KX36
    @KX366 жыл бұрын

    So refreshing to see something about PID controllers on KZread that isn't just tuning by guessing random numbers until the steady state looks OK and never checking the step response which always ends up massively overdamped (like orders of magnitude slower than it could have been).

  • @maniacalcactus4705
    @maniacalcactus47056 жыл бұрын

    Holy crap this is the boring part of the series?!? I can't wait for the rest this was incredibly interesting

  • @ficolas2

    @ficolas2

    6 жыл бұрын

    Maniacal Cactus my thoughts exactly

  • @iwtommo

    @iwtommo

    6 жыл бұрын

    Have a look at "Teaching old motors new tricks" for some real juicy control system nerdiness

  • @y.z.6517

    @y.z.6517

    4 жыл бұрын

    I read this topic before, but this video makes it much easier.

  • @vehasmaa
    @vehasmaa6 жыл бұрын

    Great video and one of most clear explanation of PID control i have seen.

  • @billmoran3812
    @billmoran38126 жыл бұрын

    Excellent! Excellent! Excellent! I learned basic control theory in college over 40 years ago. It was hard to understand just the theory. I've worked with PID controllers ranging from mechanical analog to fully digital controls for the past few decades. The best way to understand tuning is to do it hands on. It gives you a feel for the dynamics of the process and the amount of hysteresis in the loop. I can't wait to see the inverted pendulum project. This is incredible content. Well done!

  • @colinterry7261
    @colinterry72616 жыл бұрын

    Hey! I'm working through my Electrical Engineering degree. I thought this was honestly pretty good. I appreciate the layman explanations of control theory. I am actually taking a controls class soon, so this makes me feel better about that class. There was a bit of rambling and bouncing around, but that's fine. I do that when I explain things to newer students, lol. I also appreciate the math. It's nice to see application, so to speak, rather than just concepts. Keep up the good work! I look forward to more videos on this topic!!!

  • @JonathanDFielding
    @JonathanDFielding6 жыл бұрын

    Thank you! I took control theory in school but this really helped to understand the PID controller much better.

  • @joaovoltani5857
    @joaovoltani58576 жыл бұрын

    The best video of the series so far, good job David!

  • @davidledger5941

    @davidledger5941

    6 жыл бұрын

    Thankyou!

  • @lasersimonjohnson
    @lasersimonjohnson6 жыл бұрын

    I spent alot of my career coding PID loops in PLCs. Good video David :)

  • @0ADVISOR0
    @0ADVISOR06 жыл бұрын

    Awesome Info about pid loops! I was just tuning my quadcopter and reading about pid's and now you uploaded more Info, cool thx =)

  • @lloydrmc
    @lloydrmc Жыл бұрын

    Truly brilliant presentation. Relating the equations/terms to the graphs made it understandable to people like me.

  • @jwilliams8210
    @jwilliams82106 жыл бұрын

    David, nice job balancing examples and theory.

  • @NilsRohwer
    @NilsRohwer6 жыл бұрын

    Great video, thanks! I first saw them in flight controllers for racing drones. There you have to tune your PID's and see the results immediately! Now I really understand how and why. With the drones the P is the responsiveness of the sticks in relation to the drones movement. You want it as high as possible, the I is the drones ability to hold the angle you set it at while flying, and the D is used to dampen oscillations from too high P, however it does make the drones more sluggish. As you said, D resists change, makes sense. Tuning those quadracopters is an art, a blend of snappy controls and smooth video. I really enjoyed this!

  • @amd64online
    @amd64online6 жыл бұрын

    Theory was great to follow alongside, looking forward to the practical.

  • @16baad
    @16baad6 жыл бұрын

    Excellent series, Keep it up, I am waiting for more of these EEVacademy videos

  • @scalcon1
    @scalcon16 жыл бұрын

    Really enjoyed the video, keep up the great work. Looking forward for more control videos.

  • @Mr321ruben
    @Mr321ruben2 ай бұрын

    Thanks, it is a very fresh way to explain the concepts. I am less lost with this explanation I think I am going though a good path

  • @metaforest
    @metaforest6 жыл бұрын

    Years ago, I developed several user-content 'toys' in Linden Labs' SecondLife that use PID controllers to simulate 3-D tracking behaviors and in one case, a very realistic tire-swing within the environment. It was fun to see this video and revisit my own experience in developing and tuning a PID controller in that context.

  • @cveliz_
    @cveliz_6 жыл бұрын

    Nice video, very well explained. Thank you David

  • @Audio_Simon
    @Audio_Simon6 жыл бұрын

    David2 brilliant video, just the right balance of explanation in each area for me :) Looking forward to the physical example.

  • @Hasitier
    @Hasitier6 жыл бұрын

    I like this kind of videos. And you are getting better from video to video. Go on with the great work Dave 2!

  • @johalun
    @johalun6 жыл бұрын

    Great video, thanks! Looking forward to the next one.

  • @peterdkay
    @peterdkay6 жыл бұрын

    Excellent presentation that gives you a good "feel" without maths. Look forward to next viseo

  • @MkmeOrg
    @MkmeOrg6 жыл бұрын

    Very well done. Not an easy topic to explain but hugely useful and widely utilized. Few robotics or flight controllers out there not using PID control.

  • @davidannett3322
    @davidannett33226 жыл бұрын

    You're a fantastic presenter! So detailed and engaging!

  • @avejst
    @avejst6 жыл бұрын

    Thanks for sharing 😀👍 happy new year to you and Dave

  • @chromerims
    @chromerims Жыл бұрын

    Valuable, informative and helpful content👍. Thank you.

  • @DavidLightman
    @DavidLightman6 жыл бұрын

    wow that was extremely interesting!, will look more into that, and looking forward for the next one, thank you!.

  • @Liamtronix
    @Liamtronix6 жыл бұрын

    Great video! I was just thinking about learning about this and then this vid came out. Perfect timing!

  • @Bl00drav3nz
    @Bl00drav3nz6 жыл бұрын

    Thanks David, really interesting topic and I'm looking forward to the next video! :D

  • @mrkattm
    @mrkattm6 жыл бұрын

    Nice job, Controls was my elected concentration as an undergrad EE student until they introduced the State Space method at which time I changed to digital and computer design, a choice I regret. I am looking forward to this series, keep up the good work.

  • @samgab
    @samgab6 жыл бұрын

    Thanks for your efforts. It would be cool to see this PID info from the point of view of model quadcopters, as PIDs, and tuning PIDs are a huge thing with getting rc model quadcopters working properly.

  • @cosmicmatrix6238
    @cosmicmatrix62386 жыл бұрын

    OMG i'm just a few minutes into this and it's AMAZING good on ya mate

  • @DingoAteMeBaby
    @DingoAteMeBaby2 жыл бұрын

    Finally a simple PID controller explanation!

  • @jb3757
    @jb37572 жыл бұрын

    loved it, simple, clear, and to the point

  • @fanest_norfar
    @fanest_norfar6 жыл бұрын

    Just the other day i said to myself that i have to look at theory behind PID again since i need to do some regulation and here u come with this video - just perfect :D.

  • @AmRadPodcast
    @AmRadPodcast6 жыл бұрын

    Nicely presented.

  • @alekseydudko6961
    @alekseydudko69616 жыл бұрын

    Great video! Thanks Dave!

  • @adithyaa1
    @adithyaa16 жыл бұрын

    Excellent video. Thanks

  • @mysomervda
    @mysomervda3 жыл бұрын

    I liked this explanation. Good job David.

  • @xanderlander8989
    @xanderlander89896 жыл бұрын

    Really good video! Interested in the inverted pendulum robot design, component selection, and build. Also excited for tuning the little guy. I've watched several people in my university try to build these for fun or for a class, but they never preformed very well.

  • @alimmi9
    @alimmi96 жыл бұрын

    Thanks alot! I needed exactly this video! Please continue :)

  • @tzampini
    @tzampini6 жыл бұрын

    Excellent explanation of PID control. Thanks.

  • @davidledger5941

    @davidledger5941

    6 жыл бұрын

    Thankyou!

  • @viodel8032
    @viodel8032 Жыл бұрын

    Many thanks for this amazing video. Best wishes!

  • @TheBigBigBlues
    @TheBigBigBlues6 жыл бұрын

    Great video David, well explained.

  • @anishsarkar120
    @anishsarkar1206 жыл бұрын

    love the video dave2 as i am studting control engiuneering in uni and you also covered the topic and no mistakes to spot

  • @mandomonica
    @mandomonica2 жыл бұрын

    Best explanation ever! Thank you!

  • @ZPositive
    @ZPositive6 жыл бұрын

    Awesome video. I'm stoked to see the pendulum bot take shape! And yes, please keep the math in there.

  • @s.campos9682
    @s.campos96822 ай бұрын

    Absolutely great presentation and gace me a further understanding

  • @CaliReef
    @CaliReef6 жыл бұрын

    Loved it, would like to see more of the math, and maybe a demostration implementing the control theory. 3rd year EE

  • @nukularpictures

    @nukularpictures

    6 жыл бұрын

    woot and then you havent had a lecture about that? After 3 years?

  • @CaliReef

    @CaliReef

    6 жыл бұрын

    nukularpictures taking it next semester actually.

  • @nukularpictures

    @nukularpictures

    6 жыл бұрын

    Wow that is late. I had it in the 3rd and 4th semester. But yeah its a really interesting topic, especially with the more advanced controllers and fuzzy control. Its a good choice :)

  • @radoslavradoslavov3528
    @radoslavradoslavov3528 Жыл бұрын

    If I can't get this explanation I can't get any other. Thank you very much!

  • @omar7amdi
    @omar7amdi6 жыл бұрын

    Thanks and I hope the other parts are better. As a matter of fact you presented more information than the others who talked about PID. PID is vague subject presented by books and many instructors.

  • @Rost1337
    @Rost13376 жыл бұрын

    Great mix of math and examples! Keep it up.

  • @jcobnl
    @jcobnl6 жыл бұрын

    Great video. I hardly understood how these kind of controllers work, like ambient room temperature controllers or a cruise control system, and how they deal with overshoot. Until now.

  • @captdrsam7773
    @captdrsam77734 жыл бұрын

    Thanks.one of the best explanation .I like the way you combine mathematics together with the actual thing. It really make sense to me, better understanding since I am only good at math but not so to relate it with the actual thing. Once again thank you so much for your fantastic effort to teach us. God bless you Sir.

  • @davidabineri908
    @davidabineri9086 жыл бұрын

    More like this please, perhaps adding an actual device/program to demonstrate the concepts in context. Very good, clear explanations. Thanks!

  • @ocnyoura6803
    @ocnyoura68035 жыл бұрын

    "Cooking my chicken at 10 degrees" lmao

  • @matheoml
    @matheoml6 жыл бұрын

    Awesome explanations!

  • @bacawaka2813
    @bacawaka28136 жыл бұрын

    Awesome! I've taken a controls course before but I never learned the Ziegler-Nichols method. In fact, we never actually touched tuning other than using a given transfer function and finding the corresponding PID values by using a root locus. The major issue is that you have to get the appropriate model first then convert to a transfer function which is already a lot of math. Then you can finally get the transfer function to find the PID values which, in most cases only gets you in the ballpark of the system response you desire. Even then there is trial and error involved at the end to get it dialed in to that response.

  • @sher.5027
    @sher.50273 жыл бұрын

    Thanks for this video.

  • @blickberg8404
    @blickberg84046 жыл бұрын

    Awesome video.

  • @spikeyeddy
    @spikeyeddy5 жыл бұрын

    great explanation

  • @91722854
    @917228546 жыл бұрын

    Ever since I learned Control, I see it everywhere, we are all in harmony because of the feedback and control of our systems with Brain OS, mine currently have 1024 bit cpu, 4096 TeraByte of RAM, but need an upgrade to my soft drive

  • @AmyAndrewAdventures
    @AmyAndrewAdventures6 жыл бұрын

    Thank you!! Excellent video!!

  • @TheDuckofDoom.
    @TheDuckofDoom.6 жыл бұрын

    Good effort. You forgot the essential role of the delay in the control feedback loop, without this system delay there would be no need for PID controllers. I wish I could recall the website I found many years ago(~15) explaining PID control, it was very spot on, covered the math in a reasonable manor(especially the strengths of the three components at different levels of initial error) and it had some very nice example graphs.

  • @davidledger5941

    @davidledger5941

    6 жыл бұрын

    Delay isn't the only reason for PID controllers, infact in many system models it can be ignored. Delay is very significant in systems involving heating and cooling and I suppose I did talk about that so maybe should have mentioned it.

  • @uwezimmermann5427
    @uwezimmermann54276 жыл бұрын

    Absolutely a nice video - it started a bit rough, but once David got into the flow, it became very clear and nice to follow. When explaining the I-part, you should perhaps also have shown the actual "temperature" or state of the oven instead of just the error. You could have combined the two in a single graph where you had shown a line for the setpoint and drawn the error between the setpoint and the actual state. YES, keep the math, it is necessary here!

  • @johnpossum556
    @johnpossum5566 жыл бұрын

    feedback: Screech your voice like Dave, it throws my thinking off. Seriously, Dave, that was an excellent vid on digital data logic sheets. I went to college for Avionics tech and that was above and beyond. That is the kind of content I really enjoy watching from you. Something that furthers my understanding of a topic I already love.

  • @oliss10
    @oliss106 жыл бұрын

    This is my line of work :) Measuring instruments, controllers and process valves :) and PLC's naturally :)

  • @toastrecon
    @toastrecon6 жыл бұрын

    Very helpful, thank you!

  • @Landrew0
    @Landrew06 жыл бұрын

    Excellent explanation, much better than Dave, who can make the simplest concept incomprehensible by over-explaining it to death.

  • @mdrew44628
    @mdrew446286 жыл бұрын

    Great explanation. Looking forward to the continuation of the series

  • @JGnLAU8OAWF6
    @JGnLAU8OAWF66 жыл бұрын

    Do more videos on control theory, that stuff is amazing.

  • @davidledger5941

    @davidledger5941

    6 жыл бұрын

    Thanks, will be!

  • @dardosordi
    @dardosordi6 жыл бұрын

    Great Video, David, much better presentation too, you are getting better every time, seems like you were tuning your constants...

  • @eziosoft
    @eziosoft6 жыл бұрын

    More videos like this please !

  • @revealingfacts4all
    @revealingfacts4all6 жыл бұрын

    Excellent video. I develop software for autonomous vehicles in the agricultural industry. Our controls engineers use simulink to develop their "models" and I develop the wrapper code as we call it to feed the model with data. Our controls engineers are always tuning the system. Our systems controls a steering valve for an auto guidance application. This video filled in some gaps for me. Now I know what my controls engineers are really doing lol...

  • @davidledger5941

    @davidledger5941

    6 жыл бұрын

    Glad to help :)

  • @sloMoses
    @sloMoses6 жыл бұрын

    Well done. Thank you.

  • @CanDoo321
    @CanDoo3216 жыл бұрын

    Thank you David.

  • @mortenlund1418
    @mortenlund14184 жыл бұрын

    Nice explanation

  • @johnsnow5305
    @johnsnow53056 жыл бұрын

    I don't know how this was boring lol. I guess I just like learning, so I found it interesting. I love learning how math works in the 'real world' - I die trying to learn math purely for math's sake. So something like a PID controller is perfect for me - shows how you can use math in the real world to achieve things you want. I'm glad you included the animation at the end - it definitely helps to see the effects of variable changes in real time like that. I hope you guys do a tear-down or something of a typical PID controller during this series. I would love to learn how the circuits / components work together to make this math happen.

  • @cloviscareca
    @cloviscareca2 жыл бұрын

    Best video about PID

  • @fuentescgabriel
    @fuentescgabriel6 жыл бұрын

    Soooooo great video!!!!!

  • @sokolum
    @sokolum6 жыл бұрын

    Nice video 👍🏼

  • @florentinosanchez3969
    @florentinosanchez3969 Жыл бұрын

    Thank you so much for making It

  • @TripleJ85
    @TripleJ856 жыл бұрын

    Nice one David - clear and concise.. I wish I had resources like this when I was a student - maybe I would have learned more and played less poker :/

  • @CarstenGroen
    @CarstenGroen6 жыл бұрын

    Great video Dave(2) !

Келесі