Lab2 PDF
Lab2 PDF
Introduction to Simulink
(Implementing PD controller)
Report
ME Department
1|Page
CONTROL LABORATORY Friday, 03, 27, 2019
Abstract
Controlling mechanical mass-spring-damper system with step force input and displacement
output using PD controller. The system is represented by two masses vertically connected
with two dampers, and one spring connected vertically to the first block. the open loop system
is represented by the blocks connected with dampers only and no springs. the spring provide
the feedback in the model.
2|Page
CONTROL LABORATORY Friday, 03, 27, 2019
Results
• By hand
3|Page
CONTROL LABORATORY Friday, 03, 27, 2019
• Using Matlab
for m=1 , b=0.1 , k=0.5 , step size of 0.1 , step input=1
Figure 1
The response of this open loop system (as we can see in Figure 1) is unstable
4|Page
CONTROL LABORATORY Friday, 03, 27, 2019
Figure 2
The response of this closed loop system (as we can see in Figure 2) is stable, but as we can see
that the overshoot percentage and the steady state error are very high.
The steady state of the system is 2. The steady state error approximately is 100% and the
overshoot percentage approximately is 260% with approximately
ess=((2-1)/1)*100=100
peak overshoot value of 3.6
PO=((3.6-1)/1)*100=260
5|Page
CONTROL LABORATORY Friday, 03, 27, 2019
Using PD controller we can reduce the overshoot percentage and the steady state error, we
connected the PD controller In the block diagram as shown in Figure 3
Figure 3
I adjust the controller gains such that there is a negligible overshoot and settling time of about 10
seconds using manual tuning for the PD controller and I ended up with kD=30 and kP=10.
6|Page