Abstract
Sensorless vector control of Permanent Magnet Synchronous Motor (PMSM) must estimate the speed and rotor position of the motor. An Extended Kalman Filter (EKF) is proposed to estimate the speed and rotor position of PMSM. Firstly, the nonlinear state equations are established by combining the voltage equation in α−β reference frame and motion equation. Then, the nonlinear state equations are linearized and discretized which are added into EKF algorithm for iterative operation. Finally, Kalman gain Kk is selected to make the estimated value approach the actual value. The simulation results show that the algorithm is capable of estimating rotor position and speed accurately which has perfect dynamic and static performance.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
PMSM has high power density, strong overload capacity, and excellent dynamic and static performance [1], it is widely used in high-precision control fields such as new energy vehicles and Industrial robots. In modern high performance drives of PMSM, speed and rotor position is the key to realize accurate motor control. The sensor can accurately measure the above two values. However, the installation of sensors affects the robustness and reliability of the control system. Therefore, sensorless control has attracted many scholars to study.
In [2], a phased PI regulator-based Model Reference Adaptive System (MRAS) is proposed to realize sensorless control over the full speed range. In order to solve the problems of chattering noise inherent, a method of terminal Sliding Mode Observer (SMO) based on closed-loop control of back electromotive force harmonics was proposed [3]. The literature [4] had replaced the band-pass filter and the high-pass filter in the conventional signal demodulation through the second-order generalized integrator. Compared with the first three methods, EKF observer has advantage of suppressing measurement error and model error. The literature [5] introduce the development and research status of EKF. An improved Kalman filter based on differential evolution algorithm (DEA) and multi-objective DEA (MODEA) is proposed [6], which can choose optimal covariance matrix. A parallel reduced-order EKF is proposed which can improve prediction accuracy [7]. A variety of optimization algorithms are combined with EKF to obtain the optimal control [8,9,10]. In this paper, PMSM motion equation is added to EKF algorithm to decrease the loss of estimation caused by load change.
2 Mathematical Model of PMSM
PMSM is a nonlinear and strong coupling system. In order to achieve decoupling control, the three-phase coordinate system needs to be decoupled into a two-phase stationary coordinate. The mathematical model in the stationary frame of PMSM are as follows.
where iα, iβ, uα and uβ are the current and voltage in the α-β reference frame, respectively, Rs, Ls and ψf are stator resistance, stator inductance and rotor permanent magnet flux, ωe is the electric angular velocity of the motor, θ is the rotor position angle, and np is pole-pairs. Motor motion equation can be written as.
where Tl and J are load torque and momentum of inertia. In order to realize precise control of PMSM, it is necessary to use EKF algorithm to estimate the motor speed and rotor position. Firstly, Combine Formula (1) with Formula (2), we can get f(x), matrix B and matrix C as follows
Then, the state equation and observation equation are established as follows.
where x = [iα iβ ωe θ]T is the state variable, u = [uα uβ]T is the input variable, y = [iα iβ]T is the measurement variable, w is the system noise, which represents the inaccuracy of the motor mathematical model and the system disturbance noise; v is the measurement noise, which is caused by sampling deviation and AD sampling error.
3 State Estimation Based on EKF
EKF is the application of Kalman filter algorithm in nonlinear systems, and it is an optimal state estimation with minimum variance. Compared with other sensorless control strategies, it can effectively suppress the system error and measurement error, and improve the accuracy of state estimation. Firstly, the nonlinear mathematical model of PMSM needs to be linearized and discretized. The Jacobian matrix F(x) is the derivative of f(x) in Formula (3) versus iα, iβ, ωe and θ respectively. The F(x) can be written as follows.
Assuming that the sampling time TS is small enough, Formula (2) can be discretized as follows.
where I is the identity matrix and both w(k) and v(k) satisfy Gaussian distribution. According to Formula (6), Q and R are covariance matrix of w(k) and v(k), respectively. The value of Q and R will affect the robustness and dynamic performance of system. It requires many experience to get optimal value.
Based on the above, EKF algorithm is implemented as follows. Formula (7) is the prediction estimation equation, and \({\hat{\text{x}}}\) is the estimated value, respectively, \(\hat{y}\) is the input estimate value.
Formula (8) is the calculation of system error covariance matrix Pk|k-1 and Fk|k-1 is Jacobian matrix.
Formula (9) is used to calculate the Kalman gains. The purpose of EKF is to find the optimal Kk, so that the estimated value can approach the actual value.
Formula (10) is based on the optimal Kk, which corrects the error between forecast and updates value, and the update covariance matrix can apply to the next calculation.
In the above formula, ‘^’ represents the estimated value.
EKF is a recursive algorithm. In the initial stage of the algorithm, the initial values of the state vector x and the error covariance matrix P need to be determined first. The selection of the initial value of x is related to the initial state of the motor. When the PMSM is at standstill, the current and speed are both zero. Assuming that the initial position is also zero, then the initial value of state variable x = [0,0,0,0]T. Moreover, The initial value of the error covariance matrix affects the error of the initial state. Generally, P is a diagonal matrix. According to experiments, P = [0.1 0.1 0 0] is the optimal parameter.
In addition, the key of state estimation is to choose a reasonable Kk so that the estimated value can effectively track the actual value x. According to Formula (7), when Kk is large, the state prediction value is more inclined to the input value. On the contrary, the predicted value is more related to the estimator.
When choosing a reasonable Kk value, it is necessary to consider the system covariance matrix Q and noise covariance matrix R to prevent the system from diverging, causing the rotation speed and rotor position to deviate from the actual value. After many experiments, set Q = [0.5 0.5 20 0.02]T, R = [0.02 0.02]T.
4 Experimental Results and Analysis
In order to verify the EKF algorithm, it is necessary to carry out a simulation experiment on the proposed speed sensorless vector control system. The system block diagram is shown in Fig. 1. The system adopts the control method of id = 0, and the control loop includes speed control loop and current control loop. The output PI of the speed loop is used as the quadrature axis current reference signal, the difference between the reference current and the actual current is used as the input of the current loop PI, and its output is used as the SVPWM signal to drive the inverter.
The parameters of PMSM used in the experiment are shown in Table 1. Set the speed n = 1200 r/min, set the simulation time as 1 s, and suddenly add 3N\(\cdot\)m load at 0.2 S.
According to Fig. 2, the algorithm needs time to estimate the speed. Therefore, at the start-up time, there is a delay between the estimated speed and the actual speed. After about 0.07 s, the estimated speed follows the actual speed, both of which are stable on the reference speed.
As can be seen from Fig. 3, after reaching the steady state, the operating speed error is within plus or minus 10 r/min. At 0.2 s, the system suddenly adds a 3N\(\cdot\)m load. Meanwhile, the actual speed has dropped about 50 r/min. In this case, the EKF algorithm can still follow the speed quickly and reach stability. In general, no matter in no-load or load conditions, the error of speed estimation is small.
Figure 4 is a comparison diagram of the estimated rotor position and the actual position, and Fig. 5 is the error curve of the two. In the case of sudden load, the position error changes very little, which can meet the control requirements.
According to Fig. 6, when the load changes suddenly, the torque can be accurately stabilized on the reference value, and the response is fast. At this time, the system runs stably and has better dynamic performance.
5 Conclusion
This paper uses PMSM α−β reference frame to design a vector control system based on EKF. In this method, the anti-disturbance advantage of EKF reduces the sensitivity of the system to parameters and realizes double closed-loop control of motor speed and current. The simulation results show that the system can accurately follow the rotor position and speed in the no-load or load conditions.
References
Weiming, M., Dong, W., Siwei, C., et al.: Common basic scientific problems and development of leading-edge technology of high performance motor system. Proc. CSEE 36(8), 2025–2035 (2016). (in Chinese)
Zhenfeng, Z., Mengjia, J., Jianxin, S.: Full speed range sensorless control of permanent magnet synchronous motor with phased pi regulator-based model reference adaptive system. Proc. CSEE 2018 38(04), 1203–1211+1297. (in Chinese)
Shuying, Y., Shiyuan, L., Haoyuan, L., et al.: Research on harmonic suppression strategy of position sensorless control for permanent magnet synchronous motor. Proc. CSEE 39(20), 6075–6084+6188 (2019). (in Chinese)
Sichen, D., Li, Q., Xiaoyong, Z., et al.: Fault-tolerant control of position sensor failure for PMSM at zero and low speed based on high frequency injection. Proc. CSEE 39(10), 3038–3047 (2019). (in Chinese)
Yin, Z., Gao, F., Zhang, Y., Du, C., Li, G., Sun, X.: A review of nonlinear Kalman filter appling to sensorless control for AC motor drives. CES Trans. Electr. Mach. Syst. 3(4), 351–362 (2019). https://doi.org/10.30941/CESTEMS.2019.00047
Zerdali, E., Barut, M.: The comparisons of optimized extended Kalman filters for speed-sensorless control of induction motors. IEEE Trans. Ind. Electron. 64(6), 4340–4351 June 2017 Author, F 2(5), 99–110 (2016)
Quang, N.K., Hieu, N.T., Ha, Q.P.: FPGA-based sensorless PMSM speed control using reduced-order extended Kalman filters. IEEE Trans. Industr. Electron. 61(12), 6574–6582 (2014). https://doi.org/10.1109/TIE.2014.2320215
Bolognani, S., Tubiana, L., Zigliotto, M.: Extended Kalman filter tuning in sensorless PMSM drives. IEEE Trans. Ind. Appl. 39(6), 1741–1747 (2003). https://doi.org/10.1109/TIA.2003.818991
Salvatore, N., Caponio, A., Neri, F., Stasi, S., Cascella, G.L.: Optimization of delayed-state Kalman-Filter-based algorithm via differential evolution for sensorless control of induction motors. IEEE Trans. Industr. Electron. 57(1), 385–394 (2010). https://doi.org/10.1109/TIE.2009.2033489
Zhonggang, Y., Xiao, L., Xiangdong, S., Jing, L., Yanru, Z.: A speed estimation method of fuzzy extended Kalman filter for induction motors based on particle swarm optimization. Trans. China Electrotech. Soc. 31(06), 55–65 (2016). (in Chinese)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Li, Y., Lan, Z., Su, X., Dai, S. (2022). Speed and Position Estimation Algorithm of Permanent Magnet Synchronous Motor Based on Extended Kalman Filter. In: Yang, Q., Liang, X., Li, Y., He, J. (eds) The proceedings of the 16th Annual Conference of China Electrotechnical Society. Lecture Notes in Electrical Engineering, vol 889. Springer, Singapore. https://doi.org/10.1007/978-981-19-1528-4_51
Download citation
DOI: https://doi.org/10.1007/978-981-19-1528-4_51
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-19-1527-7
Online ISBN: 978-981-19-1528-4
eBook Packages: EngineeringEngineering (R0)