- freely available
- re-usable

*Sensors*
**2013**,
*13*(4),
4742-4759;
doi:10.3390/s130404742

^{1}

^{2}

Published: 10 April 2013

## Abstract

**:**In this paper, an adaptive law with an integral action is designed and implemented on a DC motor by employing a rotary encoder and tachometer sensors. The stability is proved by using the Lyapunov function. The tracking errors asymptotically converge to zero according to the Barbalat lemma. The tracking performance is specified by a reference model, the convergence rate of Lyapunov function is specified by the matrix Q and the control action and the state weighting are restricted by the matrix Γ. The experimental results demonstrate the effectiveness of the proposed control. The maximum errors of the position and velocity with the integral action are reduced from 0.4 V and 1.5 V to 0.2 V and 0.4 V, respectively. The adaptive control with the integral action gives satisfactory performance, even when it suffers from input disturbance.

## 1. Introduction

Various electromechanical motors have been used for industrial applications, e.g., electric motors, piezomotors and hydraulic actuators. Generally, it is necessary to enhance the motor performance with the feedback control based on state measurements. Khorrami et al., used linear motors to establish ultra-accurate high-speed six degree-of-freedom manipulation [1]. To measure the angle and speed of motor shafts, rotary encoders and tachometer sensors have been widely used because of their high performance and reliability [2–4].

As digital angle-measuring sensors, rotary encoders consist of optics, mechanics and electronics. Compared to analog angle-measuring sensors, digital rotary encoders have simple structures while preserving high accuracy. In order to achieve accurate motion control, the velocity can be measured by using tachometer sensors which usually consist of tachogenerators and circuits. The tachogenerator can also give the voltage output which is proportional to the speed of the rotational motor.

To achieve precise motion, it is necessary to measure and input both the angle and the speed of motor shafts by employing a rotary encoder and tachometer sensors. Based on the angle and speed sensors, various controllers have been designed for motors [5,6]. Generally, motors can be controlled by conventional PID controllers. Nikulin and Frantsuzova presented a modified PD controller to ensure the desired system speed and damping vibrations [7]. Chaiya and Kaitwanidvilai provided a robust PID controller which could control the motor speed [8], but PID controllers have limited performance in the presence of disturbances and uncertainties. Xu and Yang presented a simple and robust speed control scheme for a permanent magnet synchronous motor to enhance the performance robustness [9]. Nouri et al., proposed a model-following adaptive controller for the speed control of a motor drive system [10]. Melkote and Khorrami proposed adaptive control for direct drive brushless DC motors [11]. Moreover, intelligent algorithms have also been investigated [12–15]. Fallahi and Azadi added neural network sliding mode control to enhance the adaptive control of motors [16]. However, intelligent controllers are usually very complex. It is difficult for engineers to design and optimize intelligent controllers, e.g., Xu and Huang [17] designed an iterative learning controller (ILC), but found that the reference signal had to be pre-filtered in order to satisfy the complex initial conditions of ILC. Furthermore, several accurate models were identified at different voltage ranges, and the iterations were implemented offline.

This paper uses Model Reference Adaptive Control (MRAC), which is a convenient approach to satisfy the requirements of designers [18]. The general idea of MRAC is to create a closed loop regulator with parameters that could be updated to match a desired response. The desired performance is specified by a stable reference model, and the parameters of the adaptive law are adjusted based on the errors between the reference model and the plant, as shown in Figure 1.

Though the adaptive control has shown its effectiveness in achieving robust performance without the knowledge of parameter values, a comprehensive design approach is still necessary for engineering applications. In order to obtain high-performance adaptive control in the presence of disturbances, this paper presents a comprehensive design approach in which both the bandwidth and damping ratio can be included in the proposed controller.

In this paper, two kinds of MRAC are designed and then used on a motor by employing a rotary encoder and tachometer sensors. The tracking error can converge to zero with the integral action in the presence of input disturbances. The experimental results are presented to investigate the effectiveness of the proposed control approach.

## 2. Adaptive Control Design without the Integral Action

#### 2.1. Angle and Speed Sensors

Figure 2 shows the experimental setup. It consists of a DC motor, a computer with LabView software, a drive interface, an amplifier, a tachometer sensor and a rotary encoder. The tachometer sensor is used to measure the rotation speed of the motor shaft. The output voltage of the tachogenertor (i.e., tachometer generator—a device to measure the rotational rate of the motor shaft with the internally generated electrical signal generated by the motor shaft) is proportional to the motor speed. Then, the voltage is applied to the voltmeter in which the dial can be calibrated in speed units (i.e., usually in revolutions per minute (rpm)). In addition, a rotary encoder is used to measure the linear rotation angle of the motor draft. The rotary encoder can convert the ration angle to digital voltage. Thus, both the angle and speed can be measured and controlled.

After calibration, the generated voltage is a factor of the motor speed. Then, the motor speed can be fed to the adaptive controller. Next, Figure 3 is given to present the working principle of the rotary encoder in which phase A, phase B, and phase Z are the three-phase models to represent the output signal counts for an incremental encoder [19]. The rotary encoder consists of the main grating, index grating, illuminant and photosensitive device. In this paper, an incremental encoder is used because of its simplification, small size and high-speed response. There is one impulse corresponding to every grating. The summation of impulses represents the angle position of the motor.

#### 2.2. Adaptive Controller Design and Stability Proof

This section presents a design method of the adaptive control without the integral action. The stability proof is also presented. To achieve good tracking performance, a MRAC is designed to drive the tracking error to zero. Considering simplification, the transfer function in Equation (1) is used to give the motor dynamics:

To specify the desired performance, this paper employs a stable reference model as shown in Equation (3), from which the domain and frequency index can be specified:

_{n}is the natural frequency of the reference model. The corresponding state space description can be given as:

Equation (4) can be further written as:

The following non-adaptive control law is used:

Then, the closed loop system can be given by:

The feedback control system achieves the performance as the matching condition below:

The exact control gains ${\theta}_{x}^{\ast T}$ and ${\theta}_{r}^{\ast}$ guarantee that the closed loop system matches the reference model. Actually, the exact values of ${\theta}_{x}^{\ast T}$ and ${\theta}_{r}^{\ast}$ are unknown. The controller in Equation (5) can be rewritten to:

_{r}can be determined by the adaptation law in Equation (9):

^{*}is a constant or the slow time-variant parameter (i.e., θ̇

^{*}=ϕ̇).

The adaptive control law is nonlinear, as shown in Figure 4.

To give the tracking performance, the parameter errors ϕ_{x} and ϕ_{r} are defined by:

Then, the closed loop system can be rewritten to:

Next, let e be the state error and e=x_{p}−x_{m}.

By comparing the closed loop system in Equation (11) with the reference model in Equation (5), the dynamics of the tracking error e can be given:

In the reference model in Equation (4), a stable matrix is used for A_{m} that can satisfy the algebraic Riccati Equation (13) (i.e., for any symmetric positive definite matrix Q, there is a symmetric positive definite matrix P satisfying Equation (13)):

To prove the stability, a Lyapunov function candidate is used as follows:

The time derivative of the Lyapunov function candidate can be given:

Then, Equation (15) can be rewritten to:

^{T}x is a scalar.

Thus, the system is stable according to the Lyapunov theorem [20]. Moreover, ‖e‖, ė, ‖ϕ‖, x_{n},θ_{x} and θ_{r} are bounded, and:

According to the Barbalat lemma [20] here V̇ [0,+∞] →R is a uniformly continuous function on [0,+∞]. Supposing $\underset{t\to \infty}{lim}\underset{0}{\overset{t}{\int}}\dot{V}(\tau )d\tau $ exist and be finite. Then, there is $\dot{V}\underset{t\to \infty}{\to}0$.

Here ė is bounded. Furthermore:

According to the Barbalat lemma, the tracking error e is asymptotically stable and lim e = 0(i.e., lim(‖x_{m}−x_{n}‖) = 0).

To improve the adaptation rate, the proportional action can be added to the adaptive law [14]. Finally, the adaptive law can be given in Equation (17):

_{1}= 1 and γ

_{2}= 0.5, and they are used in experiments.

#### 2.3. Experimental Studies of Adaptive Control without the Integral Action

Experimental studies of the adaptive control are now presented. Firstly, ρ can be used to give the convergence rate of the adaptive law, as shown in Equation (18):

After several trials, the reference model is given:

The selection of Q means that the position tracking is more important than the velocity tracking. Moreover, the sampling interval h should be less than the max interval in order to handle the fastest adaptation rate [18]:

The matrix P is solved by the ARE in Equation (13):

The tracking performance of the adaptive control is shown in Figures 5 and 6. It can be found that the tracking errors of angular position and velocity asymptotically converge to zero in one period, and the maximum tracking errors of position and velocity are 0.4 and 1.5, respectively.

To guarantee the stability of the adaptive control, it is necessary to demonstrate the boundness of θ̅. Figure 7 shows the responses of θ̅. It can be seen that the estimation of θ̅ = [θ_{x1}θ_{x2}θ_{I}] is bounded.

#### 2.4. Investigations of Q and Γ

Q and Γ are two important parameters of the adaptive controller. Different values of Q and Γ are adopted to investigate their influences, here two group values of them are:

_{2}is larger than Q

_{1}.

The adaptation rates can be respectively estimated:

_{1}is faster than ρ

_{2}.

During experiments, the adaptive control using Q_{1} and Q_{2} have similar tracking errors, but the control signals are different. Figure 8 shows the voltages of the adaptive control. The control voltage of the adaptive control with (Q_{2}, Γ_{2}) is four time larger than that of the adaptive control with (Q_{1}, Γ_{1}), though there is no significant differences in the tracking errors.

## 3. Adaptive Control with the Integral Action

#### 3.1. Adaptive Controller Design with the Integral Action and Stability Validation

To further investigate the adaptive control in the presence of disturbances, this section presents the adaptive control with integral action. The integral control action can be added to the adaptive law through Equation (20):

_{I}is a new state:

The augmented plant can be rewritten to:

Similar to Section 2.2, the control law can be given by:

Then the closed loop system can be given as:

According to the matching condition in Equation (7), the following equation can be given:

The reference model can be given:

Actually, the exact value of
${\theta}_{x}^{\ast}$ and
${\theta}_{I}^{\ast}$ cannot be known, so the corresponding estimated values of θ_{x} and θ_{I} are used instead. We note that ϕ_{x} and ϕ_{I} are the estimate errors as shown in Equation (28):

_{x}(t) and ${\theta}_{I}^{\ast}(t)$ are the estimated values ${\theta}_{x}^{\ast}$ and ${\theta}_{I}^{\ast}$, respectively.

Substituting u into the plant model in Equation (22), the closed loop can be given:

Equation (29) can be rewritten to:

The error equation can be given

Choosing the Lyapunov function as Equation (32)

Then, the time derivative of V can be obtained:

Denote that the adaptive law is:

Then, P̅ can be gotten from the ARE Equation (35):

It can be concluded that the closed loop is Lyapunov stable, and e̅ and φ̅ are bounded. As in Section 2.2, the tracking error e̅ is asymptotically stable.

The adaptive control law is shown as follows:

#### 3.2. Reference Model Design

This section presents how to specify the requirements through the reference model G_{m}. Firstly, the third order model in Equation (39) is given to satisfy the matching condition of the adaptive integral control. To specify performance indexes such as the bandwidth and damping ratio, the reference model G_{m} can be approximated by the second order model G_{m}_{1}:

_{m}‖≥3‖p

_{1}‖ (i.e., p

_{1}and p̅

_{1}are dominant poles which mainly contribute to the dynamic response of the reference model.)

To satisfy the matching conditions, the reference model is:

Both Equations (39) and (40) describe the same reference model. The state space Equation (40) is transformed into the transfer function:

Compared with the transfer function in Equation (39), it is seen that:

The dynamics of the reference model should match the dynamics (i.e., natural frequency) of the motor system and the sampling capability. After testing several groups of values, ζ = 0.9, w_{n} = 3 and a_{m} = 9 are chosen in this paper. Then, there are a_{21} = −57.6, a_{22} = −14.4 and a_{23} = −81. The reference model can be rewritten to:

The step responses of G_{m1} and G_{m} are shown in Figure 9. It is seen that G_{m1} contributes most of the response for the third order reference model G_{m}. The fast dynamics of the reference model is influenced by the part a_{m}/(s + a_{m}):

#### 3.3. Experimental Studies on the Adaptive Control with Integral Action

In Section 2, it has been found that a large Q̅ results in fast convergence while needing strong action and fast sampling rate. In contrast, a small Q̅ results in slow convergence and cannot give better performance. A suitable Q̅ should be given to satisfy the convergence rate and hardware limitation.

After trials, Q̅ is adopted:

Then, P̅ can be computed:

In addition, Γ is adopted:

The experimental results of the position and velocity tracking are shown in Figures 10 and 11, respectively. The maximum tracking errors of position and rate are less than 0.2 V and 0.4 V, respectively.

As shown in Figure 12, the magnitude of the controller is less than 0.85 V, and there is no chatter phenomenon. Compared to the former adaptive control without the integral action, the case with the integral adaptive control can reduce the reference errors of position and velocity by as much as 50%. The experimental results demonstrate that the integral action is effective to improve the tracking performance.

#### 3.4. Tracking Performance with Input Disturbance

In order to investigate the performance of the adaptive control, the input disturbance is considered in this section. The square wave disturbance with magnitude 1 is adopted. The reference is also square wave. During the experiment, the disturbance is added by using a LabView block as an input disturbance. The disturbance enters the close loop systems as the reference signal enters. The tracking errors of position and velocity are shown in Figure 13. It is seen that the maximum position and velocity tracking errors are less than 0.2 and 1, respectively. Also, it can be found that there is no difference between the two results of the position tracking errors shown in Figures 10 and 13, respectively. The position error is the most important one for the motor tracking in this paper, thus it can be concluded that the degradation of tracking performance is not significant. The experimental result indicates that the adaptive control with the integral action suppresses disturbance and tracks the reference simultaneously.

#### 3.5. Comparison between Experiment and Simulation Results

Finally, a comparison between experiment and simulation results is presented in this paper. According to the motor manual, the time constant is 0.25. The DC gain is 5.2. Figure 14 shows the comparison between experiment and simulation results.

The simulation and experiment have similar responses. The tracking errors of the position and velocity from experiment study are larger than that from simulation study. In the three cases, all the tracking errors asymptotically converge (i.e., the stability can hold). The simulation of the proposed adaptive control with the integral action gives the best performance. The tracking error from simulation study can converge to zero, but the tracking errors from experiment study cannot converge to zero due to the friction, the sensor noise and the motor dead-zone. In the experiment study, the performance degradation is acceptable.

## 4. Conclusions

In order to accurately control motors, this paper employs both a rotary encoder and tachometer sensors to measure the angle-position and speed, respectively. Based on the measurements, two adaptive controllers are developed for the motor system. The stability and convergence are validated by the Lyapnov theorem and Barbalat lemma. Then, the control system is implemented by using Labview. Experimental results indicate that the tracking errors of the motor position and velocity asymptotically converge to their error ranges. In the presence of disturbances, the adaptive controller with integral action presents better performance than the case without integral action.

State estimation approaches are encouraged to investigate for possible output feedback control. In this paper, the proposed adaptive controllers needs full state information, but actually some states (e.g., motor velocity) are not provided. Thus, the state estimation must be designed in the possible output feedback control.

This work was supported by the National High Technology Research and Development Program of China (No. 2012AA120601), National Natural Science Foundation of China (No. 11202044, No. 11072044) and the Fundamental Research Funds for the Central Universities.

## References

- Khorrami, F.; Ksishnamurthy, P.; Melkote, H. Modeling and Adaptive Nonlinear Control of Electric Motors; Springer: Berlin, Germany, 2003. [Google Scholar]
- Casey, N.F.; Laura, P.A.A. A review of the acoustic emission monitoring of wire rope. Ocean Eng.
**1997**, 24, 935–947. [Google Scholar] - Casey, N.F.; Taylor, J.L.; Holford, K.M. Wire break detection during tensile fatigue testing of 40 mm wire rope. Br. J. Non-Destr. Test.
**1985**, 30, 338–341. [Google Scholar] - Casey, N.F.; White, H.; Taylor, J.L. Frequency analysis of the signals generated by the failure of constituent wires of a wire rope. NDT Int.
**1985**, 56, 339–344. [Google Scholar] - Hu, D.J.; Burg, T. Nonlinear Control of Electric Machinery; Maecel Dekker Inc.: New York, NY, USA, 1998. [Google Scholar]
- Wiberg, J. Controlling a Brushless DC Motor in a Shift by Wire System. MS.c Thesis, Linkoping University, Linkoping, Sweden, December 2003. [Google Scholar]
- Nikulin, G.L.; Frantsuzova, G.A. Synthesis of an electric-power steering control system, optoelectronics. Instrum. Data Process.
**2008**, 44, 454–458. [Google Scholar] - Chaiya, U.; Kaitwanidvilai, S. Fixed-Structure Robust DC Motor Speed Control. Proceeding of the International Multiconference of Engineers and Computer Scientists, Hong Kong, China, 18–20 March 2009.
- Xu, D.G.; Yang, G. A simple and robust speed control scheme of permanent magnet synchronous motor. J. Control. Theory A
**2004**, 2, 165–168. [Google Scholar] - Nouri, K.; Dhaouadi, R.; Braiek, N. Adaptive control of a nonlinear DC motor drive using recurrent neural networks. Appl. Soft Comput.
**2008**, 8, 371–382. [Google Scholar] - Melkote, H.; Khorrami, F. Nonlinear adaptive control of direct drive brushless DC motors and applications to robotic manipulators. IEEE Trans. Mechatron.
**1999**, 4, 71–81. [Google Scholar] - Chen, C.W. A fuzzy AHP-based fault diagnosis for semiconductor lithography process. Int. J. Innov. Comput. I
**2011**, 7, 805–816. [Google Scholar] - Chen, C.W. Stability analysis and robustness design of nonlinear systems: An NN-based approach. Appl. Soft. Comput.
**2011**, 11, 2735–2742. [Google Scholar] - Chen, C.W. Stabilization of adaptive neural network controllers for nonlinear structural systems using a singular perturbation approach. J. Vib. Control
**2011**, 17, 1241–1252. [Google Scholar] - Chen, C.W. GA-based adaptive neural network controllers for nonlinear systems. Int. J. Innov. Comput. I
**2010**, 6, 1793–1803. [Google Scholar] - Fallahi, M.; Azadi, S. Adaptive Control of a DC Motor Using Neural Network Sliding Mode Control. Proceedings of the International Multiconference of Engineers and Computer Scientists, Hong Kong, China, 18–20 March 2009.
- Xu, J.-X.; Huang, D.; Venkataramanan, V.; Tuong, H.T.C. Extreme Precise Motion Tracking of Piezoelectric Positioning Stage Using Sampled-Data Iterative Learning Control. Proceeding of 37th Annual Conference on IEEE Industrial Electronics Society (IECON 2011), Melbourne, Australia, 7 November 2011; pp. 3376–3381.
- Astrom, K.J.; Wittenmark, B. Adaptive Control, 2nd ed.; Addison Wesley: New York, NY, USA, 1994. [Google Scholar]
- Dursun, M.; Ozden, S. Design of Monitoring System for Linear Switched Reluctance Motor with Quadrature Encoder and Current Sensors. Proceedings of the 4th IEEE International Conference on Computer Science and Information Technology (ICCSIT 2011), Chengdu, China, 10 June 2011; pp. 543–546.
- Khail, H.K. Nonlinear Systems, 3rd ed.; Prentice Hall: London, UK, 2002. [Google Scholar]

**Figure 1.**MRAC control sketch of the motor.

**Figure 2.**Sketch of the motor experiment.

**Figure 3.**Working principle of the rotary encoder.

**Figure 4.**Adaptive control block.

**Figure 5.**The reference position, the motor position and the tracking error (i.e., (

**top**),

**(middle)**and

**(bottom**), respectively).

**Figure 6.**The reference velocity, the motor velocity and the tracking error (i.e., (

**top**), (

**middle**) and (

**bottom**), respectively).

**Figure 7.**θ̅ responses under square wave tracking (

**top**) and sinusoidal tracking (

**bottom**), respectively.

**Figure 8.**Control signals under (Q

_{1}, Γ

_{1}) and (Q

_{2}, Γ

_{2}) ((

**top**) and (

**bottom**), respectively).

**Figure 9.**Step responses of G

_{m}(solid line) and G

_{m}

_{1}(star line).

**Figure 10.**The reference position, the motor position and the tracking error (i.e., (

**top**), (

**middle**) and (

**bottom**), respectively).

**Figure 11.**The reference velocity, the motor velocity and the tracking error (i.e., (

**top**), (

**middle**) and (

**bottom**), respectively).

**Figure 12.**Control signal.

**Figure 14.**Comparison of experiment and simulation results (case I: experimental results of Adaptive control; case II: experimental results of adaptive control with integral action; and case III: Simulation results of simulation of adaptive control with integral action).

© 2013 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license ( http://creativecommons.org/licenses/by/3.0/).