Modelling and Simulation in Engineering

Volume 2012 (2012), Article ID 189757, 5 pages

http://dx.doi.org/10.1155/2012/189757

## DC Motor Parameter Identification Using Speed Step Responses

Flight Control and Navigation Group, Rockwell Collins, Warrenton, VA 20187, USA

Received 8 April 2012; Revised 31 August 2012; Accepted 3 September 2012

Academic Editor: F. Gao

Copyright © 2012 Wei Wu. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

Based on the DC motor speed response measurement under a step voltage input, important motor parameters such as the electrical time constant, the mechanical time constant, and the friction can be estimated. A power series expansion of the motor speed response is presented, whose coefficients are related to the motor parameters. These coefficients can be easily computed using existing curve fitting methods. Experimental results are presented to demonstrate the application of this approach. In these experiments, the approach was readily implemented and gave more accurate estimates than conventional methods.

#### 1. Introduction

DC motors have wide applications in industrial control systems because they are easy to control and model. For analytical control system design and optimization, sometimes a precise model of the DC motor used in a control system may be needed. In this case, the values for reference of the motor parameters given in the motor specifications, usually provided by the motor manufacturer, may not be considered adequate, especially for cheaper DC motors which tend to have relatively large tolerances in their electrical and mechanical parameters. General system identification methods [1–4] can be applied to DC motor model identification. In particular, various methods have been applied to DC motor parameter identification; that is, [5, 6] used the algebraic identification method, [7] used the recursive least square method, [8] applied the inverse theory, [9] used the least square method, and [10] applied the moments method. Identified DC motor models are often subsequently used for controller design and/or optimization, for example, [6, 9, 11].

Without expensive testing apparatus and a long testing cycle, a quick and effective system identification approach based on the motor input and output is desirable and valuable, especially for the field applications and quick controller prototyping. In this paper, a DC motor parameter identification approach based on the Taylor series expansion of the motor speed response under a constant voltage input is presented. The relationships between the motor parameters and the coefficients of the Taylor series are established. In the implementation, the motor speed response under a constant voltage is sampled, then fit the samples to obtain the coefficients of power terms in the Taylor series. Then, the DC motor mechanical and electrical time constants, back-EMF, and the friction can be computed using these coefficients. With the knowledge of these parameters, a precise motor model is obtained for the subsequent controller design.

For application point of view, this approach requires only a speed/position sensor, such as an optical encoder, and a voltage power supply, no current measurement is needed and the motor is run in open loop; thus it is practical and cost effective. The curve fitting can be performed using many existing methods, such as the least square method, and these optimization methods are widely available in commercial computing packages such as Matlab and LabVIEW.

#### 2. Main Results

Consider the following DC motor governing equations: where is the motor speed, is the motor terminal voltage, is the winding current, is the back-EMF constant of the motor, is the torque constant, is the terminal resistance, is the terminal inductance, is the motor and load inertia, and is the disturbance torque. is a combination of the cogging torque, , the kinetic friction, , and the viscous friction (viscous damping force): where is the damping coefficient. According to (1), the velocity response in the Laplace domain is where is the electrical time constant, is the mechanical time constant, and is the Laplace variable.

Based on these equations, we would like to know , , , , and so forth, by measuring the velocity response under a known, controlled voltage input. In this paper, we consider two application situations: the first situation is that the disturbance torque is negligible, while in the second one, the disturbance needs to be considered.

##### 2.1. Estimation without the Disturbance Torque

When the voltage speed response dominates; for example, the input voltage is large, we can ignore the disturbance torque in the speed response see (3). In this case, we can consider the following DC motor model:

The transfer function can be factorized into where

*Assumption 2.1. *It is assumed here that there are two distinct real poles; that is, .

For a constant voltage input , the speed response is
where

Consider the three terms in the step response one at a time. is a step function in the time domain; both and are exponential functions in the time domain and can be expanded using the Taylor series. Expanding the term , we get
Expanding the term , we get

Combining the three terms together, we have the total speed response: where , , and .

According to (6), Thus, we have

The above equation allows us to calculate the mechanical and electrical time constants and using the coefficients of the power series in (11). These coefficients can be obtained by curve fitting the motor speed step response data using power functions.

##### 2.2. Estimation with the Disturbance Torque

Consider that the disturbance torque in the DC motor is not negligible. The disturbance transfer function is Disturbance torque generally consists of the cogging torque and the friction torque. The cogging torque is quite complicated and is not addressed here. Both the kinetic and viscous frictions are considered and are assumed to be constant on average under a constant motor speed.

Given a constant motor terminal voltage and the constant disturbance (ignore the cogging torque or consider the average cogging torque effect on speed over one revolution is zero) , the speed response is

As in the previous section, applying the partial fraction expansion of the step response in the Laplace domain, then expanding the exponential terms in the time domain using the Taylor series, we obtain the total step response in the time domain:

Based on these coefficients, we have and another equation for : Then, we can express the motor parameters as

In practice, fit the measured motor speed step response using power functions according to (16); then calculate the motor parameters using (19).

*Remark 1. *Another relationship useful for checking the algorithm is based on the steady-state response of (15), expressed by the following equation:
where and is the motor steady-state angular speed.

#### 3. Implementation and Results

The proposed approaches were first applied to a Mabuchi RK370CA motor, then a Mabuchi FC130 motor. To implement the algorithms, a LabVIEW program was created to interface a pulse width modulated (PWM) motor drive and an optical encoder with quadrature digital outputs mounted on the motor shaft. The determinism of the sample time was assured by the LabVIEW real-time module. And, a national instrument (NI) LabVIEW FPGA (field programmable gate array) card was utilized to process the digital quadrature encoder signals to obtain the motor speed and to control the motor PWM drive.

Values of the motor parameters given in the motor specifications for reference are presented in Table 1.

Note that the Back-EMF and torque constant are not equal (although it should be theoretically). Inductance value is not given and was measured as 20.25 Henry. The resistance was measured as 16.4 Ω. Thus we calculated sec.

First, apply the algorithm for no-disturbance torque. To apply this algorithm, the speed response part due to the voltage input is assumed to dominate. To meet this condition, for example, the speed variation at the steady-state is small compared to the steady-state speed, we send a large voltage to the motor drive, volt. Next, we apply the approach for disturbance torque. The disturbances, that is, friction, effects on the speed response are significant when the input voltage is small. To demonstrate the effectiveness of the algorithm, we sent two voltages, volt and volt, to the motor. Driving the motor at two different voltage levels can demonstrate that the viscous friction varies with the speed, also can allow us to calculate the viscous damping coefficient.

Usually is very small compared to a good estimate of both and at the same time is difficult. Because is usually much larger than , and were estimated separately using different data collected with different sample rates and different time durations. For estimating , the motor speed in both the transient phase and the steady-state was sampled at 1 kHz for one second; for estimating , the motor speed in the transient phase was sampled at 8 kHz for 200 msec. In each test, the motor was driven multiple times and parameter estimates were averaged.

Results are summarized in Table 2. Column two gives the values estimated using the algorithm for no disturbance, and column three gives the values obtained using the algorithm considering disturbance; values in the fourth column are computed using values from Table 1. Note that , gcm^{2}, volt/(rad/sec), and Nm/A are used to calculate in the fourth column of the table. According to Table 2, the estimates of , , and are in good agreement with those given by the motor specifications.

Time responses sampled at 1 kHz for 1 s are given in Figures 1, 2 and 3. In these figures, red curves represent the power series, , resulting from curve fitting the motor speed responses. Comparing these figures, it is obvious that the approach with disturbance consideration approximates the measurements much better, because of the existence of the linear term, , in the power series due to the presence of the constant disturbance in the motor.

To further demonstrate the effectiveness of the proposed algorithms, we compared them to conventional identification approaches. First, we drove the motor using random voltage input (10 volts maximum) and measured the motor speed at a sampling rate of 10 kHz. Then, the motor/drive frequency response function was calculated through spectral analysis. Based on the calculated frequency response data, we used Matlab system identification toolbox to identify a second-order model. Various methods, that is, subspace approach in the system identification toolbox, were tried and compared. The best model found was Using the model coefficients, we get These estimates are bad, especially the electrical time constant due to the very small time scale as alluded to earlier.

*Remark 2. * may be used to calculate the friction (both kinetic and viscous) if is known. First, calculate the viscous friction coefficient . Then, calculate the dynamic friction, . For example, ips under volt, ips under 10 volt, gcm^{2}, and it renders mNm/ips.

*Remark 3. *The number of terms in the power series included for fitting the data was determined through trial and error. When disturbance was not considered, twenty-five terms were included; when disturbance was considered, including forty terms gave the best results. Since the coefficients were calculated using the polynomial curve fitting function from the math library provided inside LabVIEW, it was not difficult and time consuming to try different number of terms. Including more terms does not necessarily improve the parameter estimation accuracy.

A Mabuchi FC130 motor was tested as well. It is a smaller motor compared to RK370. Good results were obtained again this time; see Table 3. Note the very small in this small motor. Algorithm considering disturbance torque was applied. In the testing, 10 volts was used as the motor drive input. For estimation, the speed response was sampled at 1000 Hz for 500 samples, while for estimation, it was sampled at 6000 Hz for 850 samples.

#### 4. Conclusions

A convenient, effective system identification approach is proposed to estimate the DC motor torque constant, mechanical time constant, electrical time constant, and friction. This approach was implemented on two Mabuchi motors, and the great test results were presented. This open-loop method requires little hardware, only a speed/position sensor and a voltage supply. The estimated motor parameters can be used to verify the DC motor performance or be used to build a model of the motor for the subsequent controller design or system optimization. This approach is especially suited to quick field applications.

#### Appendix

Coefficients for no disturbance case are as follows:

Coefficients for disturbance case are as follows:

#### References

- L. Ljiung,
*System Identification: Theory for the User*, Prentice Hall, 2nd edition, 1999. - H. Unbehauen and G. P. Rao, “A review of identification in continuous-time systems,”
*Annual Reviews in Control*, vol. 22, pp. 145–171, 1998. View at Google Scholar · View at Scopus - G. F. Franklin, J. D. Powell, and M. L. Workman,
*Digital Control of Dynamic Systems*, Addison Wesley, 2nd edition, 1990. - J. C. Basilio and M. V. Moreira, “State-space parameter identification in a second control laboratory,”
*IEEE Transactions on Education*, vol. 47, no. 2, pp. 204–210, 2004. View at Publisher · View at Google Scholar · View at Scopus - G. Mamani, J. Becedas, H. Sira-Ramirez, and V. Feliu Batlle, “Open-loop algebraic identification method for DC motors,” in
*Proceedings of the European Control Conference*, Kos, Greece, 2007. - G. Mamani, J. Becedas, and V. Feliu-Batlle, “On-line fast algebraic parameter and state estimation for a DC motor applied to adaptive 16 control,” in
*Proceedings of the World Congress on Engineering*, London, UK, 2008. - R. Krneta, S. Antic, and D. Stojanovic, “Recursive least square method in parameters identification of DC motors models,”
*Facta Universitatis*, vol. 18, no. 3, pp. 467–478, 2005. View at Google Scholar - M. Hadef and M. R. Mekideche, “Parameter identification of a separately excited DC motor via inverse problem methodology,” in
*Proceedings of the Ecologic Vehicles andRenewable Energies*, Monaco, France, 2009. - M. Ruderman, J. Krettek, F. Hoffman, and T. Betran, “Optimal state space control of DC motor,” in
*Proceedings of the 17th World Congress IFAC*, pp. 5796–5801, Seoul, Korea, 2008. - M. Hadef, A. Bourouina, and M. R. Mekideche, “Parameter identification of a DC motor via moments method,”
*International Journal of Electrical and Power Engineering*, vol. 1, no. 2, pp. 210–214, 2008. View at Google Scholar - A. Rubaai and R. Kotaru, “Online identification and control of a dc motor using learning adaptation of neural networks,”
*IEEE Transactions on Industry Applications*, vol. 36, no. 3, pp. 935–942, 2000. View at Publisher · View at Google Scholar · View at Scopus