Abstract

This paper concerns the parameter tuning and the estimated results postprocessing of the extended Kalman filter for the sensorless control application of permanent magnet synchronous motors. At first an extended Kalman filter parameter tuning method is proposed based on the theoretical and simulation analysis of extended Kalman filter parameters. Furthermore, a sensorless control system is proposed based on the parameter tuning method and the simulation analysis of extended Kalman filter estimation results in different reference speeds and different load torques. The proposed sensorless control system consists of two parts. The first one is a module to self-regulate extended Kalman filter parameters. The second part can correct the estimated speed and the estimated rotation angle based on the reference speed and the electromagnetic torque. Finally, simulation results are presented to verify the feasibility and validity of the proposed sensorless control system.

1. Introduction

The sensorless control of the PMSM (permanent magnet synchronous motor) is the technology which, respectively, uses the estimated speed and the estimated rotation angle to replace the actual speed and the actual rotation angle. Nowadays, various sensorless control methods have been proposed. These methods can be classified as follows [1, 2]: direct methods based on the motor model, model reference adaptive methods, observer based methods, signal injection methods, and intelligent control methods. Direct methods utilize the electromagnetic model of the PMSM to estimate the speed and the rotation angle directly, and the accuracy of estimated results depends on PMSM parameters [3]. Model reference adaptive methods utilize adaptive parameters identification theory to estimate the speed and the rotation angle. These methods use a closed-loop control to eliminate the dependence on PMSM parameters [4]. Observer based methods include the EKF (extended Kalman filter), the SMO (Sliding Mode Observer), and other observers [58]. Injection methods estimate the speed and the rotation angle by injecting high or low frequency signal to the salient PMSM [9, 10]. Intelligent control methods can be used independently to estimate the speed and the rotation angle or combined with other methods to improve the accuracy of estimated results [11, 12]. Signal injection methods can be used in low-speed situations; other methods are used in medium-speed and high-speed situations. The EKF is one of observers, which estimate the speed and the rotation angle through the input voltage and the output current of the PMSM.

The EKF parameter tuning is an important but difficult work. EKF parameters have great influence on the stability and reliability of the EKF estimated results. In many papers the EKF parameter tuning is also discussed and studied. The simple EKF parameters meaning and trend without further study have been presented in [13]. The relatively detailed studies of the EKF parameter tuning and a parameter tuning method have been given in [14]. The other EKF parameter tuning study has been presented in various papers, which concern the EKF sensorless control of the PMSM [1518]. However, comprehensive and detailed study is lacking. Thus, it is required to do detailed and comprehensive study in the EKF parameter tuning.

Due to estimating errors it is not appropriate to use the EKF estimated results directly in sensorless control of the PMSM. And in different load torques and different reference speeds, the accuracy of EKF estimated results is different. However, few papers studied the estimated results postprocessing of the EKF and the estimated results in different load torques and different reference speeds. Thus, it is required to design a method to correct the EKF estimated results and self-regulate EKF parameters by electromagnetic torque and reference speed.

The remainder of this paper is organized as follows. The EKF sensorless control theory and the parameters theoretical analysis are presented in Section 2. In Section 3, simulation analysis of EKF estimated results in different EKF parameters, different load torques, and different reference speeds is given. The EKF parameter tuning method and the EKF sensorless control system are presented in Section 4. Simulation results are shown in Section 5 for two speed signals. Finally, the conclusion is given in Section 6.

2. Theoretical Analysis of the EKF

2.1. The EKF Model of the PMSM

The EKF is the Kalman filter to be applied to the continuous nonlinear system. The EKF model of the continuous nonlinear system can be obtained by linearization and discretization. The PMSM is a continuous nonlinear system. The mathematical model of the non-salient-pole PMSM in the coordinate is presented as follows. The stator voltage equation iswhere is the stator voltage, is the stator current, is the stator resistance, and is the flux linkage.

The stator flux linkage equation is where is the PMSM winding inductance, is the rotation angle, and is the rotor permanent magnet flux.

Based on (1) and (2), and the hypothesis that the speed is constant in the very short sampling time, the PMSM equation in coordinate is

State variables, control variables, and output variables are , , and , respectively. Nonlinear state equation of the PMSM is where is the input matrix, is the state noise, and is the measurement noise.

Based on the comparison between (3) and (4), the coefficient equations in (4) can be obtained:

Equation (6) is the linear equation of (4) by Taylor series method. Equation (7) is the discrete equation of (6) by sampling cycle :

The Jacobi matrix , in (6) is

Because of , the PMSM EKF equations (10) and (11) can be obtained based on Kalman filter equations:(1)Prediction is (2)Correction is where is the state covariance matrix, is the state noise covariance matrix, is the Kalman gain, and is the measurement noise covariance matrix.

The EKF model of the PMSM is built based on (10) and (11). Appropriate EKF parameters are required to obtain accurate and stable estimated results.

2.2. EKF Parameters Analysis

Kalman filter parameters are the noise covariance matrix and , the PMSM initial state matrix , and the initial state covariance matrix .

represents the PMSM initial state based on (9). contains the two-phase current information, the speed information, and the rotation angle information. can be selected based on the PMSM initial state.

is measurement noise covariance of the stator current in the coordinate. It is a 2 × 2 matrix. The current noise is uncorrelated, so is actually a diagonal matrix composed of measurement noise variance of two-phase current in the coordinate. This diagonal matrix is related to the current measurement noise. can be selected by measuring the noise in practical application.

is the covariance matrix of the PMSM state . is the initial value of . Because the PMSM state is uncorrelated, is a diagonal matrix. In the matrix, and are the current covariance in the coordinate. is the covariance of the speed. is the covariance of the rotation angle. will be automatically adjusted to the appropriate value in the recursive filtering process of the Kalman filter. The selection of does not affect the steady-state output of the Kalman filter. However, the EKF equations of the PMSM are approximate equations; the inappropriate selection of may lead to the change of estimated results in both initial state and steady-state. The selection of and is based on current changes in the coordinate. They usually choose the moderate value. Speed will rapidly increase after the PMSM starts to run, so should take the large value. The change of the rotation angle is from slow to fast when the PMSM starts up, so should take the small value.

The selection of the state noise covariance matrix is the most important work in the EKF design. The state noise is assumed to be Gaussian white noise, which is independent and zero-mean; therefore, is a diagonal matrix. and are the current noise covariance in the coordinate. is the speed noise covariance. is the noise covariance of the rotation angle. The PMSM status cannot be obtained directly, so is also not directly obtained. There are many factors affecting the PMSM state noise generation. For instance, the simplification and approximation error of the PMSM equations can be considered to be noise. Therefore, cannot be selected by existing methods. Generally the optimum needs to be obtained by trial and error.

3. Simulation Analysis of the EKF

In this section, the simulation analysis of the EKF will be presented. A preset model of the PMSM in MATLAB/Simulink is used to build the simulation model of the sensorless control system. The sensorless control system is based on the field-oriented control; the PMSM parameters are shown in Table 1.

3.1. Simulation Analysis in Different EKF Parameters

Take values of , , and based on the theoretical analysis and the trial and error method. The values are , , and . The load torque is 0, and the reference speed is 3000 r/min. The direct output rotation angle of the EKF is recorded as the absolute estimated angle; the remainder of the absolute angle divided by is recorded as the relative estimated angle.

Change and and observe the estimated results of the EKF. contains four parameters of , , , and . is equal to , so there will be three parameters to be tested. Take to be 0.1, 1, 10, and 100. Take to be 0.1, 1, 10, and 100. Take to be 0.01, 0.1, 1, and 10. Change one parameter of while other parameters are kept constant, and test all the parameters term by term. All estimated speeds are shown in Figure 1. All the estimated angles are shown in Figure 2. From the figures, it can be known that has almost no effect on the estimated speed and the estimated angle.

The selection of has great influence on the EKF performance. contains , , , and , and is equal to . Take successively to be 0.1, 1, 10, and 100 while other parameters are kept constant; the simulation results are shown in Figures 3, 4, and 5. Take successively to be 0.01, 0.1, 1, and 10 while other parameters are kept constant; the simulation results are shown in Figures 6, 7, and 8. Take to be 0.3, 3, 30, and 300; the simulation results are shown in Figures 9, 10, and 11.

Based on these results from Figures 311, the following conclusions can be obtained. The increases of will reduce the fluctuation of the estimated speed, increase the steady-state error of the estimated speed, and increase response time of the estimated speed. Meanwhile, the leading time of the estimated angle will become larger. The decrease of has the opposite result. Some inappropriate values of will lead to the large initial angle. represents the response performance of the estimated speed. The increase of will reduce the response time of the estimated speed and strengthen the fluctuation of the estimated speed. The decrease of has the opposite result. With the increases of , the steady-state error of the estimated speed is reduced, the leading time of estimated angle is also reduced, and the fluctuation of initial estimated angle is strengthened. The decrease of has the opposite result.

3.2. Simulation Analysis in Different Load Torques and Different Reference Speeds

The EKF estimated results in different load torques are given in the following. The load torque range of the PMSM is from 0 Nm to 0.8 Nm, and the torque simulation interval is 0.2 Nm. Speed simulation results are shown in Figure 12. With the increases of the PMSM load torque, the estimated steady-state speed increases and the fluctuation becomes larger. Angular errors with the sinusoidal operation are shown in Figure 13. The increase of the load torque will lead to the increase of the estimated angle leading time. Meanwhile, the error and distortion of the estimated angle occur when the load torque increases.

Set the load torque to 0.2 Nm; EKF simulation results are presented in different reference speed. The reference speed is 1000 r/min, 2000 r/min, and 3000 r/min; simulation results are shown in Figures 14 and 15.

Based on Figures 12 and 13, when EKF parameters are constant, the steady-state errors of the estimated speed and the steady-state errors of the estimated angular will increase with the load torque increases. In the fixed load torque, EKF parameters can be adjusted to make the estimated steady-state speed track the actual speed, but it has little effect on the angular error. Based on Figures 14 and 15, the decrease of the reference speed will reduce errors of the estimated speed and the estimated angle.

4. The Design of EKF Sensorless Control System

4.1. EKF Parameters Tuning Method

An EKF parameter tuning method can be proposed based on the theoretical and simulation analysis results as follows.

(1) Set Initial Values of , , and Based on the Theoretical Analysis. Set based on the measurement errors. Set based on the theoretical analysis. It is impossible to set the initial based on the theoretical analysis, so set as a unit diagonal matrix.

(2) Is Set at First. The first step is to set to ensure the response performance of the estimated speed. The second step is to set to ensure the steady-state tracking performance of the estimated speed. and are set to reduce the fluctuation of the estimated speed at last step. Finally adjust to obtain the optimized initial performance of the estimated speed and the estimated angle.

4.2. The Structure of the Sensorless Control System

The EKF estimated results cannot directly be used in the sensorless control for the following issues: (1) the errors between EKF estimated values and actual values always exist because of the approximation of PMSM equations; (2) the EKF estimated initial angle is inaccurate and cannot be used; (3) the accuracy of EKF estimated results is different in different load torques and different reference speeds.

To solve these issues a sensorless control system is proposed based on the analysis of the EKF sensorless control. The system takes the following measures. (1) The leading time of the estimated angle can be corrected by the time delay module. (2) The inaccurate initial estimated angle can be replaced by the estimated angle of a direct method based on the PMSM model when the PMSM starts. (3) A parameter self-regulating system is designed to self-regulate EKF parameters and correct the estimated speed and the estimated angle based on the electromagnetic torque and the reference speed.

The EKF sensorless control system of the PMSM is shown in Figure 16. The parameter self-regulating system is shown in Figure 17. The field-oriented control is used in this sensorless control system. An electromagnetic torque estimation module is designed to estimate the electromagnetic torque. The postprocessing module is designed to correct the estimated speed and the estimated angle.

4.3. The Design of the Parameter Self-Regulating System

The electromagnetic torque can be obtained by the torque estimation module. Angle distortion will occur by using a single EKF parameter when the load torque is large. Therefore, the PMSM self-regulating system is divided into three sections based on values of the electromagnetic torque. Each section has itself EKF parameters. According to the simulation analysis of EKF estimated results, the torque section is divided as follows: Section  1: load torque 0–0.25 Nm; Section  2: load torque 0.25–0.55 Nm; and Section  3: load torque 0.55–0.8 Nm.

Only the state noise covariance matrix needs to be regulated in each section; other parameters are constant. EKF parameters of each section are obtained through the EKF parameter tuning method as follows.

Section  1 is

Section  2 is

Section  3 is

The influence of the reference speed on estimated results is assumed to be linear based on the simulation analysis of EKF estimated results. At speed compensation, the lower limit torque of each section is set to be the electromagnetic torque reference, and the correction reference of the reference speed is the PMSM rated speed. The negative compensation is added to the estimated speed when the electromagnetic torque increases from the reference value. The absolute value of the compensation decreases when the reference speed decreases from the PMSM rated speed. The increase of the reference speed has the opposite result. The general equation of the speed modification can be obtained:where is the corrected speed, unit:  r/min; is the EKF estimated speed; is the electromagnetic torque; is the PMSM rated speed; is the reference speed; is the lower limit torque in each section; is the torque correction gain; is the speed correction gain.

The EKF estimated rotation angle always has the leading time compared with the actual rotation angle. The leading time of the estimated rotation angle is related to the load torque and the reference speed. The delay module can be used to solve the problem. The delay time is set as follows. The reference delay time is set to be the inherent leading time of the EKF estimated rotation angle in the electromagnetic torque reference and the PMSM rated speed. The delay time compensation is added to the reference delay time. The delay time compensation increases when the electromagnetic torque increases from the reference value. The delay time compensation and the reference delay time decrease when the speed decreases from the PMSM rated speed. The increase of the reference speed has the opposite result. The general equation of the delay time is where is the actual delay time, is the reference delay time, and and are the speed correction gain.

The estimated angle contains harmonics, which will affect motor control. So the estimated angle must be filtered, and the filter will bring the delay time to be considered. The selection of the correction gain in (11) and (15) is based on the low pass filter and PMSM parameters through repeated simulation and debugging. The speed modification compensations are as follows.

Section  1 is

Section  2 is

Section  3 is

Angle delay times in each section are as follows.

Section  1 is

Section  2 is

Section  3 is

5. Simulation Result

The simulation model of the EKF sensorless control system is built in MATLAB/Simulink software based on Figures 16 and 17. Two reference speed signals shown in Figure 18 are used to test the performance of the EKF sensorless control system.

For the reference speed signals, the performance of the sensorless control system is, respectively, given in the load torques 0 Nm, 0.2 Nm, 0.4 Nm, and 0.6 Nm while other parameters are kept constant. The simulation results at the first speed signal are in Figures 1922. The simulation results at the second speed signal are in Figures 2326.

At the speed estimation, with the load torque increases, the fluctuation of the estimated speed becomes large, and the settling time becomes large when the reference speed changes. Especially in load torque 0.6 Nm, when the reference speed changes, the fluctuation of the new speed is very severe, and it is impossible to eliminate the fluctuation in speed 1000 r/min. At the angle estimation, the estimating error of the angle is very small when the system is running steadily. But in the regulating process, the angular error is obvious.

Based on all speed and angle response results in Figures 1926, it can be seen that by using the estimated speed and the estimated angle the sensorless control system performs well in startup, operation, and speed change of the PMSM. The sensorless control system can estimate the speed and the angle accurately in different load torques and different reference speeds; thus, the PMSM can run smoothly without sensors. The system operates fast and smoothly when the speed changes from 3000 r/min down to 2000 r/min or from 2000 r/min down to 1000 r/min.

6. Conclusion

Based on the theoretical and simulation analysis of the EKF sensorless control system, an EKF parameters tuning method is proposed for the PMSM sensorless control application. Then the simulation study of EKF estimated results in different reference speeds and different load torques is presented. Thus, the EKF postprocessing system is given to use the reference speed and the electromagnetic torque to self-regulate EKF parameters and correct the estimated speed and the rotation angle. Simulation results verify that this method can realize PMSM sensorless operation in different torques and different speeds; the performance of the speed response and tracking is satisfying.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.