⚡️ Tuning a PID Controller Using the Ziegler-Nichols Method | MATLAB code available
HTML-код
- Опубликовано: 5 сен 2024
- Reference article:
www.researchga...
MATLAB CODE
********************************************************************
Tuning a PID Controller Using the Ziegler-Nichols Method | MATLAB code available
s=tf('s');
sys=1/(s^2+20*s+100)
figure
step(sys)
%---values obtained from step response of sys--%
K=0.01;
L=0.025;
T=0.3-L;
a=K*L/T;
Ti=2*L;
Td=L/2;
Kp=1.2/a;
Ki=Kp/Ti;
Kd=Kp*Td;
cont=pid(Kp,Ki,Kd)
figure
step(feedback(cont*sys,1))
I was strugling to start with the PID using matlab. But this helped a lot
😊
The funny thing is that when I try to optimize the PID parameters using the Meta-Tuner software for the transfer function shown in your video , it gives me the following optimal parameters:
Kp = 100000
Ki = 100000
Kd = 100000
for a simulation time of 0.9 seconds
The error is so so small with no over/undershooting .. You can check this controller setting and compare it with that of the Ziegler-Nichols method :)
Thank you.
😊
Thank you very much for the Video!!
My pleasure
thanks for the video
Thank u soo much sir
Dang thanks
Hi! Can I use Ziegler-Nichols Method via Matlab Simulink?
very nice! but in the end the steady state value is way different in the begining it's 0.01 and then becomes one, why is that, how can we fix it?
For a step input desired steady state response should be close to one with 2% tolerance band.
Because it has been implemented a regulator with an integrative component. The integrative component makes the steady state value equal to 1 if the input is a step.
Plz send the link of your reference paper to me.
Use the below-given link to download the reference paper
www.researchgate.net/profile/Marizan_Sulaiman/publication/311588630_GUI_Based_Control_System_Analysis_Using_PID_Controller_for_Education/links/584fbf7508ae4bc8993b3366/GUI-Based-Control-System-Analysis-Using-PID-Controller-for-Education.pdf
so how do you find Ti Td?
Svp
Comment trouver le gain ???
s'il vous plaît regarder la vidéo complète, tout est clairement expliqué
une autre vidéo similaire que vous pouvez trouver dans la playlist
Thumbs down. First ZN is an inferior method for tuning a system. Second, you make it easy by choosing an easy plat with two real poles at -10 and no dead time.