Abstract
In allusion to the phenomenon that the extended Kalman filter is easy to diverge in the mover position estimation of permanent magnet synchronous linear motor, a linear motor extended Kalman filter speed estimation method based on attenuation memory is designed. By setting the attenuation factor, α, the extended Kalman filter is introduced to increase the weight of the latest speed data and restrain the divergence of the filter, so as to achieve a better speed tracking effect. In the simulation experiment of the sensorless control of a linear motor, the AMEKF algorithm can significantly improve the speed estimation accuracy of standard EKF, and the speed estimation error is reduced by 0.75%. At the same time, it still maintains a good speed tracking effect and good dynamic performance under variable speed and different load conditions.
1. Introduction
In the field of modern motor control, permanent magnet synchronous linear motor (PMSLM) is widely used in high-end manufacturing industries such as CNC machine tools, high-performance laser cutting machines, and semiconductor manufacturing equipment because of its high thrust density, high dynamic response, long stroke, and direct drive without intermediate links [1,2,3]. However, the use of a speed sensor destroys the characteristics of a simple structure, limits its application range, and reduces the robustness of the whole system. Therefore, speed sensorless control has become an important research direction of the modern AC drive [4,5,6].
The Extended Kalman filter (EKF) algorithm is the extended application of the Kalman filter algorithm for linear system state estimation in a nonlinear system [7]. Because the filter gain can adapt to the environment and adjust automatically, it provides an iterative nonlinear estimation algorithm and avoids differential operation. Therefore, EKF itself is an adaptive system that can estimate the system state online and realize the real-time control of the system [8,9,10,11].
In reference [12], Zhu Jun et al. studied the sensorless control of PMLSM based on an improved volumetric Kalman filter, and proposed an improved algorithm of a volumetric Kalman filter for the problem of filter divergence. Although its speed estimation curve can keep up with the change trend of actual speed, the error is small. In reference [13], Li Xingyu et al. proposed a low-speed sensorless control strategy of a permanent magnet linear motor based on the pulse vibration high-frequency injection method, which has a good speed dynamic tracking effect.
The research shows that the EKF linearizes the estimated state vector at each sampling time. As K gets bigger, the ratio of historical data in the filtered value is too large, while the proportion of new data is too small [14]. When there are model errors and calculation errors in the system, the effect of new observation data on state estimation is too small to effectively suppress the influence of errors on state estimation, resulting in distortion of the covariance matrix and a divergence of filtering [15,16,17].
To solve the above problems, an attenuated memory-extended Kalman filter (AMEKF) speed estimation method is proposed. The attenuation factor is introduced to increase the weight of the latest speed data and restrain the filter divergence, so as to achieve a better speed tracking effect. This method has low requirements for the accuracy of the system model and parameters, high system stability, and strong robustness.
2. PMLSM Mathematical Model
The motor selected in this paper is the basic model, as illustrated in Figure 1.
Figure 1.
PMLSM model figure.
PMLSM is a strong coupling and multivariable nonlinear system. In this paper, the mathematical model of a synchronous rotating coordinate axis is selected for controller analysis. It is assumed that in the motor air gap, the excitation magnetic field and armature reaction magnetic field have a sinusoidal distribution, ignoring the magnetic saturation effect, motor eddy current, and hysteresis loss, and ignoring nonlinear friction and other factors [18,19,20]. The voltage equation of PMLSM can be obtained as:
In the above formula, RS is the stator resistance; is the PMLSM polar distance; v is the running speed of the linear motor; ud and uq is the voltage of the shaft; id, iq is the current of the shaft; Ld, Lq is the inductance component of the shaft; is the permanent magnet flux linkage. The equation of the stator flux is:
From Formula (1), the current state equation is:
The electromagnetic thrust equation of PMLSM is:
In the above formula, Fem is the thrust of linear motor and pn is the pole logarithm of the linear motor. Because the PMLSM is used, the thrust equation can be simplified to:
The equation of motion of PMLSM is:
In the above formula, m is the mover mass, B is the viscous friction coefficient, and f is the system disturbance. Simultaneous Formulas (5) and (6) can be obtained:
In the above formula:
3. Extended Kalman Filter
Because Kalman is based on a linear system, it is only suitable for the state estimation of linear systems. In order to effectively estimate nonlinear systems, an extended Kalman filter is proposed. EKF simply linearizes the nonlinear system model by first-order or second-order Taylor extension of the nonlinear system function near the best estimation point, ignoring the high-order components. The state estimation of EKF is roughly split into two stages: the first part is the prediction stage, followed by the correction stage. Its advantage is that the system state can still be estimated when the system is noisy [21,22,23]. The relationship is shown by the following formula:
The general form of the EKF equation is:
Among:
where is a state variable; is the observational measurement; Y is the real measurement; A is the state matrix; Input matrix for B; C is the observation matrix; U is the input variable; K is the gain matrix.
Discretize Equation (9) to obtain
Figure 2 shows its implementation flow chart:
Figure 2.
AMEKF flow chart.
The specific steps are as follows: predict the state vector, that is, estimate x from the system input U(k) and the state of the last sampling time to realize the estimation of the state vector at the next sampling time:
Calculate error covariance matrix:
Calculate Kalman filter gain matrix:
State predictive value correction:
Error covariance matrix correction:
where A’ is the discrete state matrix, B’ is the discrete input matrix, and C’ is the discrete observation matrix; “∼” indicates the predicted value; “^” indicates the check value. The gradient matrix is , and is the filter gain of the extended Kalman filter, expressed as the degree of deviation between the filter estimation and the real state.
4. Attenuated Memory Extended Kalman Filter Algorithm
4.1. Filtering Algorithm
As a filter of wireless growth memory, the optimal estimation data at time K comes from all observation data before this time. Moreover, with the increase of K, the proportion of historical data will also be large, and the ratio of new data is too small. Especially in the motor start-up stage, the data changes violently, which has a great impact on the overall data. When there is calculation or system error, the correction effect of new observation data on state estimation is too small to suppress the impact of error on state estimation, resulting in filter divergence [24,25,26]. Therefore, in order to avoid the strong proportion of start-up data in filtering, which leads to the increase of tracking error, for the filtering divergence caused by model error, we should try to increase the role of new observation data and relatively reduce the influence of historical data on filtering value. Enter the AMEKF algorithm to reduce the influence of historical data information on filtering and the proportion of corresponding new data will increase within a certain range, so as to improve the tracking of motor speed. The attenuation memory algorithm is to introduce an attenuation factor into the observation noise covariance matrix, α, order:
where attenuation factor, α, is an empirical value and α ≥ 1. In theory, when α > At 1:00, the weight of the past observation data will be weakened, and the weight of the current latest observation data will be increased. Meanwhile, if the value of α is too large, the filter will vibrate.
Under the attenuated memory extended Kalman filter algorithm, the error covariance matrix, gain matrix, and state prediction value correction equation can be expressed as:
where “*” represents the extended Kalman equation after the memory attenuation algorithm.
4.2. AMEKF Control Structure
The PMLSM model of the AMEKF sensorless control scheme is illustrated in Figure 3. where “*” indicates the current input to the current loop controller.
Figure 3.
PMSLM vector control structure based on AMEKF.
The system adopts three PI regulators to form a double closed-loop speed regulation system with outer speed loop and inner current loop.
As shown in Figure 4, the discrete PI regulator is used to estimate the deviation of output speed according to the given speed of the system and AMEKF, where it is possible to adjust the given value of torque current through the set KP and Ki, and output it.
Figure 4.
PI speed loop speed control structure.
As shown in Figure 5, The discrete PI regulator is adopted. The torque current and excitation current PI regulator adjusts the corresponding stator voltage setting values of the d and q axes according to the deviation between the detection current and the current setting value.
Figure 5.
PI current loop speed control structure.
The input of the AMEKF speed estimation module is the stator current and the stator voltage in a static coordinate system, and the output is the estimated speed.
5. Simulation
The PMSLM sensorless control model based on AMEKF is established in Matlab/Simulink. The model adopts the double closed-loop speed regulation system of outer speed loop and inner current loop, and the simulation model is established according to the motor driving parameters, as shown in Table 1.
Table 1.
The main parameters of motor.
As shown in Figure 6a,b, the comparison results of the measured and estimated speed values using EKF and AMEKF are shown, respectively. In the simulation, the motor runs without load after starting. The graph shows that the speed estimation errors of the two algorithms have certain errors in the rising stage of speed, but the speed estimation error decreases gradually with the rise of speed and stable operation.
Figure 6.
Measured and estimated velocity. (a) Actual speed and estimated speed under EKF algorithm. (b) Actual speed and estimated speed under AMEKF algorithm.
Comparing Figure 7a,b shows that when the motor speed reaches the reference speed, EKF has a large estimation error, and the maximum fluctuation amplitude is 0.04. If the AMEKF estimation is used, the fluctuation is significantly reduced, and the maximum steady-state fluctuation amplitude is 0.02.
Figure 7.
Speed estimation error. (a) EKF velocity estimation error. (b) AMEKF velocity estimation error.
The reference speed of the control system is set as the sinusoidal waveform and fluctuates at the median speed of 2m/s, as shown in Figure 8a,b, which is the actual speed waveform and speed estimation waveform of EKF and AMEKF. Figure 8c,d show the speed estimation errors of EKF and AMEKF. It can be seen from the figure that AMEKF can effectively suppress divergence, even under long-time operation conditions. Compared with EKF, AMEKF has less actual speed estimation error and a better tracking effect.
Figure 8.
Comparison of velocity estimation under sinusoidal condition. (a) Actual speed and estimated speed under EKF algorithm. (b) Actual speed and estimated speed under AMEKF algorithm. (c) EKF velocity estimation error. (d) AMEKF velocity estimation error.
As shown in Table 2. The above verification shows that AMEKF has better performance than EKF in speed estimation. In order to verify its dynamic performance, the motor starts without load and adds different loads at 2 S. As shown in Figure 9, the AMEKF algorithm is used to add 100 N, 200 N, 300 N, and 400 N loads for simulation. The results indicate that the control system has the better dynamic response under different torque loads and different loads, and the control system has good robustness.
Table 2.
Velocity fluctuation error.
Figure 9.
Actual and estimated speeds under different torque loads. (a) Sudden 100 N load. (b) sudden 200 N load. (c) sudden 300 N load. (d) sudden 400 N load.
The curves of torque versus time of a linear motor with 100 N, 200 N, 300 N, and 400 N loads added at 2 S are shown in Figure 10.
Figure 10.
Torque variation under sudden load. (a) Sudden 100 N load. (b) Sudden 200 N load. (c) Sudden 300 N load. (d) Sudden 400 N load.
The motor has no stall in the process of sudden change of load torque and long-time operation. The speed estimation and mover position error show that AMEKF can well estimate the motor mover position under sudden change of load torque and constant working conditions. The verification results indicate that the proposed method has strong robustness and verify the reliability of this method.
6. Experiment
The experimental platform built in this paper is shown in Figure 11. The platform uses a TMS320F28335 chip to control PMLSM. The mechanical sensors of the controlled motor are used for speed comparison and observer verification. The motor parameters in the experiment are consistent with those in the simulation.
Figure 11.
Experimental diagram.
The given speed of the control system is 0.5 m/s. At 0.3 s, the given speed increases to 1 m/s, and at 0.8 s, the given speed of the system decelerates to 0.7 s/m. Figure 12 shows the actual speed and estimated speed waveform of the EKF control system, and Figure 13 shows the actual speed and estimated speed waveform of the AMEKF control system. It can be seen that, in the experiment, the AMEKF algorithm designed in this paper has better speed estimation performance than EKF.
Figure 12.
Actual speed and estimated speed under EKF algorithm.
Figure 13.
Actual speed and estimated speed under AMEKF algorithm.
In Figure 14a,b, the speed errors of the motor under EKF and AMEKF are shown, respectively. It can be seen from the figure that, in the case of sudden speed change, the two-speed estimation algorithms have certain estimation error fluctuations, but when the speed is stable and at the given speed, the AMEKF algorithm has little fluctuation and estimation errors.
Figure 14.
Speed estimation error. (a) EKF velocity estimation error. (b) AMEKF velocity estimation error.
7. Conclusions
In this paper, speed estimation based on the Extended Kalman Filter method of a linear motor based on attenuation memory is proposed to estimate the motor speed. The purpose is to estimate the speed of a linear motor. This method can estimate the speed of a linear motor well under no-load and sudden torque change. The motor runs smoothly without bad phenomena such as stall. The control system has strong robustness to motor parameters and model errors. This method does not require a high accuracy of motor parameters and model, but has certain requirements for the accuracy of measurement data. During the actual debugging, the attenuation factor can be adjusted according to the system conditions to balance the impact of model inaccuracy and parameter measurement error on the system and realize the optimization of the system. Compared with the EKF algorithm, the AMEKF algorithm has better estimation performance in speed estimation, but it has a large amount of computation in practical application. Therefore, simplification of the AMEKF algorithm still needs to be further studied. The speed estimation algorithm designed in this paper has a certain reference value for the speed sensorless control system of a linear motor.
Author Contributions
Writing—review and editing, supervision, project administration, funding acquisition, L.Z.; review and editing, supervision, project administration, funding acquisition, H.S. (Z.L. and H.S. contributed equally to this work as co-correspondent author); methodology, software, writing—original draft preparation, L.Z. and J.W.; validation, W.S., P.W. and X.G. All authors have read and agreed to the published version of the manuscript.
Funding
This work is supported by the National Natural Science Foundation of China (No. 51877070, U20A20198, 51577048), the Natural Science Foundation of Hebei Province of China (No. E2021208008), the Talent Engineering Training Support Project of Hebei Province (A201905008), the National Engineering Laboratory of Energy-saving Motor & Control Technique, Anhui University (No. KFKT201901).
Conflicts of Interest
The authors declare no conflict of interest.
References
- Jing, Z.; Wang, W.; Zhou, Y.; Zhao, J. Robust high precision multi-frame motion detection for PMLSMs’ mover based on local upsampling moving least square method. Mech. Syst. Signal Process. 2021, 159, 107803. [Google Scholar]
- Li, L.; Liu, Y.; Li, L.; Tan, J. Kalman-Filtering Based Iterative Feedforward Tuning in Presence of Stochastic Noise: With Application to a Wafer Stage. IEEE Trans. Ind. Inform. 2019, 15, 5816–5826. [Google Scholar] [CrossRef] [Scilit]
- Yang, R.; Wang, M.; Li, L.; Wang, G.; Zhong, C. Robust Predictive Current Control of PMLSM with Extended State Modeling Based Kalman Filter: For Time-Varying Disturbance Rejection. IEEE Trans. Power Electron. 2020, 35, 2208–2221. [Google Scholar] [CrossRef] [Scilit]
- Ali, N.; Liu, Z.; Armghan, H.; Armghan, A. Super-twisting sliding mode controller for maximum power transfer efficiency tracking in hybrid energy storage based wireless in-wheel motor. Sustain. Energy Technol. Assess. 2022, 52, 102075. [Google Scholar] [CrossRef] [Scilit]
- Pallavolu, M.R.; Kumar, Y.A.; Mani, G.; Alshgari, R.A.; Ouladsmane, M.; Joo, S.W. Facile fabrication of novel heterostructured tin disulfide (SnS2)/tin sulfide (SnS)/N-CNO composite with improved energy storage capacity for high-performance supercapacitors. J. Electroanal. Chem. 2021, 899, 115695. [Google Scholar] [CrossRef] [Scilit]
- Kumar, Y.A.; Kumar, K.D.; Kim, H.-J. A novel electrode for supercapacitors: Efficient PVP-assisted synthesis of Ni3S2 nanostructures grown on Ni foam for energy storage. Dalton Trans. 2020, 49, 4050–4059. [Google Scholar] [CrossRef] [Scilit]
- Peng, Z. Predictive Current Control of Permanent Magnet Synchronous Motor Based on Parameter Identification; Harbin Institute of Technology: Harbin, China, 2017. [Google Scholar]
- Sultn, H.M. Design and Modeling of a Robust Sensorless Control System for a Linear Permanent Magnet Synchronous Motor. Electronics 2021, 10, 966. [Google Scholar]
- Chen, L.; Lichuan, L.I. Development of the Linear Motor and Its Key Technologies for Reciprocating Compressors. Proc. CSEE 2013, 33, 52–68. [Google Scholar] [CrossRef]
- Yin, Z.; Bai, C.; Du, C.; Liu, J. Predictive Beat Current Control Method for Permanent Magnet Synchronous Linear Motor Based on Internal Mode Disturbance Observer. Electrotech. J. 2018, 24, 5741–5750. [Google Scholar] [CrossRef]
- Li, D.E. Low Speed Performance Improvement of Sensorless Vector Control for Induction Motor Based on EKF; Xi’an University of Science and Technology: Xi’an, China, 2021. [Google Scholar] [CrossRef]
- Zhu, J.; Liu, B.; Wang, H.; Li, Z.; Zhang, Z. Research on Sensorless Control of PMLSM Based on improved volume Kalman Control engineering. Control Eng. China 2021, 28, 471–477. [Google Scholar] [CrossRef]
- Li, X.; Du, J.; Liang, D.; Huang, L.; Lou, J. Sensorless low speed control of permanent magnet linear motor based on improved pulse injection method. J. Electr. Mach. Control 2018, 22, 30–36. [Google Scholar]
- Heidari, H.; Rassõlkin, A.; Razzaghi, A.; Vaimann, T.; Kallaste, A.; Andriushchenko, E.; Belahcen, A.; Lukichev, D.V. A Modified Dynamic Model of Single-Sided Linear Induction Motors Considering Longitudinal and Transversal Effects. Electronics 2021, 10, 933. [Google Scholar] [CrossRef] [Scilit]
- Taghavifar, H. EKF estimation based PID Type-2 fuzzy control of electric cars. Measurement 2020, 173, 108557. [Google Scholar] [CrossRef] [Scilit]
- Dong, X.; Zhang, C.; Jiang, J. Evaluation of SOC Estimation Method Based on EKF/AEKF under Noise Interference. Energy Procedia 2018, 152, 520–525. [Google Scholar]
- Kumar, Y.A.; Kim, H.J. Preparation and electrochemical performance of NiCo2O4@NiCo2O4 composite nanoplates for high performance supercapacitor applications. New J. Chem. 2018, 42, 19971–19978. [Google Scholar] [CrossRef] [Scilit]
- Abelrahem, M.; Hackl, C.; Kennel, R. Robust Predictive Control Scheme for Permanent-Magnet Synchronous Generators Based Modern Wind Turbines. Electronics 2021, 10, 1596. [Google Scholar] [CrossRef] [Scilit]
- Li, Z.; An, J.; Xiao, Y.; Zhang, Q.; Sun, H. Design of Model Predictive Control System for Permanent Magnet Synchronous Linear Motor Based on Adaptive Observer. Electrotech. J. 2021, 4, 1190–1200. [Google Scholar] [CrossRef]
- Li, Z.; Wang, R.Y.; Xiao, Y.; Zhou, S.; Shi, Y.; Xue, Z. Ant colony since the optimal sliding mode control in the application of permanent magnet synchronous linear motor. J. Hunan Univ. Sci. Technol. 2020, 35, 77–84. [Google Scholar] [CrossRef]
- Kung, Y.S.; Thanh, N.P.; Wang, M.S. Design and simulation of a sensorless permanent magnet synchronous motor drive with microprocessor-based PI controller and dedicated hardware EKF estimator. Appl. Math. Model. 2015, 39, 5816–5827. [Google Scholar] [CrossRef] [Scilit]
- Lin, Y.P. Speed Control of Sensorless BLDCM Based on EKF Phase Gain Correction. Electric. Drive 2007, 37, 12–15. [Google Scholar] [CrossRef]
- Liu, H.P.; Zhang, Q.F. Research on a Modified EKF for Speed Estimation in Induction Motor Drives. In Proceedings of the 2007 IEEE International Conference on Integration Technology, Shenzhen, China, 20–24 March 2007. [Google Scholar]
- Leite, A.V.; Araujo, R.E.; Freitas, D. Full and reduced order extended Kalman filter for speed estimation in induction motor drives: A comparative study. In Proceedings of the 2004 IEEE 35th Annual Power Electronics Specialists Conference (IEEE Cat. No.04CH37551), Aachen, Germany, 20–25 June 2004. [Google Scholar]
- Yin, Z.; Xiao, L.; Sun, X.; Liu, J.; Zhong, Y. Speed Estimation method of Fuzzy Extended Kalman Filter for Induction Motor Based on Particle Swarm Optimization. Electrotech. J. 2016, 31, 55–65. [Google Scholar] [CrossRef]
- Hernandez-Barragan, J.; Rios, J.D.; Alanis, A.Y.; Lopez-Franco, C.; Gomez-Avila, J.; Arana-Daniel, N. Adaptive Single Neuron Anti-Windup PID Controller Based on the Extended Kalman Filter Algorithm. Electronics 2020, 9, 636. [Google Scholar] [CrossRef] [Scilit]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 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 (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

















