
Choose the standsrd values of resistor to be R = 1.1 k Omh
R1 = 1.1 k Omhs
R2 = 3.6 k Ohms
C = 390 nF
to satisfy the requirements by the controller Kp and Ki
Using Op-Amps, design a circuit to have the following transfer function: H (s) = Kps + Ki Where Kp 3.12, Ki 2346. a) b) c) Construct the s-domain circuit of the controller. Find the voltage the c...
Question:
CODE:
>> %% PID controller design
Kp = 65.2861;
Ki = 146.8418;
Kd = 4.0444;
Gc = pid(Kp,Ki,Kd);
% close-loop TF
T = feedback(G*Gc,1);
%% checking the design obejective
a_pid = stepinfo(T);
% Settling Time
tp_pid = a_pid.SettlingTime
% Overshhot
OS_pid = a_pid.Overshoot
%% steady-state error
[yout_pid,tout_pid] = lsim(T,stepInput,t);
% steady-state error
ess_pid = stepInput(end) - yout_pid(end);
>> %% Effect of P in G
Kp = 65.2861;
Ki = 0;
Kd = 0;
Gc = pid(Kp,Ki,Kd);
% close-loop TF...