Ece206 Mini Project Pd-Picontroller Design
Ece206 Mini Project Pd-Picontroller Design
______________________________________________________________________
(1) Up to 2 students per group
(2) Follow the description in the handout to complete the project.
(3) No sharing of MATLAB codes and SIMULINK models with other groups. Your
work won’t be graded without independent work statement in your report.
______________________________________________________________________
Design description:
5 s +5
An open loop system is described by H ( s )= 2 .
s + 2 s+5
(1) Design a compensator feedback system using the PD control G( s)=K p + K d s .
Construct the SIMULINK model above and obtain the unit step response of the
closed-loop system. Search for admissible P and D gains to reduce the overshoot
in the unit step response to less than 10 % of the steady state value and settling
time to be no greater than 2 seconds. Validate your design in Simulink.
figure(1)
plot(closed_loop.time, open_loop.signals.values, 'r', closed_loop.time,
closed_loop.signals.values, 'b')
grid, title('open and closed loop system responses – PD control'),
xlabel('time in seconds')
legend('open loop system response', 'closed loop system response')
Simulink model name : open_loop_closed_loop_control_PD.slx
1.6
1.4
1.2
0.8
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7 8
time in seconds
clear all
close all
Kp = 1; % proportional gain
Kd = 0.5; % derivative gain
1.4
1.3
1.2
1.1
0.9
0 2 4 6 8 10
time in seconds
KI
(2) Design a compensator feedback system using the PI control G(s)=K p + .
s
Search for admissible P and I gains to reduce the overshoot in the unit step
response to less than 10 % of the steady state value and settling time to be no
greater than 2 seconds. Validate your design in Simulink. Worked independently
open and closed loop system responses
2
open loop system response
1.8 closed loop system response - PI control
1.6
1.4
1.2
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25
time in seconds