Lab 3
Lab 3
Deniz Erkan
Department of Electrical and Electronics Engineering, Bilkent University, 06800 Ankara, Turkey
1. Introduction
2. Laboratory Content
Figure 2: GM Calculation from Bode plot of G(s)
Part - 1: Margin Estimation
When Phase = 180°, w = 13 rad/sec. When w = 13 rad/sec,
1 𝐾𝑐 (𝑠 + 80)
𝐺𝑐 (𝑠) = ( ) Magnitude = -29.7.
(𝑠 + 𝜏𝐿𝑃𝐹 ) 𝑠 GM = | Magnitude | = 29.7
29.7 = 20 * log(Kf)
2 3
𝐾𝑐 = 𝐾 and 𝜏𝐿𝑃𝐹 = 𝜏 Kf = 30.55
𝑔 𝑝
1.
With fig.4, we can see that our plot calculation results are
similar to real values of margins.
4.
Figure 5: Step Response of the System when K = 10 For time delay = 0.01s:
For K = 20:
APPENDIX
%Part-1
Kg = 103.394;
Kc = 2 / Kg;
tau = 0.137;
tlpf = 3 / tau;
G1 = tf(1,[1 tlpf]);
G2 = tf([Kc 80*Kc],[1 0]);
Gc = G1 * G2;
Gp = tf(Kg,[1 7.299]);
Gpade = tf([-0.005,1],[0.005,1]);
G = Gc * Gp * Gpade ;
bode(G);
allmargin(G);
Figure 9: Step Response of the System when delay is 0.7 s
%Part -2
In fig.9 we see that the response of the system neither
%2.1
converges nor diverges. So, for time delay 0.7 s, system is
plot(out.velocity);
marginally stable.
%2.2
plot(out.velocity);
For time delay = 1s:
3. Conclusion