0% found this document useful (0 votes)
35 views

'Unit Step Response' 'Pi - 1 Controller' 'Pi - 2controller' 'Pi - 3controller' 'Pid - 1 Controller' 'Pid - 2 Controller' 'Pid - 3 Controller'

This document analyzes the step response of a plant using various PID controllers. It first shows the step response of the plant alone. It then models three PI controllers with increasing Kp and Ki values and plots the step response of each. Finally, it models three PID controllers with the same Kp and Ki but increasing Kd values and plots the step response of each to compare their performance.

Uploaded by

sabbir hossain
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

'Unit Step Response' 'Pi - 1 Controller' 'Pi - 2controller' 'Pi - 3controller' 'Pid - 1 Controller' 'Pid - 2 Controller' 'Pid - 3 Controller'

This document analyzes the step response of a plant using various PID controllers. It first shows the step response of the plant alone. It then models three PI controllers with increasing Kp and Ki values and plots the step response of each. Finally, it models three PID controllers with the same Kp and Ki but increasing Kd values and plots the step response of each to compare their performance.

Uploaded by

sabbir hossain
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

%% Unit step of G_p

t=0:0.01:3;
G_p=tf([400],[1 48.5]);figure(1);
%step(G_p);
%% using pi controller
% % Kp = 2;ki=0.2;
t=0:0.01:3;
pi_1=tf([800 80],[1 48.5 800 80]);figure(1);
% step(pi_1);
%% using pi controller
% % Kp = 10;ki=1;
t=0:0.01:3;
pi_2=tf([4000 400],[1 48.5 4000 400]);figure(1);
%step(pi_2);
%% using pi controller
% % Kp = 100;ki=10;
t=0:0.01:3;
pi_3=tf([40000 4000],[1 48.5 40000 4000]);figure(1);
%step(pi_3);
%% using pid controller
%kp=100;ki=10;kd=0.1;
t=0:0.01:3;
pid_1=tf([40 40000 4000],[1 88.5 40000 4000]);figure(1);
%step(pid_1);
%% using pid controller
%kp=100;ki=10;kd=0.9;
t=0:0.01:3;
pid_2=tf([360 40000 4000],[1 408.5 40000 4000]);figure(1);
%step(pid_2);
%% using pid controller
%kp=100;ki=10;kd=2;
t=0:0.01:3;
pid_3=tf([800 40000 4000],[1 848.5 40000 4000]);figure(1);
%step(pid_3);
subplot(331);step(G_p,t);title('unit step response');
subplot(332);step(pi_1,t);title('pi_1 controller');
subplot(333);step(pi_2,t);title('pi_2controller');
subplot(334);step(pi_3,t);title('pi_3controller');
subplot(335);step(pid_1,t);title('pid_1 controller');
subplot(336);step(pid_2,t);title('pid_2 controller');
subplot(337);step(pid_3,t);title('pid_3 controller');

You might also like