Title: Controls Lecture 2
1ME4053
Controls Lecture 2
Control of a DC Motor
Dr. Ferri
22nd-order DC Motor Model
where
3Proportional Control (P-control)
Q
R
E
M
Kp
error
actuator
with P-control, m(t) Kp e(t)
open-loop transfer function
closed-loop transfer function
4Closed-loop poles roots of denominator of
cl-transfer function
Compare characteristic equation with standard form
See that
and
5Root Locus
Imag
Real
-1/Tm
6Root Locus
Imag
Closed-loop pole locations
K 0
Real
-1/Tm
7Root Locus
Imag
K 0.1/Tm
Real
-1/2Tm
-1/Tm
8Root Locus
Imag
K 0.2/Tm
Real
-1/2Tm
-1/Tm
9Root Locus
Imag
K 0.25/Tm
Real
-1/2Tm
-1/Tm
10Root Locus
Imag
K 0.4/Tm
Real
-1/Tm
-1/2Tm
11Root Locus
Imag
K 0.5/Tm
45O
Real
-1/Tm
-1/2Tm
12Root Locus
Imag
Real
-1/Tm
-1/2Tm
13Unit Step Response, dependence on proportional
gain
Tm 1 sec
q
Time
14Time-domain performance specifications
unit step response
Mp max overshoot
q
/- 2 of qss
t
ts , settling time
tr , rise time
15Settling time
(usually conservative)
Max overshoot
Mp
z
16Performance Specifications
5 max percent overshoot, Mp 0.05
But, Mp depends only on z
Mp
z
17ts 4t
2nd performance specification ts 2.5 sec
What is the time constant of a second-order
underdamped system?
for impulsive input, r(t) d(t), R1
-1
Time constant corresponds to
18Specifying z and ts (or z and t) completely
determines the cl poles
Imag
see that specifying z and t locates cl pole
wd
f
z sin(f)
wn
Real
-zwn -1/t
19Root Locus with P-control
Imag
line of constant z
desired cl pole locations
-1/Tm
Real
line of constant t
-1/2Tm
20Root Locus with P-control
Imag
See that we can satisfy the z (or Mp )
requirement, but not the time-constant (or ts)
requirement with P-control alone
line of constant z
desired cl pole locations
-1/Tm
Real
line of constant t
-1/2Tm
21Proportional plus Derivative Control (PD-control)
Q
R
E
M
error
actuator
with PD-control,
.
high e is corrected with Kd
e
t
high e is corrected with Kp
PD anticipates large future error
22Open-loop transfer function
Closed-loop transfer function
See that
and
PD design procedure
23PD Root Locus
Zero at
OL TF
Imag
zd
Desired pole location
-1/td
Real
z
-1/Tm
24PD Root Locus
Zero at
OL TF
Imag
zd
Desired pole location
-1/td
Real
z
-1/Tm
Move zero left or right to make the root
locus pass through the desired cl pole location
25PD Root Locus
Zero at
OL TF
Imag
zd
-1/td
Real
z
-1/Tm
26See that with PD-Control, we can attain both the
desired z and the desired ts, but the relation
between z and Mp is now different. Why?
Closed-loop transfer function
This is NOT the standard 2nd-order form because
of the zero in the numerator
27(No Transcript)
28(No Transcript)
29Actual percent-overshoot vs z for a PD-controller
Note that, even though the Kp and Kd gains put
the cl-poles in the correct location, the
overshoot is higher, and gets worse as the
damping ratio gets larger.
30Implementation issues of PD-control
Pure derivative is not a good idea because of
noise. Instead of
use
Approximates a pure derivative at low frequencies
(below p rad/s) then levels off so that
high-frequency noise is not amplified
20db/dec
90O
Phase
Mag
0O
Log frequency
Log frequency
31Effect of p
u
Objective is for y to be the derivative of u
y
.
.
What if u is a noisy sinewave? u sin(10t)n,
u 10cos(10t)n
32With p 5, the output looks sinusoidal, but the
magnitude is way off
33With p 25, the output looks like a reasonable
approx of the derivative of u
34With p 250, the noise has been intensified too
much
35The problem is more difficult when the signal
that you want to measure has several
frequencies, like
u sin(10t) 0.5cos(20t) - 0.5sin(30t)
36Now, corrupt the signal with some noise
37PD-Control Step Response
See that as p increases, the overshoot goes
down, meaning that the controller looks more
like a true PD controller
However, as p increases, cl-system is more
sensitive to noise
38Effect of Derivative Modification
Effective controller is
This is the form of a lead-compensator. In
general, when people say they are using
PD-control, they are really using
Lead-Compensation.
Design option place the lead-compensator zero
right On top of the plant pole put the new pole
whereever needed to get the desired root-locus
controller pole/zero
original plant poles
39desired cl-pole locations
One advantage of this design option is that the
cl-transfer function no longer has a zero. Thus,
the attained overshoot is exactly the one
predicted by the formula
40Proportional plus Derivative plus Integral
Control (PID-control)
Q
R
E
M
error
actuator
with PID-control,
Low but nonzero steady-state error
e
t
As time grows, integral of error increases,
causing m(t) to grow
41Open-loop transfer function
Closed-loop transfer function
Compare with the following third-order form
Choose s, then equate coefficients of powers of s
in the denominators of each expression for Gcl
to get 3 equations for Kp, Kd, and Ki
42How do we choose s?
Imag
Desired cl pole locations
-zwn
Real
-s
s nzwn
Choose n to be around 5 so that system appears to
have 2nd-order characteristics
43PID Gains
n your choice
44Experimental Setup
45Linear Simulink Model
46Nonlinear Simulink Model
X
47Dead Zone
Saturation
48Dead Zone
Positive when input gt VH
1 or -1
Negative when input lt VL
VH
VL
49MATLAB Dead Zone
Experimental Dead Zone
out
out
Lower Limit
Lower Limit
in
in
Upper Limit
Upper Limit
50Alternative Nonlinear Simulink Model
51If your Simulink model runs
very slowly. . .
- Try using the alternative dead zone model
- Try using a different ODE solver
- ODE45
- ODE23
- ODE113
- If all else fails Make a small change in your
gains
52(No Transcript)
53Guidance for Controls 2 Reports
- Discuss the results of the qualitative
investigation of the P, I and D controllers - Compare the linear and nonlinear SIMULINK models
with experimental results - When you compare with a theoretical result you
must show where the theoretical result comes from
i.e . the equation or the model. - Data must support your conclusions
- Make your own sketch of the experiment