Compound optimal control of harmonic drive considering hysteresis characteristic
Hysteresis behavior widely exists in the transmission process of harmonic drives. Eliminating the hysteresis effect is highly desired in the high-precision mechanical transmission, which results in challenges in the control design. This paper aims to improve the tracking accuracy of the motor-harmonic drive serial system. Firstly, a modified Bouc-Wen model based on uniform smooth approximating function is applied to describe the hysteresis behavior of the harmonic drive. By using coordinate transformation and accurate state feedback linearization, we then obtain the mathematical model of the serial system of the motor-harmonic drive. Finally, the reference trajectory is tracked by a compound optimal controller that is based on a linear quadratic regulator. Simulation results show that compared with the disturbance observer-based control (DOBC) using a linear observer, the new compound optimal controller in this paper presents a smoother control signal with the elimination of large amount of high-frequency oscillations. Furthermore, the relative error in the steady state tracking tends to approach to zero and no cyclic fluctuations appears. With the employing of optimal control, the output of the harmonic drive can trace more complex trajectory.
For an ideal transmission system, the phase diagram of the system state established by the input torque and output displacement should be a monotonic curve regardless of loading history. In other words, there should be a one-to-one correspondence between the output displacement and input torque of the system. In fact, hysteresis phenomena are widely recognized in the electromechanical transmission systems. Hysteresis generally means that the current state of the system depends not only on the input at the moment, but also depends on the history of input values, i.e. path-dependent processes (Mayergoyz et al., 2003; Bertotti et al., 1998), which results in lots of control difficulties.
With the development of aerospace industries, as a new transmission system, the servo motor-harmonic drive serial system is widely used in transmission mechanisms of rockets and satellites. However, due to the nonlinear contact friction between the flexspline and the circular spline (as shown in Fig. 1), together with the viscous friction of the flexible bearing, transmission hysteresis characteristics exist in the servo motor-harmonic drive serial system. For example, for a basic transmission unit of a robot arm, these inherent nonlinear properties will result in serious hysteresis feature of the transmission system and adversely affect the motion precision of the robot arm. This paper focuses on the control of such a harmonic drive system with hysteresis characteristic.
Figure 2 shows a typical servo motor-harmonic drive serial system followed by an illustrative hysteresis loop as shown in Fig. 3. In engineering applications, there are different specific hysteresis behaviors for harmonic drives in which detailed experimental data are required to define. Kircanski et al. (1997) designed an experiment, in which two torque sensors were set up at both the input port of the motor and the output port of the harmonic drive, and the input torque curve of the motor was controlled to be a harmonic wave with a fixed maximum magnitude. It was found in the experiment that when the input torque returned to zero after several periods, the output of the harmonic drive was not zero. Dhaouadi et al. (2003) also conducted experimental testing to reveal the hysteresis, where the output port of the harmonic drive was locked and a periodic torque was forcibly exerted on the motor side. The experimental result showed that the hysteresis characteristic is insensitive to the input frequency when the input toque maintains a constant magnitude. The advantage of this experimental scheme lies in the ability of secure testing of the high-frequency input responses. Both the experimental results provide us with basis on the study of the hysteresis model so that we can select the corresponding parameters to establish an optimal control method with a higher precision for a hysteresis system.
In literatures, there are many existing mathematical models proposed to describe hysteresis, such as LuGre model (Kamlah and Jiang, 1999), Preisach model (Song et al., 2005), Duhem model (Lee and Royston, 2000), Maxwell model (Huang and Chiu, 2009) and Bouc-Wen model (Zhu et al., 2014). Among these models, the Bouc-Wen model is a classical and most widely used one. However, this model is not differentiable everywhere, which will be improved in the present paper by using uniform smooth approximating function.
Meanwhile, there are also various control theories that can be used to compensate for hysteresis issues, including PID (proportional–integral–derivative) control, feed-forward controller, adaptive control, and sliding mode control.
PID controller does not depend on the specific structure of the controlled object, which makes it theoretically capable of solving the hysteresis problem. However, for the system with sharp changes, PID controller cannot compensate for the hysteresis torque in real time. Different from PID control, the feed-forward controller requires sophisticated modeling and precise parameters. Considering this, An et al. (1989) introduced the feed-forward control into a PD (proportional-derivative) control and used this compound method to control the robotic arm equipped with a harmonic drive.
Adaptive control is the most widely used method for hysteresis compensations. Many newly emerging control theories, such as fuzzy theory, internal model principle and neural network, have been utilized in combination with the adaptive control. For an unknown nonlinear friction model, Tadayoni et al. (2011) approximated the friction torque by using the wavelet network and fuzzy structure. However, implementing these compound controllers requires the control unit to provide certain challenging computing ability and data storage capacity. Under current technical conditions with ordinary industrial control chips, it is difficult to satisfy these requirements to implement such a compound control.
Sliding mode controller can compensate for the hysteresis in real time with high precision. Moreover, by using the sliding mode controller we can achieve the same control result at a relatively low cost. He et al. (2009) used a LuGre model as the controlled object of a sliding mode controller, with a successful simulation demonstration. Unfortunately, for the harmonic drive in engineering applications, the tremor caused by the high-frequency switching signals in the sliding mode controller can excite high-order unmodeled dynamics of the system. This consequence will seriously jeopardize the transmission precision of the system (Bandyopadhyay et al., 2015). In summary, these controllers are not suitable for a motor-harmonic drive electromechanical transmission system.
Considering the advances and the existing problems of these controllers, we will design a new controller based on the optimal control theory for the motor-harmonic drive system, with an objective of achieving the output tracking precision in an optimal status. In Sect. 2, we build a mathematical model of motor-harmonic drive system. This model considers the disturbance of the hysteresis torque which is compensated for by the precise state feedback linearization and a compound optimal controller. In Sect. 3, a new compound controller is proposed to improve the tracking accuracy of the motor-harmonic drive transmission system at the most extent. In Sects. 4 and 5, we validate the superiority of this new controller using numerical simulation, by comparing with the distribute observer based control (DOBC). Conclusions are drawn in Sec. 6.
The motor-harmonic drive system has two degrees of freedom, which are defined by the rotation angle of the motor rotor, θm, and the rotation angle on the output port of the harmonic drive, θl, as shown in Fig. 2. The Lagrange equations of the transmission system can be written as follows:
where Jm and Jl are the inertia moment of the moving part of the motor and the inertia moment of the loading end, respectively, K the torsional stiffness between the input and output ports of the harmonic drive, and N the transmission ratio.
With the third nonlinear differential formula in Eq. (1), one can obtain the hysteresis torque q. This formula is the special form of the standard Bouc-Wen model with particular parameters of n=1 and β=0 (Gandhi et al., 2001). The fitting results of experimental data fromIkhouane et al. (2007) indicate that the model with only two positive parameters, a and A, can already well describe the hysteresis in the harmonic drive. Bm and Bl in Eq. (1) represent viscous damping coefficients inside the motor and harmonic drive, respectively. The two parameters are acquired according to the experimental data.
If we define the state variable vector as , Eq. (1) can be rewritten into the form of state space as below:
The compact form of Eq. (2) is:
The system described by Eq. (3) is a typical nonlinear affine single-input single-output (SISO) system (Dierks et al., 2010), in which the system input is the motor torque u and the output is the angular displacement θl of the output port of the harmonic drive. The absolute value function in Eq. (3) keeps us from calculating the analytic solution of its Jacobian matrix. So in the present paper, uniformly smooth approximating functions are used to approximate the absolute value function (for the detailed deduction and proof process, refer to Long-quan et al., 2015), then we have:
where μ=0.001 and . All the system state variables except q are measurable, and q is a compound function of other state variables. Until this step, one obtain a controllable dynamic model. By measuring state variables of this model, we can create feedback channels to compensate the system for hysteresis torque directly or indirectly. In the following, we will discuss the design of a reasonable controller so that the system output θl can track the reference trajectory r in a desired way.
For the classical optimal control, we need to firstly determine the objective function of the optimal problem. Suppose that the initial conditions of the nonlinear affine system is , the terminal time tf is fixed and the terminal state x(tf) is free. Then, the objective function (Anderson et al., 2007) that needs to be minimized is constructed as:
where r is the ideal/reference trajectory, y is the actual output of the transmission system, and u denotes the actual control signal. Apparently, it will be very complicated if the Hamiltonian functions are directly constructed by the nonlinear affine system (Eq. 3), which is not convenient for the controller design. Therefore, by using the precise state feedback linearization (Chiasson et al., 1993; Lee et al., 2009) the system can be transformed into a linear one. The time derivatives of the system output y=h(x) are:
Substituting Eqs. (3)–(5) into the Eq. (6) and expanding the results, it can be observed that the right-hand sides of the first three equations do not explicitly contain u, and contained in the fourth equation is the first nonzero polynomial. Therefore, it is unnecessary to take more than fifth-order derivations The results in Eq. (6) are thus simplified as follows:
where H(x) equals to:
and G(x) is:
It can be seen that for a nonlinear affine system shown in Eq. (3), if a nonlinear state feedback function, such as , is appropriately added, the system will degenerate into a quadratic integration system:
G(x) is not zero around the initial state of the transmission system, which means that the precise state feedback linearization is nonsingular around the initial point x0. Based on Eq. (10), we can design an optimal controller to track the trajectory. Assuming that the objective function of the system is:
Using the Pontryagin's minimum principle, the Hamiltonian function is obtained:
In terms of the necessary conditions of the optimal control problem, we can obtain the optimal control signal and the following equations:
The boundary conditions are:
Here, the control signal u0 is determined by the co-state variable λ, reference input r and system feedback z1. It is clear that the control signal is independent of the actual structure of the object system. Therefore, by using the following control signal
and also substituting Eq. (6) into Eq. (13), we have:
Equation (16) include both the initial-value and boundary-value constraints, namely a complex boundary value problem (BVP) in which numerical methods are needed to solve the equations (Shampine et al., 2000; Ascher et al., 1994). In terms of Eq. (16), the simulation system is constructed, as shown in Fig. 4.
The simulation steps of the control system are as follows:
First, calculate the input signal based on the pre-designed trajectories r and Eq. (16). The state variable of the controller is the co-state variable λ.
Then, using the feedback channel, calculate the nonlinear feedback signal by measuring the state variable of the transmission system.
Finally, combining the output signal of the controller with the nonlinear feedback signal and importing them into the transmission system, obtain the desired trajectory at the output of the harmonic drive.
In order to illustrate the superiority of the new compound controller proposed, in this section, we compare the control performance of the present compound controller with the control method of disturbance observer based control (DOBC) (Yang et al., 2011). The main control idea of DOBC is that the hysteresis torques and are treated as interferences so as to realize real-time compensation, which makes the resulting system become linear, i.e.:
where d=q, and
The observer is defined as:
where Kx and Kd are feedback gains. The parameters of the observer are:
In Eq. (18), in order to meet the stability requirement, the feedback gains, Kx and Kd, must be Hurwitz matrices with Kd determined by Kx and L (Li et al., 2014). Therefore, in this study, classical linear quadratic regulator (LQR) with positive definite penalty matrices, Q and R, is adopted to meet the stability requirement of Kx. For cost function of LQR, we select R=0.001 and
Then, we can obtain the controller's gains and .
For the compound optimal control proposed in this paper, there are only two controllable parameters, namely M and R. We can adjust the two parameters to improve the tracking performance of the control system. The rest of the parameters are listed in the Table 1. Numerical simulations show that the smaller R is, the larger the amplitude of the control signal is. By adjusting M, we can also amplify the control signal. It is also noted that if R is too small, the numerical method will fail to solve the complex BVP (Eq. 16). However, an optimal allowable R can be found to satisfy the tracking precision. So we choose M=10 000 and R=0.001. Once the parameters used in DOBC controller and the compound optimal controller have been confirmed, one can compare their control performances by tracking the same reference trajectory .
The response curves of DOBC and the compound optimal control together with the reference trajectory are shown in Fig. 5. It is observed that the steady-state tracking of the present compound optimal control method is excellent. For DOBC, however, there is always a large tracking error around the peak of the trajectory curve, which means that the tracking curve cannot follow the reference as desired. This is because the proportional control in DOBC cannot completely get rid of the static error in the closed-loop system.
The tracking errors between the reference trajectory and each of the two controlled trajectories are illustrated in Fig. 6. In this case, the reference trajectory is a cosine wave with maximum amplitude of one. For a serial transmission system whose initial state is stationary, both of the controllers mentioned above can enter the steady-state tracking within 1 second by properly designing the desired trajectory. It is found that when the system reaches the steady state, the maximum relative error from the compound optimal control reduces to less than 1 %, while that from DOBC fluctuates periodically within 25 %. Therefore, compared with DOBC, the compound optimal control can realize a stable tracking with a much better precision control.
Control signals of DOBC and compound optimal control are shown in Figs. 7 and 8, respectively. As shown in Fig. 7, although DOBC system enters a relatively steady state in general, the control signal is still mixed with a large number of high-frequency components around the peak and valley points of the curve. These high-frequency components result from the linear observer used in estimating hysteresis torque. It is clear that the angular speeds of the harmonic driver and motor change sharply around the peak and valley of the trajectory curve, meaning that the angular accelerations are maximum at the peak and valley points. Meanwhile, it is already known from Eq. (2) that the hysteresis torque is sensitive to the angular speed difference between the harmonic drive and the motor. This indicates that the control signal of DOBC inherently contains massive high-frequency components when tracking complex trajectories. With the increase of the frequency of the reference wave, more high-frequency components can appear. That may be the reason why DOBC is mostly used in the constant speed regulation of the permanent magnet synchronous motor (PMSM) instead of accurate trajectory tracking. In the relevant experimental literatures, find similar phenomenon can be found. For example, Lu et al. (2016) built a load DOBC (LDOBC) to estimate the disturbance on load side and realized the trajectory tracking of permanent magnet synchronous machine (PMSM). However, the friction inside the PMSM increases when the motor speed is faster. Their experimental results showed that the high-frequency components in the input signal and output signal increased when the rotate speed increased from 100 to 2500 rotations per minute. This agrees well with our simulation results.
The control signal of the present compound optimal control in Fig. 8 behaves much smoother and its initial value is zero. Noticeably, the optimal controller eliminates the high-frequency components as seen in DOBC. This resulting control signal requires less bandwidth of the servomotor and lead to more benefit for the stationary-state startup of the servomotor. The control signal of the present controller contains no high-frequency components when increasing the frequency of the reference cosine wave. Compared with DOBC, the compound optimal control is more adaptive for tracking the complex trajectory with desired precision.
In summary, unlike DOBC which is a closed-loop control based on the real-time feedback, the compound optimal controller is an open-loop control. Although the compound optimal control requires solving the complex BVP equations in advance, the control signal quality and the control effect are much better than those of DOBC. In addition, there are only two parameters (M and R) in the compound optimal control, which can be easily adjusted to meet different requirements.
These numerical cases demonstrate that the new compound optimal controller presented in this paper has a better comprehensive performance in dealing with hysteresis issue.
The present work focuses on the improvement of the tracking accuracy of the motor-harmonic drive serial system considering the influence of hysteresis torque and a compound optimal control scheme for a harmonic drive has been established. The main results are summarized as follows.
By means of coordinate transformation and precise state feedback linearization, the original nonlinear system is transformed into a fourth-order integral system, in which the non-differentiable structure of the original system (such as the absolute value function) is approximated by the equivalent smooth function. The new control system is not only beneficial to the design of the controller, but also has no singularity around the initial state .
A compound open-loop optimal controller based on a linear quadratic regulator is designed for tracking the expected trajectory of the harmonic drive with hysteresis behavior. In this control method, the quadratic optimal state regulator is employed to quantify the whole tracking precision of the control system. In order to get the actual control torque according to the desired trajectory and boundary value, it requires to solve the complex BVP equations in advance. Compared with the traditional control methods, the present compound optimal controller can achieve an optimal performance and is more adaptive for tracking the complex trajectory with desired precision.
Simulation results reveal that when tracking the complex trajectory like cosine wave with similar responding speed, the relative error from DOBC based on linear observer fluctuates between 0 % and 25 %. However, for the new compound optimal controller, the relative error of the steady state can be smaller than 1 % and no periodic fluctuation phenomenon appears. In addition, the compound optimal controller can eliminate the high-frequency components that appear in DOBC. In other words, the control signal curve of the compound optimal controller is much smoother and more suitable for the torque output of the actual servomotor, than that of DOBC.
Further work is planned on improving the ability of noise resistance and reducing the computational complexity of this new controller. In doing this, we can extend the optimization problem to the robust control problem where the online optimal control becomes necessary.
The authors declare that all data supporting the findings of this study are available within the article or upon request by contact with the corresponding author (see in particular Gandhi, 2001).
QL and TQG conceived the basic idea about the study. QL performed the numerical simulations. QL, LJC, TQG, and GBH wrote, revised and approved the manuscript together.
The authors declare that they have no conflict of interest.
This research has been supported by the National Natural Science Foundation of China (grant no. 51475396).
This paper was edited by Jinguo Liu and reviewed by Xibin Cao and one anonymous referee.
An, C. H., Atkeson, C. G., Griffiths, J. D., and Hollerbach, J. M.: Experimental evaluation of feedforward and computed torque control, IEEE T. Robotic Autom., 5, 368–373, https://doi.org/10.1109/70.34773, 1989.
Anderson, B. D. and Moore, J. B.: Optimal control: linear quadratic methods, Courier Corporation, Prentice-Hall, 2007.
Ascher, U. M., Mattheij, R. M., and Russell, R. D.: Numerical solution of boundary value problems for ordinary differential equations, Classics in Applied Mathematics, Society for Industrial and Applied Mathematics, Siam, 13, 1994.
Bandyopadhyay, B. and Patil, M.: Sliding mode control with the reduced-order switching function: an SCB approach, ISPRS Int. Geo.-Inf., 88.5, 1089–1101, https://doi.org/10.1080/00207179.2014.989409, 2015.
Bertotti, G.: Hysteresis in magnetism: for physicists, materials scientists, and engineers, Academic press, 1998.
Chiasson, J.: Dynamic feedback linearization of the induction motor, IEEE T. Automat. Contr., 38, 1588–1594, https://doi.org/10.1109/9.241583, 1993.
Dhaouadi, R., Ghorbel, F. H., and Gandhi, P. S.: A new dynamic model of hysteresis in harmonic drives, IEEE T. Ind. Electron., 50, 1165–1171, https://doi.org/10.1109/TIE.2003.819661, 2003.
Dierks, T. and Jagannathan S.: Optimal control of affine nonlinear continuous-time systems, Proceedings of the 2010 American Control Conference, Baltimore, MD, USA, 30 June–2 July 2010, 1568–1573, https://doi.org/10.1109/ACC.2010.5531586, 2010.
Gandhi, P. S.: Modeling and control of nonlinear transmission attributes in harmonic drive systems, Dissertation, Rice University, 2001.
He, F., Yang, A., and Dai, W.: The Design Method of Globe Fuzzy Sliding-Mode Control in Friction Hystersis System, in: International Conference on Intelligent Computation Technology and Automation, 2, 826–829, https://doi.org/10.1109/ICICTA.2009.435, 2009.
Huang, S. J. and Chiu, C. M.: Optimal LuGre friction model identification based on genetic algorithm and sliding mode control of a piezoelectric-actuating table, T. I. Meas. Control, 31, 181–203, https://doi.org/10.1177/0142331208093938, 2009.
Ikhouane, F. and Rodellar J.: Systems with hysteresis: analysis, identification and control using the Bouc-Wen model, John Wiley & Sons, 2007.
Kamlah, M. and Jiang Q., A constitutive model for ferroelectric PZT ceramics under uniaxial loading, Smart Mater. Struct., 8, 441, https://doi.org/10.1088/0964-1726/8/4/302, 1999.
Kircanski, N. M. and Goldenberg, A. A.: An experimental study of nonlinear stiffness, hysteresis, and friction effects in robot joints with harmonic drives and torque sensors, Int. J. Robot Res., 16, 214–239, https://doi.org/10.1177/027836499701600207, 1997.
Lee, S.-H., and Royston, T. J.: Modeling piezoceramic transducer hysteresis in the structural vibration control problem, J. Acoust. Soc. Am., 108, 2843–2855, https://doi.org/10.1121/1.1323464, 2000.
Lee, D., Kim, H. J., and Shankar, S.: Feedback linearization vs. adaptive sliding mode control for a quadrotor helicopter, Int. J. Control Autom., 7, 419–428, https://doi.org/10.1007/s12555-009-0311-8, 2009.
Li, S., Yang, J., Chen, W. H., and Chen, X.: Disturbance observer-based control: methods and applications, CRC press, 2014.
Long-quan, Y.: Uniform Smooth Approximating Functions for Absolute Value Function, Mathematics in Practice and Theory, 45, 250–255, 2015.
Mayergoyz, I. D.: Mathematical models of hysteresis and their applications, Academic Press, 2003.
Shampine, L. F., Reichelt, M. W., and Kierzenka, J.: Solving boundary value problems for ordinary differential equations in MATLAB with bvp4c, available at: http://www.mathworks.com, last access: 9 July 2019.
Song, G., Zhao J. Zhou, X., and De Abreu-Garcia, J. A.: Tracking control of a piezoceramic actuator with hysteresis compensation using inverse Preisach model, IEEE-ASME T. Mech., 10, 198–209, https://doi.org/10.1109/TMECH.2005.844708, 2005.
Tadayoni, A., Xie W. F., and Gordon B. W.: Adaptive control of harmonic drive with parameter varying friction using structurally dynamic wavelet network, Int. J. Control Autom., 9, 50–59, https://doi.org/10.1007/s12555-011-0107-5, 2011.
Xiaoquan, L., Heyun, L., and Junlin, H.: Load disturbance observer-based control method for sensorless PMSM drive, IET Electr. Power App., 10, 735–743, https://doi.org/10.1049/iet-epa.2015.0550, 2016.
Yang, J., Zolotas, A., Chen, W. H., Michail, K., and Li, S.: Robust control of nonlinear MAGLEV suspension system with mismatched uncertainties via DOBC approach, ISA T., 50, 389–396, https://doi.org/10.1016/j.isatra.2011.01.006, 2011.
Zhu, W., Chen, G., Bian, L., and Rui, X.: Transfer matrix method for multibody systems for piezoelectric stack actuators, Smart Mater. Struct., 23, 095043, https://doi.org/10.1088/0964-1726/23/9/095043, 2014.