Designing a PID Controller Using the Ziegler-Nichols Method
In this video we discuss how to use the Ziegler-Nichols method to choose PID controller gains. In addition to discussing the method and providing a Matlab implementation of the procedure, we demonstrate the effectiveness of the resulting controller on a real system.
Topics and time stamps:
0:00 - Introduction.
5:47 - The Ziegler-Nichols procedure.
17:32 - Example 1: Tuning a PID controller for a transfer function plant.
28:03 - Example 2: Tuning a PID controller for a real system (DC motor).
32:07 - Summary and conclusions.
Download the ZieglerNichols.m function at
faculty.washington.edu/lum/Edu...
Additional videos in this series:
-Using the Control System Designer in Matlab ( • Using the Control Syst... )
-Understanding and Sketching the Root Locus ( • Understanding and Sket... )
-The Routh-Hurwitz Stability Criterion ( • The Routh-Hurwitz Stab... )
- Modeling a DC Motor with Ordinary Differential Equations (TBD)
-Designing a PID Controller Using the Ziegler-Nichols Method ( • Designing a PID Contro... )
-Designing a PID Controller Using the Root Locus Method ( • Designing a PID Contro... )
Overview of engineering videos and curriculum located at faculty.washington.edu/lum/Edu...
All Control Theory videos in a single playlist ( • Control Theory )
#Control #ControlTheory
You can support this channel via Patreon at / christopherwlum . Thank you for your help!
Пікірлер: 207
In case it is helpful, here are all my Control Theory videos in a single playlist kzread.info/head/PLxdnSsBqCrrF9KOQRB9ByfB0EUMwnLO9o. You can support this channel via Patreon at www.patreon.com/christopherwlum or by clicking the 'THANKS' button underneath the video. Please let me know what you think in the comments. Thanks for watching!
@hammk454
4 жыл бұрын
I have a question
@user-dw6hh5np8z
3 жыл бұрын
i wanna know how to get the Ku value. i found it only by trying a lot.
AE511 - The DC motor demonstration was superb and the use of pop ups to show the full table gives a great detailed view.
@ChristopherLum
5 жыл бұрын
Alan, great, I'm glad it was helpful. It was fun to get the system working to film this.
I've seen Ziegler-Nichols previously but this is a much better / straight-forward explanation
I appreciated the DC motor example. It was a helpful visualization.
first PID tutorial i can understand, ty.
You deserve heaven, this video helps a lot
1:46 "allow you to do this in iterative online fashion" This guy really knows what I'm doing in this year,,,
Thank you for the enlightening discussion. I was looking for a little guidance on tuning my PID for temperature control. Can't wait to get to the lab in the morning... Thanks again!
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
AE 511. I liked the lab example of the DC motor. It gave a good real life reference.
Your lessons are brilliant - thank you very much!
@ChristopherLum
2 жыл бұрын
Hi Chadd, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Wonderful explanation! One of the best and simplest explanation I have seen on youtube. Kudos to you sir!!!
Yes that is something initiative sir ,you always come with practical aspects 😊😊😊
Awesome! Exactly what I needed to know.
Your motivation is fascinating! Good luck
Had to pause in the middle of the video to write. I seldom writes comments on KZread, but this explanation was so good it deserves a lot of praise! Thank you, you are much better than my teacher in system theory! Now i am a subscriber to your channel :)
@ChristopherLum
2 жыл бұрын
Hi Daniel, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Very informative, big thanks.
AE511: The practical examples are really helpful, looking at output traces in MATLAB/Simulink doesn't always give the best comprehension
thanks. you hang it on my brain compeletly
This was very helpful, thank you for taking the time . Great quality
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
Really good explanation! Thank you so much! Your videos help a lot!
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
Great explanation, thanks!!
That was quite good explaination of the method!
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful thanks for watching!
thanks a lot. Works great on my software PID controller
Thanks for your amazing LECTURE =) Gracias
Great explanation of Ziegler Nichols...keep banging on the can of beans, you'll open it eventually haha!
Chris, wonderful explanation.
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful thanks for watching!
Thank you. This helped a lot.
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful thanks for watching!
Thank you so much for the tremendous video and the DC Motor example.
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
@lxzhang4911
3 жыл бұрын
@@ChristopherLum I have watched almost all your videos in this channel about control theory. They are such great videos. Now I'm waiting for the TBDs :)
@lxzhang4911
3 жыл бұрын
@@ChristopherLum May I ask if you have planed to publish some videos about adaptive control and fuzzy logic?
Really a great explanation. Thanks for sharing the video.
Great explanation!
Great Explanation, Thanks
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful thanks for watching
Thanks you, sir for very helpful information.
Thank you very much. It was very nice and clear explained.
Thank you very much sir !
Thanks very much for this excellent Video. THANKS!
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
This video was so useful. Thanks Sir Lum!
@ChristopherLum
2 жыл бұрын
Hi Inigo, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Great video and simple explanation. Thank you for your afford.
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful thanks for watching
ae511, good lecture on implementing the PID controller
Practical explanation! unique from other tutorials!
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
Nicely done. Thumbs-up
@ChristopherLum
2 жыл бұрын
Hi Chris, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
This could be a wonderful lecture and I sincerely appreciate the time and effort Mr. Lum has put into making this video. However, it would be so much better if he transcribed his notes onto the board BEFORE he started talking. Not having to frantically scribble while frantically talking and obstructing a view of the material would be a big improvement. Even better, would be for him to narrate over Power Point versions of his notes. Aside from that, he explained the material quite well.
good lecture. thank you a lot for your sharing, it is helpful
Crystal clear. thanks
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. I have another video showing how to design a PID controller using another technique (root locus). Please feel free to check it out if you are interested. Thanks for watching!
Great explanation. Thanks for sharing the video.
@ChristopherLum
Жыл бұрын
Hi Osama, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
This is a fucking great lecture. Although the pace is fast, it's at the suitable speed for us to capture what you're saying. I need a lecturer like you in my college life.
@ChristopherLum
2 жыл бұрын
Hi Shawn, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Very nice. Have to watch your other videos.
@ChristopherLum
2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
great work , thank u sir
@ChristopherLum
2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Great content, thanks! Also looking forward to the video about PID using Root Locus Method! :)
@ChristopherLum
5 жыл бұрын
Tomas, thanks for watching. I'm working on this video right now. I hope to have it posted in the next 24 hours so please stand by.
Great explanation
thank you so much!
thank man, really helpful !
@ChristopherLum
Жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
@nikafif2211
Жыл бұрын
@@ChristopherLum sure thing
Thank you, Dr Lum, for the informative, easy-to-understand video. One quick comment, at timestamp 29:52, It looks like the value of period(TU) of the oscillation is not around 0.96s from the zoomed-in oscillation degree plot. For me, it looks closer to 0.4s.
te amo, saludos desde méxico
Amazing video !!!
@ChristopherLum
2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Nicely explained good 👍
Yes, I am very much happy. Thank you I am subscribing your channel.
@ChristopherLum
2 жыл бұрын
Hi AJ, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Spot on👌🏾thank you
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. There are other similar videos on the channel please feel free to check them out and let me know what you think in the comments. Thanks for watching!
amaaaaaaaaazing. Just thanks.
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. There are other similar videos on the channel, please feel free to check them out and let me know what you think. Thanks for watching!
Thank you
บรรยายดี เข้าใจง่ายดีครับ
@slowbung5973
2 жыл бұрын
สุดยอดมากครับ
Thank you!
Thank you Sir
My hope for good lectures are restored
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful thanks for watching!
Great explanation! What I was wondering about is the use of the ideal algorithm with the results for Kc, Ti and Td. Should this not be the series algorithm, since it was more common in the days of Ziegler and Nichols? I have not been able to find any confirmation on this. Maybe you can shed your light on it?
best video thanks
thanks for the video sir
Great Examples Chris especially the DC Motor but I was hoping to see the "feed the baby" DC Motor experiment.
@ChristopherLum
5 жыл бұрын
Haha, I forgot that you probably remember that from a few years back. I seem to remember that your system worked great.
thanku sir, your video may help me designing PI controller for bidirectional buck boost charger.
thanks a lot
AE511: It looks like this technique could be used when you don't have a model of the system which is awesome! I suppose that means you could deploy this technique with any black box where technical documentation of the plant may not be available.
I implemented this method with Visuino and also auto tuning , and managed to fit this code on a Arduino Nano. i have also wrote the code for ESP32.
Great explanation man. Please can you give us the reference that you have used to obtain the required information, especially the pid table Thanks in advance
AE511: The example with the wheel in the lab was a cool practical application. What were you using to read that data into MATLAB and plot in real time? Thanks!
Hello, Thanks for this nice video, Can you please clear one of my doubt, You mentioned that At ku there will be Neutral stability, but for a system like y_doubledot + ydot=cos(t) the response will be unbounded, So I think instead of saying at ku means neutral stability it will be more good to say that ultimate gain is the one for which the system poles coincide with the Jomega axis and depending upon the input the system may attend neutral stability. Correct me if I'm wrong anywhere. Hoping for a respsone.
Thanks for the great explanation Sir And, I want to report some error at the tabel 11:32, about the KD value on "some overshoot" and "no overshoot" cmiiw
Thank you so much for all your efforts! it is really helpful. But Matlab says that "ZieglerNichols" is unrecognized function . How can I solve this problem?
Hi Christopher Lum! How do you know what family of PID controller in terms of P, PI or PID controller to choose depending on a system. What do you base your choice on?
Thank you for the lecture and the examples with an existing model and no model/experimental data. For cases where we don't have a model, is the process of obtaining K just a simple trial and error? or is there any way of narrowing down to some range of possible K values?
@ChristopherLum
5 жыл бұрын
Unfortunately without a model, trial an error is about as best as you can hope for unless you have some physical intuition/insight about the system. If you don't have a model then perhaps a simulation/approximation would suffice?
Are Ku and Pu values same for all the controllers like P, Pi and Pid or different for different controllers
I have a question for you. I wonder how we can calculate without guessing the value of parameter Kp? I want to do PID controlor design with Ziegler Nichols for 2DOF quarter car model. Should I do these steps for both transfer functions? Thank you so much, I am learning Control Theory with you. Appreciate that🙏🙏🌸
this was very informative sir, is there a platform that one could inbox you in?
Hello. Is possible to obtain the period, TU (the 1.9), at marginally stable, using equations or formula? and not measuring the period from a simualtion? thanks
your explanations are very clear but could you tel me how you got Simulink model in this case.thank you
@ChristopherLum
2 жыл бұрын
Hi Anitha, Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on KZread due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. Given your interest in the topic, I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching! -Chris
Hi, thanks for this video!, may i know what is the difference between Lambda tuning and Ziegler Nichol's tuning? Why in Ziegler Nichol's we need to make it oscillatory (neutral stability) in order to be able to solve it?
At 20:16 a text-comment was highlighted, showing the expansion "s^2 + 6*s^2 + 11*s + 6". I know it was commented out anyway, but it was meant to be cubic with the first term, right?
@thorntontarr2894
2 жыл бұрын
thank you I spotted that and checked comments because surely others saw that too. You did, well done.
Would you please do one on I-PD ?
Hi Christopher Lum when I ran the program through my matlab there is an error here. "Error using ZieglerNicholsMethod (line 59)" Invalid number of inputs Please help ASAP.
Ki=Kp/Ti for me does not seem to be equivalent to 1.2 KU/TU. There is offset of 0.03. Is this normal or am I doing something incorrect?
Thanks for the video. Should the Ziegler-Nichols method be repeated for a new set-point or is it designed for the max bound for the process variable that is being controlled?
@ChristopherLum
2 жыл бұрын
Thanks for reaching out. If you have questions or would like to request a video, please consider supporting the channel via Patreon at www.patreon.com/christopherwlum. I interact personally with Patrons at all levels. Thanks for watching!
AE511: @27:08 your "No overshoot" curve looks like it has some overshoot...?
Point of confusion for me @20:06 on line 10 of the algebraic expansion you have "s^2 + 6*s^2 + 11*s + 6"... should not that first term be s^3 ??
AE511: In industry or academia if there is a situation that would be well suited to Ziegler-Nichols where this is no mathematical model for a system but the response can be measured, is the typical approach to create an approximate mathematical model to enable one of the higher fidelity PID design techniques you mentioned?
@ChristopherLum
Жыл бұрын
Correct, the typical workflow is to get the model first which allows the linear analysis tools to be brought to bear. Ziegler Nichols is if you are too lazy to get the model
please upload frequency response analysis
What"s your use book for reference PID ziegler nichlos this videos ?
Great job 👍🏻, I have question regarding this method. I am designing PID controller using SIMULINK do i add the transfer functions of disturbances to the diagram and introduce a step function to them? Or they are neglected in this method? Thank you 🙏🏻
@gorakalasaikumar5136
2 жыл бұрын
if you want to give disturbance tf or step of some magitude in disturbance, you can give. if u designed a good controller it will surely have characteristics of set-point tracking and disturbance rejection.
What software is being used at 30:48?
really its very usefull thk sooo much but i need the code of SLX of matlab ready in afile i dont have the app
Amazing explanation its simply awesome......... Introduction to PID control and Practical implementation issues with a PID controller, these two am i the only person unable to find? Can anyone help me out?
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. I'm currently working on getting those videos completed and uploaded. Hopefully they will be up in a few weeks. Thanks for watching!
could please support to design PID controller to control level in spherical tank
good vid
@ChristopherLum
2 жыл бұрын
Hi Murathan, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris