Far Naz 2015
Far Naz 2015
Far Naz 2015
18-20,2015,Sri Lanka
Abstract- Electromagnetic torque of a DC motor can be It can be measured directly by a torque sensor attached to
measured directly by a torque sensor attached to the shaft. the shaft. However, this is an expensive solution requiring
However, this is an expensive solution requiring additional additional power and interfacing. In addition, sometimes the
power, interfacing and sometimes such a torque sensor can be too
torque sensor can be too bulky to be implemented for certain
bulky to be implemented in a compact environment.
applications.
Alternatively, the armature current measurement can be used to
derive the electromagnetic torque of the DC motor, provided the Another alternative would be to use a current sensor to
motor torque constant is known and does not vary over the time.
measure the armature current and use the simple linear
In addition, this method also needs an additional current sensor
relationship to find the electromagnetic torque. Requiring an
and its integration circuits. However, in general, DC servo
additional current sensor and its integration are the drawbacks
motors are equipped with either absolute or incremental encoder
connected to the shaft. This can be used to estimate the torque
of this approach. In addition, the torque constant can vary
without any additional sensor. with time and therefore requires correction [1]. The most cost
effective approach would be to use the existing shaft
In this paper, a method to estimate the electromagnetic connected position encoder or the tacho-generator feedback
torque of a DC servo motor in real-time is proposed using the and use an estimation technique to fmd the electromagnetic
shaft speed which is derived using the position from the encoder torque of the DC motor.
and the supply voltage measurement to the motor. The dynamic
equations of the linearized DC motor have been used to derive In this study, we propose a method to estimate the
the State Space model. The motor parameters have been obtained electromagnetic torque of a DC motor using the speed
experimentally through a system identification. The identified measurement and the input voltage measurement in real-time.
model is used in the closed loop observer design, where the motor For the input voltage measurement, a simple voltage divider is
speed and electromagnetic torque are the selected states. The used
observer is used to estimate the electromagnetic torque.
A Fuzzy control together with a PID control has been used
A Kalman filter has been used to reduce the estimation errors in [2] to estimate the torque, which performs better than a PID
caused by the presence of process noise and plant noise In controller alone. However this method is not simple to
™
addition to the simulation studies using MATLAB , both the implement in a single microprocessor. Sliding mode observer
closed loop observer and the Kalman filter have been based methods have been used together with extended Kalman
experimentally verified using a DC motor test rig which can filter for electromagnetic torque estimation of nonlinear
easily be replaced with a single microprocessor in the future. brushless DC motors [3] and induction motors [4],[6], which
hints the possible directions this work can be extended.
Keywords- Closed loop observer, DC motor, Kalman filter,
Torque estimation. A sensorless safety power window control system
consisting of a DC motor in an automotive application where a
I. INTRODUCTION Kalman filter is used to estimate the electromagnetic torque can
Despite the introduction of attractive AC motor substitutes, be found in [5]. Optimal feedback control of DC motors using
the DC motor still remains popular among control, robotics and speed and torque feedback can be found in [7].
automation community as an ideal solution for precise control This paper is organized as follows: Section II presents the
using simple controller and simple power electronics. It has a modeling of the DC motor in state space with torque and speed
wide range of applications in automotive, aerospace, material as states and it also gives the closed loop observer design and
processing, manufacturing, etc., industries as well as precise Kalman filter design. The section III describes the
instrumentation. implementation of the torque estimators both in simulations
Typically the DC motor is used for position servo, velocity and hardware. Results have been presented in Section IV and
servo, or torque control applications. Depending on the target the paper is concluded with proposed future work in Section V.
application, the DC motors for control, robotics and automation
II. MODELLING AND DESIGN
applications have been equipped with shaft connected encoder
for position feedback or a tacho-generator for velocity This section presents the modeling details of the motor and
feedback. For torque control applications and fast and precise the design of the closed loop observer Kalman filter for the
state feedback control, it is required to measure the servo motor.
electromagnetic torque of the DC motor.
0] [��;)] 0] [���]
La - armature inductance (H);
Ra - armature resistance (0); +
yet) = [1 [0 (7)
oYt) - motor shaft speed (rad/s);
ia(t) - armature current (A);
Tnlt) - motor electromagnetic torque (Nm);
C. Closed loop Observer design
Tdt) - load torque (Nm);
Em - viscous friction coefficient (kgm2/s); Since the observer is implemented digitally, its design has
Jm - rotor inertia (kgm2). also been carried out in the discrete domain. The state space
model in Section II-B can be discretized with sampling period
h as in (8) and (9);
.�
J � "-�� w
y[k] Cx[k] + Du[k], (9)
Tm(!)
=
Jm :' y[k} is the discrete output vector; u[k} is the discrete input
0------' Bm ' vector. QJ and r can be obtained by (10) and (11).
(10)
Fig 1 DC motor schematic diagram
r = foh eAS Bds (11)
[
It is assumed that (a) symmetrical armature winding is
present, (b) there is no magnetic saturation, (c) hysteresis and where
eddy current losses are zero, (d) air-gap is uniform, (e) mutual B �
m
1 [
inductance is negligible, and (f) armature reaction is 0
negligible. Hence the linear model of the motor can be A -
- _
Jm
Ke·Kt _
Jm
Ra '
B =
Kt
electromotive constant and motor torque constant. Substituting For the above discrete time system, a closed loop observer
(2) and (3) in (1) yield equation (4). Applying Newton's second with discrete observer state i and the closed loop observer gain
law of motion to the rotational motion of the motor gives matrix L can be designed as in (12) and (13).
equation (5).
i[k + 1] <1>i[k] + ru[k] + L (y[k] - Ci[k]) (12)
ia t
=
Hence the armature current measurement is eliminated x[k + 1] = (<1> - LC)x[k]. (15)
from the dynamic equations. This leads to the derivation of the
state space, where the speed oYt) and the electromagnetic To make observer error dynamics to be stable, the
torque Tnlt) will be the states. eigenvalues of should be located within the unit circle of the
B. State space model of the DC servo motor complex plane. Value of observer gain matrix L have been
calculated from the pole placement technique such that the
By selecting the states as above, the supply voltage and the
error dynamics are a decade faster than the system, so that the
load torque as the inputs and the speed as the output, the
derived linearized model equations of the DC motor can be transient response will be smooth. The software
used to obtain the state space model as given in equation (6) implementation of the observer using Simulink™ blocks is
and (7). shown in Fig. 2.
188
2015 IEEE 10th International Conference on Industrial and Information Systems,ICIIS 2015, Dec. 18-20,2015,Sri Lanka
X'[k)
SPEED 1
TL
SPEE D
1
L
Fig. 2 Simulink model of the closed loop observer
D. Kalmanfilter design
In the presence of plant noise 1J[k] and measurement noise
v[k], the discrete time state space of the DC servo motor plant
gets modified as in (16) and (17).
x[k + 1] ctJx[k] + ru[k] + T][k]
= (16)
y[k] = Cx[k] + Du[k] + v[k] (17)
The Kalman filter has two steps as Predictor step and
Corrector step. Accordingly the Kalman filter algorithm for
the above system can be obtained as in (18) - (22). Fig 3 Simulink model of the Kalman filter
189
2015 IEEE 10th International Conference on Industrial and Information Systems,ICIIS 2015, Dec. 18-20,2015,Sri Lanka
PWMCapture
accurate than the one using the closed loop observer.
190
2015 IEEE 10th International Conference on Industrial and Information Systems,ICIIS 2015, Dec. 18-20,2015,Sri Lanka
-- Measured
-- Estimated: Closed Loop Observer
0.1
0.25
-- Estimated: Kalman Filter
0.2
E
j
z
0.15
>-
0.1
1
-D , 0L------'------L---..J.,------!--'-----..J.1
- O,------"
-- 12
2 4 6 10 12 14 16 18 20 Time (s)
Time (s) .
Fig. 10 Comparison of the error between estimated torque and actual torque
Fig. 8 Estimated torque using closed loop observer and Kalman filter.
0.6
0 .4
90
� 0 2.
80 00
:a
� 0
70
� �2
�
60
t �4.
]; 'C
I
50
"""
"
� �6
� 40 ID
C.
(() If) 8
�.
30
20
·1 2.
10
-- Estimated: Kalman Filter 6 10 12
0 Time (5)
0 2 4 6 10 12 14 16 18 20
Time (s)
Fig. II Comparison of the error between estimated speed actual speed
Fig. 9 Comparison of the actual speed with the estimated speed using closed
loop observer speed and Kalman filter.
Similarly the estimation error of the Kalman filter has been
calculated using difference between the estimated speed by
Fig 10 shows the comparison of the calculated error of the Kalman filter and actual speed evaluated as in the previous
Closed Loop Observer (blue), and the Kalman filter (red) case. It can be observed that the speed estimation error of the
respectively. The error of Closed Loop Observer estimation Closed Loop Observer is higher in presence of plant noise and
has been calculated taking the difference between the torque measurement noise. On the other hand, the Kalman filter
estimated using the Closed Loop Observer and torque estimates the speed more accurately.
measured using the current sensor arrangement. Similarly the
error of the Kalman filter estimation has been calculated using v. CONCLUSIONS AND FUTURE WORK
difference between the estimated torque by Kalman filter and A closed loop observer is used to estimate the
the torque measured using the current sensor arrangement. It electromagnetic torque of a DC servo motor using the velocity
can be observed that the torque estimation error of the Closed feedback and the input voltage, which replaces the need of a
Loop Observer is higher in presence the of plant noise and
bulky shaft connected torque sensor or a current sensor with
measurement noise. On the other hand, the Kahnan filter
additional interfacing electronics.
estimates the electromagnetic toque more accurately in
The estimation process is vulnerable to plant and
presence of plant noise and measurement noise. Fig 11 shows
measurement noise. Therefore a Kalman filter has been
the comparison of the calculated error of the Closed Loop
Observer (blue), and the Kahnan filter (red) respectively. The introduced to avoid estimation errors due to noise. Both
estimation error of Closed Loop Observer has been calculated solutions provide torque estimates sufficient for torque
by taking the difference between the estimated speed by Closed feedback and torque control applications.
Loop Observer and actual speed evaluated using the shaft Since the estimation algorithms are simple, they will be
encoder. implemented in a single microprocessor in the future, which is
191
2015 IEEE 10th International Conference on Industrial and Information Systems,ICIIS 2015, Dec. 18-20,2015,Sri Lanka
proposed to be integrated to the DC motor, so that the servo Applications, IEEE Transactions on , voL42, no.5, pp.1275,1283, Sept.
Oct. 2006
motor with velocity feedback comes with torque feedback
[4] Pai, D.; Mangsuli, P.R.; Rao, N.J., "Nonlinear observer based sensorless
with minimum additional cost.
direct torque control of induction motor," Power Electronics and Motion
Control Conference, 2000. Proceedings. IPEMC 2000. The Third
ACKNOWLEDGMENT International , yoU, no., pp.440,445 yoU, 2000
The authors would like to thank the Dept. of Electrical and [ 5] Jung Hoon Park; Ga Hyung Choi; Tae Sung Yoon; Jin Bae Park, "A
Electronic Engineering, Faculty of Engineering University of sensorless safety power window control system in automotive
application," Control, Automation and Systems, 2008. ICCAS 2008.
Peradeniya, Sri Lanka for facilitating this project. International Conference on , vol., no., pp.1457,1461, 14-17 Oct. 2008
[ 6] Pai A, D.; Umanand, L.; Rao, N.J., "Direct torque control of induction
REFERENCES
motor with extended Kalman filter," Power Electronics and Motion
Control Conference, 2000. Proceedings. IPEMC 2000. The Third
Je-Wook Park; Seon-Hwan Hwang; Jang-Mok Kim, "Sensorless Control International , yoU, no., pp.132,137 yoU, 2000
[I]
of Brushless DC Motors With Torque Constant Estimation for Home [7] Jiang, J.-P.; Chen, S.; Sinha, P.K., "Optimal feedback control of direct
Appliances," Industry Applications, IEEE Transactions on , voL48, no.2, current motors," Industrial Electronics, IEEE Transactions on , voL37,
pp.677,684, March-April 2012 no.4, pp.269,274, Aug 1990
[2 ] Liem, D.T.; Ahn, K.K., "DC motor parameters identification and [8] Modern Control Engineering; Katsuhiko Ogata; Fifth Edition; Prentice
sensorless torque estimation using Fuzzy PID," Control, Automation and Hall, 201O.
Systems (ICCAS), 2012 12th International Conference on , vol., no., [9] Control Systems Principles and Design; M. Gopal; Second Edition; Tata
pp.76,81, l7-21 Oct. 2012 McGraw-Hili Education, 2002.
[3] Yong Liu; Zi Qiang Zhu; Howe, D., "Instantaneous Torque Estimation [10] MathWorks; Control System Design and Analysis in Simulink;
in Sensorless Direct-Torque-Controlled Brushless DC Motors," Industry http://in.mathworks.com/products/simcontrol/features.html#control
system-design-and-analysis-in-Simulink (accessed: 02/03/2015).
192