Analog Control - 2nd Lab
Analog Control - 2nd Lab
Lab 2
The goal of this problem is to show how each of the terms Kp,
Ki and KD , contributes to obtaining the common goals of:
• Fast rise time
• Minimal overshoot
• Zero steady-state error
Let
m = 1 kg
b = 10 N s/m
k = 20 N/m
F=1N
Example Problem1: 13
What do you
notice?!
Example Problem1: 14
Proportional Control
Let the proportional gain (Kp) equal 300 and change the m-file
to the following:
Example Problem1: 15
Proportional Control
Let the proportional gain (Kp) equal 300 and change the m-file
to the following:
Example Problem1: 16
Proportional-Derivative Control
Let Kp equal 300 as before and let Kd equal 10.
Example Problem1: 17
Proportional-Integral Control
Let's reduce Kp to 30, and let Ki equal 70:
Example Problem1: 18
Proportional-Integral-Derivative Control
After several iterations of tuning, the gains Kp= 350, ki= 300,
and Kd= 50 provided the desired response.
General Tips for Designing a PID Controller 19
When you are designing a PID controller for a given system, follow the steps
shown below to obtain a desired response:
Performance specifications
1. Rise time < 5 s.
2. Overshoot < 10%.
3. Steady-state error < 2%.
Any Questions?!