What is a PID Controller? | DigiKey

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 109

  • @pekhotinyets
    @pekhotinyets Рік тому +45

    I have watched many videos on PID control, but this is the one where it finally clicked.

    • @cloverland1612
      @cloverland1612 2 місяці тому +2

      Same here, finally I can wrap my head around this after so many other videos

  • @micah2936
    @micah2936 Рік тому +64

    This is honestly the BEST explanation of PID. I’ve watched many videos on it and read articles. I’ve just hear that it’s an “art” or that it’s something debated about, but nothing like this. This just straight into the facts and math.

    • @ShawnHymel
      @ShawnHymel Рік тому +6

      Glad you liked it! Tuning them can be a bit of an art, which I only briefly covered here :)

    • @JL-to9vg
      @JL-to9vg Рік тому +4

      Same here, even some of the "better" articles would neglect or leave out one element or another. He covered each mode and key aspects so well- it was like I could "see" each mode in action just from his explanations. TYVM, Shawn! I plan to share this with my class and possibly an instructor from a previous class.

    • @ShawnHymel
      @ShawnHymel Рік тому +2

      @@JL-to9vg Thank you! I hope that your students find the explanation useful!

  • @jimomertz
    @jimomertz Рік тому +21

    Shawn, you are such an excellent presenter! Looking forward to more. I really loved your KiCad tutorial series also.

    • @pekhotinyets
      @pekhotinyets Рік тому +1

      I still refer back to that series when I work on my boards

  • @Penchacky
    @Penchacky 23 дні тому

    By far, the best explanation on the PID's principle I ever have come across. 22 mn to learn more than during entire engineering sessions back in a day. This is a master class. Congratulations.

  • @ScientificThamizhan
    @ScientificThamizhan Рік тому +4

    One of the best video that actually help you to understand how a PID controller works.

  • @tehmudjinkhan2207
    @tehmudjinkhan2207 Рік тому +6

    Been looking to get deeper into PID controllers. Perfect timing on the video.

  • @aliusef2912
    @aliusef2912 10 місяців тому +1

    the best explanation on the PID controller I've ever seen on UA-cam. thanks

  • @ankitpatel8180
    @ankitpatel8180 14 днів тому

    Wow one of the best teaching abilities with proper block diagram and proper use of graphs 👍

  • @grottyboots
    @grottyboots Рік тому +10

    Brilliant! I love that the PID controller applies to so many widely varying systems... massive boilers operating on hour time scales, or as fast as modern motor controllers in the millisecond range.

  • @mruthyunjayamr7147
    @mruthyunjayamr7147 Рік тому +2

    There was such clarity and continuity in the explanations...
    Really liked and understood the concept clearly ....
    This was really helpful ....

  • @amritpalsingh314
    @amritpalsingh314 10 місяців тому +1

    Probably the BEST video on PID controllers.

  • @pabcet
    @pabcet Рік тому +4

    Shawn, this is one of the best explanation on PID, thanks a lot.

  • @alejandromoreira9896
    @alejandromoreira9896 10 місяців тому +1

    Honestly, this is the BEST explanation of PID, although the SUM column is summed wrong.

  • @rickh6963
    @rickh6963 Рік тому +6

    Shawn, another fantastic video. Thank you DigiKey!!

  • @erdum
    @erdum Рік тому +1

    I was trying to understand this as an programmer for almost a year now finally I get it.

  • @benarcher372
    @benarcher372 Рік тому +4

    Excellent description!

  • @JM-jk9vz
    @JM-jk9vz 3 місяці тому

    I can't tell you how helpful this video has been and how often I keep coming back to it as a reference. Thank you!

  • @spreaderikthierheimer9271
    @spreaderikthierheimer9271 Рік тому +3

    This is an amazing explanation of PID THANK YOU!

  • @moneyhustle181
    @moneyhustle181 6 місяців тому +2

    The best PID video available on youtube 😂 thank you my friend!

  • @ellenamori1549
    @ellenamori1549 4 місяці тому +1

    This is an excellent explanation of the PID controller. Thank you so much for sharing this.

  • @odoggaspar6178
    @odoggaspar6178 6 місяців тому +2

    The best PID control explanation.

  • @vidtechnology7342
    @vidtechnology7342 7 місяців тому +2

    I have watched many videos on PID , but this is the one from which I understand, Thanks

  • @TradieTrev
    @TradieTrev Рік тому +2

    Great video Shawn, out of all the courses I've taken about PID loops you've really explained the principles and terms spot on!

  • @Factory400
    @Factory400 Рік тому +5

    Excellent presentation as always!

  • @Dr.Bigglesworth
    @Dr.Bigglesworth Рік тому +1

    That is an excellent presentation. Best one I've seen that describes in detail actually what the P, I & D do.

  • @4473021
    @4473021 Рік тому +1

    Shawn this was so good I wish my controls profs were this clear 😭😭😭😭

  • @chinmayyande5024
    @chinmayyande5024 Рік тому +1

    Thank you Shawn for diving into PID controllers. This is extremely helpful.

  • @danielx-copter8001
    @danielx-copter8001 3 місяці тому

    Endlich, nach ein paar Jahren mit diesen Erklärungen, konnte ich verstehen, was PID ist... Finally, after a few years with these explanations, I was able to understand what it is PID

  • @DennisSolari-r4z
    @DennisSolari-r4z 2 місяці тому

    Wish I had you as my teacher when I was coming through the trade! I never claimed to be a sharp knife in a drawer, takes me more time for this material to stick. God Bless You for sharing this video.

  • @aashutosh3721
    @aashutosh3721 7 місяців тому +2

    Best ever pid explanation

  • @hojvaelde
    @hojvaelde 9 місяців тому +1

    Hello
    Just my own comment to your fine explanation.
    I have a hydraulic project where I have to control the force from a cylinder through a load cell.
    What makes hydraulics special is the response time.
    The used servo valves have a 0-50% opening time of 6 msec (common in servovalves). That's why I must use a PID regulator with a cycle time of 1 - 2 ms.
    There is only an expensive servo controller that can do that, or an analog PID controller, that I used.
    Another part you easily skip over is the partial feedforward. It is frequently used in hydraulics.

  • @nikitam6164
    @nikitam6164 11 місяців тому

    Awesome video. I have never come across such cleanly explained example.

  • @MrOnlineCoder
    @MrOnlineCoder Рік тому

    Amazing video - clear, visually understandble, with a nice host.

  • @dnh534
    @dnh534 7 місяців тому +1

    Beautifully explained PID

  • @dzorzstops5136
    @dzorzstops5136 9 місяців тому +1

    Best explanation of PID EVER!

  • @unlish5996
    @unlish5996 24 дні тому

    Don't know why I chose this video but its so good!

  • @leonardomarquez7914
    @leonardomarquez7914 6 місяців тому

    Great video, as usual Shawn is great explaining things in the simplest way.

  • @catalincostache6953
    @catalincostache6953 3 місяці тому

    Great explanation, is the best that I saw until now. The time interval should be in seconds ?

  • @dwagner6
    @dwagner6 Рік тому +8

    Would have been amazing if my Control Systems professor had just played this video for us

  • @TekCroach
    @TekCroach 3 місяці тому

    Thanks Shawn for this wonderful tutorial. You covered it in the most intuitive logical and exciting way. The best video on the subject. :)

  • @Akeshma
    @Akeshma Рік тому +1

    Thanks for the explanation.. we need another video illustrate PID using Arduino

  • @rolfw2336
    @rolfw2336 Рік тому +1

    Nice explanation, Shawn! I liked that there was a bit of math and a bit of code. PS: nice meeting you last week :)

  • @machmanish1
    @machmanish1 3 місяці тому

    you are beyond awesome!!! what a smooth explanation! My PID worked in one shot following your lines....Thanks

  • @kedarpuranik750
    @kedarpuranik750 Рік тому +1

    This is the best video on PID!

  • @joymakerRC
    @joymakerRC Рік тому +4

    I love you bro. thanks for filling in the gaps of my knowledge. I have been using the STM32 nucleo family to build a UAV controller. definately perfect timing for me too.

  • @SarahKchannel
    @SarahKchannel 23 години тому

    Brilliant - I mean who needs Brilliant when you have DigiKey :)

  • @ganeshhampapura9842
    @ganeshhampapura9842 2 місяці тому

    Clarity clarity and clarity
    God bless

  • @alfcnz
    @alfcnz Рік тому +1

    This was great! Thanks for the informative lecture!

  • @Torqueinxdirection
    @Torqueinxdirection 6 місяців тому

    perfect video with comprehensive explanation.

  • @francesconigri745
    @francesconigri745 2 місяці тому

    efficient explanation of PID

  • @MrDevZero
    @MrDevZero 2 місяці тому

    I though I could never understand PIDs. Great video.

  • @rinokentie8653
    @rinokentie8653 Рік тому +4

    Very useful video, thanks.

  • @jozefsoucik3115
    @jozefsoucik3115 5 місяців тому

    cruise control system was exact example what came to my mind as first when try to explain others:-)

  • @mostafanfs
    @mostafanfs 5 місяців тому

    Shawn I have always loved your work no matter the topic. But this was awesome

  • @ismenc
    @ismenc Рік тому +3

    i wish PID in universities were as simple as this :)

    • @ShawnHymel
      @ShawnHymel Рік тому +1

      I'm guessing that they give you the transfer function of the plant and have you solve the differential equation analytically. If so, yeah...that sounds rough 😅

    • @ismenc
      @ismenc Рік тому +1

      @@ShawnHymel Exactly. Just to know in the next subject that everything of that has no real application because real world 'behaviour formulas' are complex and computers don't process feedback in real time.

  • @boldattempt390
    @boldattempt390 9 місяців тому

    Great video, very informative thank you. However can someone please say why the integral term Ki value was set to 0,01 in the example?

  • @salahh89
    @salahh89 9 місяців тому

    What a great demonstration! Thanks a lot

  • @andrewlohbihler6731
    @andrewlohbihler6731 Рік тому +1

    Thanks Shawn, good example to follow with coding. Will try a desktop example with Arduino code.

  • @micah2936
    @micah2936 Рік тому +1

    20:18 setpoint was not defined, what is setpoint? Is that the set value we need?
    Also error_prev should be set equal to error at the end of the loop right
    Nvm I just wasn’t there yet lol

  • @506_SWALIHAATTAR
    @506_SWALIHAATTAR 4 місяці тому

    Great video! Started as a noob, ended as a semi-PRO😎

  • @a_boy_can_dream
    @a_boy_can_dream 8 місяців тому +1

    You're awesome! Wonderfully well-explained!

  • @divya2225
    @divya2225 9 місяців тому

    loved it . simple and easy to understand .

  • @fl4tcircl3
    @fl4tcircl3 Рік тому +1

    This is so good!

  • @ugetridofit
    @ugetridofit Рік тому +1

    Now we need a new method AIPID, or PIDAI. Where we slap AI to the PID for it to figure out the prefect values for us.

    • @ShawnHymel
      @ShawnHymel Рік тому

      You read my mind 😁 There are automated methods of finding PID constants, which have been in use for a while. I’m currently experimenting with using RL to figure out a generic controller (including swing-up). My hope is that this will be the next video.

  • @JeremySpidle
    @JeremySpidle Рік тому +1

    Props! College level stuff here AND its accessible, even to beginners.

  • @willowdesk
    @willowdesk 9 місяців тому

    The beginning 60 seconds demystify the block diagram so much

  • @prabuddhajadhav2933
    @prabuddhajadhav2933 9 місяців тому

    How do you define interval? Like if I'm reading sensor value at every 1msec then interval =1msec????

  • @Jkauppa
    @Jkauppa Рік тому +1

    do you mean s=s0 + vt + ½at^2 balancer (position, speed, acceleration controller)

  • @ahmetcabri5348
    @ahmetcabri5348 6 місяців тому

    Thank you. It's a very useful video.

  • @saeedamini8098
    @saeedamini8098 10 місяців тому

    absolutely brilliant. Thank you shawn.

  • @tanjiro3285
    @tanjiro3285 Рік тому +1

    my fav man on ytb🤩

  • @atuhuraalbert9487
    @atuhuraalbert9487 2 місяці тому

    Good explanation

  • @BackyardFusion
    @BackyardFusion 11 місяців тому

    How is e(t) a wave curvy functions it should be linear

  • @joseph9915
    @joseph9915 Рік тому +1

    A car wouldn't have any overshoot if you just kept it floored until your set speed, would it? So wouldn't you only use the PID after you got up to speed? Maybe that will be part of the next episode.
    Anyway, thanks for the video, it helped explain PIDs nicely, looking forward to the next one.

    • @dwang085
      @dwang085 Рік тому

      You’d have to precisely let off the pedal at the right moment. The car has inertia and there is a time constant associated with the moment the pedal position changes to the moment the engine changes the torque applied to the wheels. All of that results in you having to letting off the pedal BEFORE the speed set point is achieved. Otherwise there would definitely be overshoot.

    • @joseph9915
      @joseph9915 Рік тому

      ​@@dwang085 My question was meant to be more about initial values, starting/stopping point for the PID and maybe when to use/swap out the PID. Sorry if I come across as nitpicking the model.
      But using it as an example:
      As soon as you stop adding power, it would stop going faster (well unless you are going downhill etc. but that sort of thing should be outside the model) And the amount of inertia needed to be overcome to move the pedal position would be small enough I don't think it would matter, probably even happen before the next piston power stroke. Especially with fuel injection etc. And even if it would take a very small amount of time for the accelerator to move, you could still hand over at 99.9km/h. (Although I guess whatever you are using to automatically move the pedal could be quite slow (erm, do they even move the pedal nowadays?))
      As for the car, engine, flywheel etc. inertia would help keep the current speed. It can't add speed, or you would have a perpetual motion machine.
      So you shouldn't need the PID until you are up to speed?
      Anyway, my point being that in similar cases wouldn't it be better to hand over to the PID after a certain point, maybe with initial values taken from a table etc?

  • @solomon337
    @solomon337 11 місяців тому

    Great explanation

  • @MePeterNicholls
    @MePeterNicholls 10 місяців тому +1

    Now…. How do you make the tuning automatic/dynamic/inteligent 😜

  • @mschwage
    @mschwage 11 місяців тому

    Awesome video

  • @entertainmentjoke2871
    @entertainmentjoke2871 4 місяці тому

    Good explanation but in reality, it is still hard to tune.

  • @jan-willemrensman
    @jan-willemrensman Рік тому

    Excellent ❤

  • @ashinthaCARBON
    @ashinthaCARBON 11 місяців тому

    thank you ❤

  • @SimpleAnalogy
    @SimpleAnalogy Рік тому

    NICE one..Thanks!

  • @Naveen-m8j
    @Naveen-m8j 21 день тому +1

    goated video

  • @BritishEngineer
    @BritishEngineer Місяць тому

    2:53 “accelerometer”? We don’t have electronics in our brain. We have vestibular canals,

  • @jeffreyfontenot8803
    @jeffreyfontenot8803 2 місяці тому

    Very confusing to me, you start by saying 5 cm pedal position = 100 km/h then immediately contradict that on first calculation showing pedal position 10 cm yielding 30 km/h.

    • @NovaH00
      @NovaH00 Місяць тому

      First, "5 cm yield 100 km/h" means after you get to 100 km/h, if the pedal at the 5cm, the speed stay at 100 km/h and won't change.
      Second, it is "10 cm at 30 km/h" not "10 cm yielding 30 km/h". 10 cm at 30 km/h just means the car is at 30 km/h and it is accelerating

  • @MrApinder
    @MrApinder 9 місяців тому

    I’d like to hit the like button a thousand times

  • @phantomaticscience6846
    @phantomaticscience6846 Рік тому +1

    teaching genius :)

  • @joehopfield
    @joehopfield 9 днів тому

    My billion dollar idea is controllers that goes to 11.

  • @mountainsite
    @mountainsite Місяць тому

    11:51 These go to 11.

  • @chamodbandara5754
    @chamodbandara5754 5 місяців тому

    thanks

  • @TimSeatonPainting
    @TimSeatonPainting 23 дні тому

    What a complicated way to explain how to drive a car.

  • @borisbakardzhiev1673
    @borisbakardzhiev1673 Місяць тому

    Black Magic!

  • @googleyoutubechannel8554
    @googleyoutubechannel8554 Місяць тому

    While this explanation is of course correct, the presentation here is very poor, I recommend other videos, the graphs for instance, just graphing 'error' is weak pedagogy, for the classic speed example, you should be graphing speed vs t at the very least, and even better, animating a car or a dash speedo. PID is very simple, if you have ever played with a spring, like everyone has, this concept is trivial, but the math symbology and the control theory archaic jargon confuse everyone.

  • @lumek88
    @lumek88 Рік тому +1

    Don't guess or use ancient tuning method.