Mohsin PID Controller Tutorial
Mohsin PID Controller Tutorial
m 10kg
m=Mass of Object
k 1
k=Spring Cofficient
b 1
b=Damping Cofficient
f=Input Force
x=Outpt Displacement
Solution
Approach to Solve the problem
F ma
input force f t
spring force kx t
damping force bx t
mx t f t kx t bx t
Taking LaplaceTransform
ms 2 X s F s kX s bsX ( s )
X s
F s
1
ms 2 bs k
TF
X s
F s
1
10 s 2 s 1
System: sys
Peak amplitude: 1.6
Overshoot (%): 60.4
At time (sec): 10.2
1.8
1.6
1.4
1.2
System: sys
Time (sec): 72.6
Amplitude: 1.02
Amplitude
1
System: sys
Final Value: 1
System: sys
Rise Time (sec): 3.69
0.8
0.6
0.4
0.2
20
40
60
Time (sec)
80
100
120
Controller TF K c s k p k d s
Plant TF G s
1
10 s 2 s 1
Closed LoopTF H s
Kc s G s
1 Kc s G s
kd s
10 s 2 kd 1 s k p 1
Gain Calculation
Compare with Standard 2nd Order System we will get
n 2
2
2
s 2n s n
kd 1
10
kp 1
2n
n
2
10
0.1 k p kd s
k 1 kp 1
s2 d
s
10 10
k p 1321
kd 183
1325 183s
H s
10 s 2 184 s 1322
8
ts
4.6
4.6
n
11.5
0.8*0.5
Closed-Loop Response
Step Response
1.4
System: sys
Peak amplitude: 1.18
Overshoot (%): 17.8
At time (sec): 0.186
1.2
System: sys
Settling Time (sec): 0.44
1
System: sys
Final Value: 0.999
System: sys
Rise Time (sec): 0.0707
Amplitude
0.8
0.6
0.4
0.2
0.1
0.2
0.3
Time (sec)
0.4
0.5
0.6
Analysis
Resulting Overshoot is 17% and the Settling time is 0.4 sec. so from
result it can be concluded that PD controller deals very well with the
settling time but a bit problem with overshoot but still it reduced from
the 60 % to 17 %
System Analysis
Practice Exercise
Change the Value of Gains and see the effect on the output.
See the effect of using proportional, derivative and integral controllers
individually and with different combinations.
See the effect of P, I and D controller effect on the different perimeters
like settling time, overshoot, rise time and steady state errors.