Professional Documents
Culture Documents
Email: eng00176@nus.edu.sg
r=1 u y
D(s) G(s)
+
-
M p % < 5%
t s < 2ms
(where the input is a step reference of 1 micrometer)
Generally speaking, to design a controller by using estimator, the procedure is quite
1. Step One
Determine the desired closed-loop pole locations from the given specifications.
The settling time is less than 2 milliseconds, and the maximum overshoot is less
than 5%. Read from the relationship diagram of Mp% vs. ?, we get
ζ = 0.7
Hence,
4 .6
ts ≅
ζω n
4 .6 4.6
⇒ωn ≅ = = 4381
ζt s 0 .7 × 1 .5 × 10 −3
1
The corresponding pole s in the z domain are
PZ (1 ,2 ) = 0 .7148 ± j 0 .1749
2. Step Two
Find the state feedback gain F such that the eigenvalues of A-BF coincides with
the desired pole locations obtained in the first step.
6 × 10 7
Discretize the plant G( s) = by zero-order-hold, and we can get
s2
0.3z + 0.3
G( z ) =
z 2 − 2z +1
Convert this transfer function into state space representation,
x(k + 1) = Ax ( k ) + Bu (k )
y(k ) = Cx( k) + Du( k )
where,
2 − 1
A=
1 0
1
B=
0
C = [0 .3 0 .3]
D = [0 ]
0.7148 + j 0.1749
PDesired =
0.7148 − j 0.1749
In MatLab, there is one function called acker(), which is short for Pole Placement
Gain Selection Using Ackermann's Formula , can calculate the feedback gain
Hence ,
F = ac ker( A, B , PDesired)
2
This gives,
F = [0.5704 − 0.4585]
3. Step Three
Hence,
J = 0.1865
4. Step Four
Find the estimator gain K such that the eigenvalues of A-KC are in pre-specified
locations (or place all at 0 otherwise to yield a deadbeat estimator).
Use the same method as what we have done in step two. Define the pre-specified
0
PEstimator =
0
So,
This gives,
4.1667
K =
2.5000
5. Step Five
3
6. Step Six
Construct the controller in state space form,
ˆ r (k )
xˆ( k + 1) = Axˆ(k ) + Bˆ
y (k )
yˆ(k ) = Cˆxˆ(k ) + Dˆ r( k )
y ( k )
Fig. 3: Ste p response in discrete-time domain Fig. 4: Ste p response in continuous-time domain
M p % ≅ 4% < 5%
t s = 1.7ms < 2ms
4
Comparisons among the three linear controller design methods
Advantages Disadvantages
PID compensator The same as PID controller l The same as PID controller
(They are the same.) l Require more computation
computation
5
Appendix : M-File