Optimal State Space Control DC Motor
Optimal State Space Control DC Motor
Abstract:
In comparison to classical cascade control architecture of DC motors, the state feedback control
offers advantages in terms of design complexity, hardware realization and adaptivity. This
paper presents a methodic approach to state space control of a DC motor. The state space
model identified from experimental data provides the basis for a linear quadratic regulator
(LQR) design. The state feedback linear control is augmented with a feedforward control for
compensation of Coulomb friction. The controller is successfully applied and the closed loop
behavior is evaluated on the experimental testbed under various reference signals.
Keywords: model-based control; LQR control method, motor control; state-space models;
feedforward compensation
ISE current
Km i(t) = J + Kd ω(t) + τl + τf , (2) 9.6
dt
9.4
where Km , Ke and Kd denote the motor torque, the back- 9.2
EMF and the damping constants. J denotes the mechan-
ical inertia including the motor armature and shaft. L 9
and Rm represent the inductance and the total connection
8.8
resistance of the motor. The system load and friction are 12.542,6 12.542,7 12.542,8 12.542,9
ISE velocity
denoted by τl and τf .
However, for many applications this structure is not suffi- Fig. 1. Pareto-optimal compromises between ISE for cur-
cient. The main drawback of the linear state-space model rent and angular velocity
is a negligence of nonlinear effects, whose properties can
significantly affect the dynamic behavior of a modeled sys- 3. MODEL IDENTIFICATION
tem. To complete the representation of essential physical
phenomena effecting in the motor structure the frictional The signals for identification are generated from the open
nonlinearity must be included. loop step response of the DC motor at different ampli-
tudes. The identification yields the set of optimal parame-
ters that minimize the squared error between model output
2.2 System nonlinearity and data.
According to Paduart et al. (2006)) the linear state- Eω = (ω(t) − ω̂(t))2 dt
space model with a multivariable nonlinear input function (5)
f (x(t), u(t)) assumes the general form: Ei = (i(t) − î(t))2 dt .
ẋ = A x + B u + H f (x, u) , (3)
As the model is linear in the unknown parameters, these
in which A is the system matrix, B is the input vector, and are identified by means of least squares. The remaining
the coupling vector H links the nonlinearity with the linear choice is the trade-off between the two errors. This trade-
part. In context of permanent magnet DC motor Coulomb off is specified by their relative weight w in
friction constitutes the major source of nonlinear behavior E = wEω + (1 − w)Ei . (6)
(Knudsen and Jensen (1995)). Additional nonlinearities
emerge from the inhomogeneity of the stator magnetic In the context of state feedback control the model should
field and transfer characteristics of the amplifier and IO not only reflect the input-output behavior but also accu-
elements as well as motor cogging and ripple effects (see rately describe the dynamics of internal states, in our case
Proca et al. (2003)). the motor current.
Tjahjowidodo et al. (2005) describe advanced friction mod- Fig. 1 visualizes the set of pareto-optimal solutions ob-
els which introduce auxiliary internal states to capture tained from variations of the weight w ∈ [0, 1]. The squared
friction dynamics. As these auxiliary states are not observ- error in the angular velocity is rather insensitive to pa-
able customized identification techniques are required for rameter variations as the stick slip effect at low velocities
the identification of their associated parameters. For many causes an oscillation in the angular velocity (see upper left
applications a static friction model that includes Coulomb graph in Fig. 2) not captured by the model. This deviation
and viscous parts suffices to capture the main frictional causes a large offset in squared error compared which the
phenomena. residual error contributions in the rising edge and steady
state are negligible. The compromise solution is marked
The linear viscous friction is already comprehended in the
by an arrow in Fig. 1.
damping term in equation (2). Considering the nonlinear
Coulomb friction which depends on the rotation direction The actual step responses are compared with the model
and introducing the state vector x = [i, ω]T results in: output in Fig. 2 for a subset of six out of sixteen signals
R m Ke
taken into account for identification. The graphs show
1 0
− − that the identified parameters correctly capture the steady
ẋ = L L x + L u +
Fc sgn(x2 ) (4) state behavior as well as the characteristic time constants
Km Kd −
− 0 J in the rising edge. The oscillatory behavior at low fre-
J J quencies does not correspond to an eigen frequency of the
system but merely reflects the variation of friction during
in which Fc denotes the Coulomb friction coefficient. The
a complete rotation of the motor shaft.
overall model has six independent parameters, of which
the inductance L = 25 × 10−6 H is obtained from the The identified parameters are listed in Table 1 and com-
manufacturer datasheet and the remaining five parameters pared with the nominal values provided by the manufac-
are identified from experimental data. turer. The differences between the nominal and the iden-
5797
17th IFAC World Congress (IFAC'08)
Seoul, Korea, July 6-11, 2008
The weight matrices are specified such that the closed loop
system is able to track the reference signal with a control
signal that does not significant violates the saturated
actuator limits. For a fixed weight matrix Q, the control
penalty R is chosen such that for the maximum state error,
the feedback control signal
u = −Kx + V ωr (10)
J= (7)
friction gain Kf 1.06
0
feedforward gain V 0.3166
in which Q and R are symmetric, positive semi-definite feedback gain Ki 0.0984
respectively positive definite weight matrices. The optimal feedback gain Kω 0.3003
feedback gain
feedback gain Kε −0.01
K = R−1 BT P , (8)
5798
17th IFAC World Congress (IFAC'08)
Seoul, Korea, July 6-11, 2008
The overall control law including feedforward compensa- The experimental testbed of the DC motor for identifica-
tion tion and control is shown in Fig. 5. The sample rate of
the real time controller onboard the host computer is 5
Kf sgn(ωr ), if |ωr | > σ
Γ= (16) kHz. The control signal uout with a range of ±5 V applied
ω
Kf r , else to the DC motor is amplified. The motor is an AXEM
σ DC servo motor with a shrunk-on-disk rotor, F9M2 with
becomes rated power output of 63 W and rated speed 3000 r.p.m.
(=314.1593 rad/s).
x 1
u = −[Ki,ω Kε ] + [Γ V ] , (17)
ε ωr
5799
17th IFAC World Congress (IFAC'08)
Seoul, Korea, July 6-11, 2008
30
a)
0 20
10
−100
current (A)
0
−200 −10
30
b)
0 25 actual
simulation
20
−100
current (A)
15
−200 10
0 0.5 1 1.5 2 5
time (s)
250 0
c)
−5
200 0.4 0.5 0.6 0.7 0.8
time (s)
velocity (rad/s)
150
Fig. 8. Model predicted and measured motor current by
100 the stair shaped reference signal a) and zoom in of
motor current b)
50 closed loop
open loop 6. CONCLUSIONS
0
0.2 0.25 0.3 0.35 0.4
This paper proposes a novel approach to control design
time (s) of a DC servomotor based on system identification and
LQR control design. The feedback controller is augmented
Fig. 6. Experimental results: a) stair shaped signal, b) with a feed-forward friction compensation. The mechanical
sinusoidal signal, c) step response of the open and and electrical parameters of the DC motor are identified
closed loops from the open loop responses with respect to motor current
and angular velocity. The LQR design provides an optimal
state feedback control minimizes the quadratic state error
50 −150
actual and control effort. The auxiliary integral error state and
40 −160
simulation
reference
feedforward compensation of the nonlinear friction reduce
velocity (rad/s)
velocity (rad/s)
30 −170
the residual error across the entire range of reference veloc-
ities. The experimental results demonstrate the feasibility
20
actual
−180 of the controller design for high precision servo applica-
10 simulation −190 tions. The proposed method is well suited for the controller
reference
design of highly dynamic DC motors. Future research is
0 −200
concerned with the design of adaptive controllers to han-
1.59 1.6 1.61 1.62 1.63 1.64 1.45 1.5 1.55 1.6
time (s) time (s) dle variations of load and the identification of periodical
disturbances and advanced friction models.
Fig. 7. Zoom in of angular velocity
ACKNOWLEDGEMENTS
responses. The current peaks in case of abrupt changes in
reference velocities causing large state errors. The actual The authors are grateful to the Kübler GmbH company
peak currents are about two to three times larger than the for providing the sensor. We also thank Heiko Preckwinkel
predicted ones whereas the steady state currents match. for controller implementation and experiments.
We assume that the excess in peak currents is explained
by the initial breakaway force (static friction) that the REFERENCES
motor has to overcome. Nevertheless, these peaks are not B. D. O. Anderson and J. B. Moore. Optimal Control:
critical as the maximal allowed motor current of 60 A is not Linear Quadratic Methods. Dover Publications, 2007.
5800
17th IFAC World Congress (IFAC'08)
Seoul, Korea, July 6-11, 2008
5801