Next Article in Journal
Design of Orbital Angular Momentum Antenna Array for Generating High-Order OAM Modes
Previous Article in Journal
Architecture for Smart Buildings Based on Fuzzy Logic and the OpenFog Standard
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Harmonic Injection Control of Permanent Magnet Synchronous Motor Based on Fading Memory Kalman Filtering

1
School of Electrical Engineering, Hebei University of Science and Technology, Shijiazhuang 050018, China
2
Hebei Kingston Technology Co., Ltd., Shijiazhuang 052300, China
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(24), 4890; https://doi.org/10.3390/electronics12244890
Submission received: 11 October 2023 / Revised: 27 November 2023 / Accepted: 1 December 2023 / Published: 5 December 2023

Abstract

:
In order to reduce the harm of harmonic disturbances of the permanent magnet synchronous motor (PMSM) control system to the drive and improve the accuracy of the control system, a harmonic injection control method based on asymptotic fading memory Kalman filtering is proposed. Compared with the traditional harmonic injection method, this method reduces the torque pulsation of the PMSM, converges faster, and realizes fast stabilization of the control system. In order to improve the control accuracy of the system, extended Kalman filtering is used to estimate the mechanical angular velocity and optimize the harmonic extraction process to reduce the interference of noise signals in the extraction process. At the same time, a fading memory factor is introduced to replace the fixed gain in the Kalman filter, which can correct the system error and effectively prevent the filtering dispersion, thus enhancing the system’s stability. Finally, the system is simulated and experimentally analyzed, and the results show that the method can improve the dynamic response speed, stability, and control accuracy of the system compared with the traditional harmonic injection method.

1. Introduction

The PMSM system has advantages of light transmission weight and strong overload resistance. It has been rapidly applied and developed in the metallurgical industry and the new energy vehicle industry. Due to the motor cogging effect, the winding design, the dead zone effect of the inverter, the measurement error of the current, and the angular velocity sensors, there are a series of harmonic interferences in the current of the PMSM, which significantly affects the stability of the control system and increases the drive loss. Among them, the fifth and seventh harmonic components will bring the sixth pulsation to the PMSM electromagnetic torque, which has a particular impact on the control stability, noise, and vibration of the motor [1,2].
To reduce torque pulsations and losses in the drive circuit, the harmonic currents must be effectively suppressed. On the one hand, harmonic-induced PMSM torque pulsations can be suppressed and improved by a structural optimization design. In terms of motor body design, the primary research to suppress harmonic currents is to improve the motor body’s cogging and magnetic field distribution to avoid the resonance mode phenomenon in specific cases [3,4,5]. Literature [6] proposed a permanent magnet synchronous motor with an asymmetric turn-self structure, which can effectively reduce the distortion rate of rotor leakage and reverse electromotive force and realize the suppression of harmonic current. Prof. Xu Xiaofeng established a model of cogging torque harmonics and the connection between motor cogging effects and cogging torque harmonics [7].
On the other hand, harmonic suppression through the control strategy is also a more effective method. The commonly used PI controller has a simple structure and is easy to implement, but it cannot effectively track the harmonic signals and has a poor control effect [8]. Feed-forward control has a specific control effect for harmonic suppression, but it relies on high-precision parameters and accurate mathematical modeling [9]. Many scholars have achieved harmonic suppression by improving controllers, such as sliding mode control and self-adaptation control. These controllers are simple in structure and easy to implement, but they need to be optimized by algorithms in practical applications [10,11]. In [12], Prof. Ying Qu proposed a self-resistant control strategy with the linear–nonlinear switching state error feedback control law, which can improve the system control accuracy but also has the problem of amplifying the noise signal. In [13], the stability of the system is improved by introducing fuzzy control and the extended state observer to increase the order of the self-immobilizing controller, thereby improving the suppression of harmonic currents. In [14], the combination of a self-adaptation controller and a Fal function filter effectively avoids the problem of amplification of unwanted noise signals, but the process of determining the parameters in the Fal function is complicated. In addition to the suppression of harmonic currents through controllers, harmonic injection control methods have better harmonic suppression capabilities and are widely used in permanent magnet synchronous motors [15,16,17,18]. Harmonic injection algorithms rely on filtering and extracting harmonic currents, so effectively extracting harmonic signals is crucial for the control effect. In literature [19], the adaptive control algorithm improves the filter to optimize the harmonic current extraction process. Still, this method is suitable for processing smooth signals and has the disadvantages of a complex training algorithm and a long time. To suppress the error caused by harmonic injection signals, a position observer with a memory factor can be constructed for realistic error tracking and compensation through an adaptive iterative learning control strategy [20,21].
Considering the effectiveness of the harmonic injection method for PMSM harmonic suppression as well as the robustness and reliability of sensorless, this paper proposes an asymptotic fading memory Kalman-filtered harmonic injection (FMKF-HI) method for torque pulsation suppression, which optimizes the extraction process of the traditional harmonic injection method, obtains a high-precision electrical signal, and improves the robustness and dynamic response of the whole system. It has good torque ripple suppression and phase current harmonic suppression. Simulations and experiments verify the effective suppression effect of harmonic current and ripple torque. The control algorithm innovations proposed in this paper are as follows:
(1) Improvement of system nonlinearity. In the state estimation of the control system, the formula derivation process under the new coordinate system is rewritten to reduce the system’s nonlinearity, shorten the sampling period, save the calculation time, and improve the control precision.
(2) Improve the accuracy. To achieve higher control precision and reduce system interference from observation noise, the FMKF-HI method is used to suppress harmonics, and the fading memory factor is introduced in the realization process, which can dynamically adjust the state estimation and prediction process, prevent the system divergence, and improve the robustness of the system.
(3) System verification. Compared with PI control and existing suppression control algorithms, the designed FMKF-HI control method has better control accuracy and robustness, which verifies the superiority of the designed system.

2. Harmonic Voltage Compensation Model

PMSM in the operation process, because of the motor body structure design, control, and other reasons, will cause the current distortion so that it contains 5, 7, 11, and other harmonic components. In the drive circuit, because the dead zone presents a 6 k ± 1 voltage harmonic, the tube voltage drop will also cause a 6 k ± 1 harmonic. Whether the motor back electromotive force harmonic or the inverter output voltage harmonic, the harmonic amplitude is attenuated with an increase in harmonic frequency, so the 5th and 7th harmonics are mainly considered. In this paper, the fifth and seventh harmonics that cause the sixth ripple of electromagnetic torque are taken as the research object, and the relevant mathematical model and harmonic suppression model are established.
In order to facilitate the establishment of the mathematical model and the design of the controller, the synchronous rotating coordinate system d q is selected to establish the parametric equation. The three-phase PMSM stator voltage equation is [22]:
u d = L d d i d d t ω L q i q + R s i d u q = L q d i q d t + ω L d i d + R s i q + ω φ f
The steady-state voltage equation of surface-mounted three-phase PMSM is rewritten in the d q axis as follows:
u d = ω L q i q + R s i d u q ω φ f = ω L d i d + R s i q
where u d and u q are PMSM d and q axis voltage, i d and i q are d and q axis current, L d and L q are d and q axis inductance, φ f is PMSM permanent magnet flux parameter, R s is stator resistance, and ω is the angular velocity of fundamental wave voltage.
In an ideal case, without considering harmonics, the above formulas are all DC components. However, in practice, due to the structural design and control of the motor body, it will contain a series of harmonic components, and the suppression and attenuation of harmonic current components cannot be realized by relevant coordinate transformation. The existence of a large number of harmonic components also does not take advantage of subsequent controller design and control accuracy improvement. In the actual control process, the fifth and seventh harmonics account for a large proportion; so this paper will analyze and study the fifth and seventh harmonics.
In the static three-phase coordinate system, the rotation speed of the fifth harmonic voltage component is 5 ω , and the rotation direction of the harmonic voltage component is opposite to the rotation direction of the fundamental wave voltage vector. The rotation speed of the seventh harmonic voltage component is 7 ω , and the rotation direction of the harmonic voltage component is the same as the rotation direction of the fundamental wave voltage vector. Based on the above analysis, the three-phase PMSM current equation can be rewritten as:
u a = u 1 sin ( ω t + θ u 1 ) + u 5 sin ( 5 ω t + θ u 5 ) + u 7 sin ( 7 ω t + θ u 7 ) + u b = u 1 sin ( ω t + θ u 1 2 3 π ) + u 5 sin ( 5 ω t + θ u 5 2 3 π ) + u 7 sin ( 7 ω t + θ u 7 2 3 π ) + u c = u 1 sin ( ω t + θ u 1 + 2 3 π ) + u 5 sin ( 5 ω t + θ u 5 + 2 3 π ) + u 7 sin ( 7 ω t + θ u 7 + 2 3 π ) +
where u 1 , u 5 , and u 7 are the amplitudes of fundamental wave, 5th harmonic voltage, and 7th harmonic voltage, respectively; θ u 1 , θ u 5 , and θ u 7 are the initial phase angles of the fundamental, 5th, and 7th harmonic voltages, respectively.
According to the theoretical analysis and verification above, to simplify the mathematical model, the voltage equation in PMSM was changed into an equation containing fundamental voltage and harmonic component voltage in the synchronous rotating coordinate system, which can be expressed as:
u d = u d 1 + u 5 cos ( 6 ω t + θ u 5 ) + u 7 cos ( 6 ω t + θ u 7 ) u q = u q 1 + u 5 sin ( 6 ω t + θ u 5 ) + u 7 sin ( 6 ω t + θ u 7 )
where u d 1 and u q 1 represent the direct axis and quadrature axis voltage components of the fundamental voltage on the synchronous rotating coordinate axis.
In the process of coordinate transformation, in the case of trigonometric function operation, the voltage harmonic components mentioned above will appear as 6th-order components in the d q synchronous rotation coordinate axis.
When PMSM is in a motorized state, factors such as motor heating, motor structure, and magnetic circuit saturation effects can cause flux distortion. In order to simplify the model formula, the fundamental magnetic flux pole pair of three-phase PMSM is set to P. According to theoretical derivation and motor model analysis, it can be obtained that the 5th harmonic magnetic flux pole pair exhibits 5P, the 5th harmonic magnetic flux rotation direction is different from the fundamental ware, the 7th harmonic magnetic flux pole pair exhibits 7P, and the 7th harmonic magnetic flux rotation direction is the same as that of the fundamental ware. PMSM permanent magnet flux φ f will generate corresponding electromotive force u φ in the rotation process, and the electromotive force u φ generated by magnetic flux rotation can be transformed into synchronous rotation coordinates by coordinate transformation.
PMSM permanent magnet flux φ f generates corresponding electromotive force u φ during the rotation process, which can be obtained by transforming the electromotive force u φ generated by the rotating flux into synchronous rotation coordinates through coordinate transformation.
u φ = ω φ f 1 5 ω φ f 5 sin ( 6 ω t + θ φ 5 ) + 7 ω φ f 7 sin ( 6 ω t + θ φ 7 )
In the formula, φ f 1 , φ f 5 , and φ f 7 are the fundamental wave, 5th harmonic flux, and 7th harmonic flux amplitude of permanent magnet, respectively. θ φ 5 and θ φ 7 are the initial phase angles of the 5th and 7th harmonic motion potentials.
Hypothesis
u d * = u d u q * = u q u φ
Joining Equation (2) with Equation (6), we get:
u d * = ω L q i q + R s i d u q * = ω L d i d + R s i q
The harmonic voltage problem caused by the motor cogging effect and inverter control circuit can also cause the generation of harmonic currents, which contain similar high-order harmonic components. The rotation and rotation direction of each order of harmonic currents and the corresponding order of harmonic voltages are the same.
Similar to harmonic voltage analysis, the current equation in PMSM is changed into an equation containing fundamental wave current and harmonic component current, and the current equation is rewritten as:
i d = i d 1 + i 5 cos ( 6 ω t + θ i 5 ) + i 7 cos ( 6 ω t + θ i 7 ) + i q = i q 1 + i 5 sin ( 6 ω t + θ i 5 ) + i 7 sin ( 6 ω t + θ i 7 ) +
where i d 1 and i q 1 are the direct axis and quadrature axis current components of the fundamental current under the synchronous rotation axis. θ i 5 and θ i 7 are the initial phase angles of the 5th and 7th harmonic currents.
According to the principle of coordinate transformation and the correspondence between higher-order harmonic components and coordinate systems, components with the same rotation direction and speed as synchronous rotation axis systems exhibit DC characteristics. Therefore, 5th and 7th harmonic components exhibit DC components in their corresponding 5th and 7th rotation axis systems, while AC components exhibit AC components in the rotation axis of fundamental and other frequencies. The schematic diagram for selecting a coordinate system is shown in Figure 1.
By combining the above analysis and substituting Equation (8) into Equation (7), the following is obtained:
u d * = ω L q i q 1 sin ( 6 ω t + φ 1 ) + R s i d 1 cos ( 6 ω t + φ 1 ) + 5 ω L q i q 5 t h + R s i d 5 t h - 7 ω L q i 7 sin ( 12 ω t + φ 7 ) + R s i 7 cos ( 12 ω t + φ 7 ) + u q * = ω L d i d 1 cos ( 6 ω t + φ 1 ) + R s i q 1 sin ( 6 ω t + φ 1 ) 5 ω L d i d 5 t h + R s i q 5 t h + 7 ω L d i 7 cos ( 12 ω t + φ 7 ) + R s i 7 sin ( 12 ω t + φ 7 ) +
where i d 5 t h and i q 5 t h are the 5th harmonic currents of the direct axis and the quadrature axis in the synchronous rotating coordinate system, respectively.
Due to the fact that only specific higher-order harmonics are represented as DC components in the corresponding harmonic coordinate system, while they are represented as AC components in the rotating coordinate system corresponding to other orders, in order to obtain the specific harmonic components, the AC components are dropped, and the corresponding state control equation can be obtained by analyzing the 5th harmonic as the object:
u d 5 t h = 5 ω L q i q 5 t h + R s i d 5 t h u q 5 t h = 5 ω L d i d 5 t h + R s i q 5 t h
Similar to the above analysis, the state control equation for the 7th harmonic component is rewritten as:
u d 7 t h = 7 ω L q i q 7 t h + R s i d 7 t h u q 7 t h = 7 ω L d i d 5 t h + R s i q 7 t h
where i d 7 t h and i q 7 t h are the 7th harmonic currents of the d -axis and the q -axis in the synchronous rotating coordinate system, respectively.
During the operation of PMSM, in order to reduce the proportion of harmonic components and improve the accuracy of the control system, adding corresponding voltage compensation components in the SVPWM modulation process can effectively weaken specific order harmonic components and thereby reduce the adverse effects caused by disturbances.
On the basis of the goals and requirements of the control system, the control objectives are i d 5 t h * = 0 , i q 5 t h * = 0 , i d 7 t h * = 0 ,   and i q 7 t h * = 0 . The higher-order harmonic component presents the DC component in the coordinate system with corresponding rotation frequency and becomes the AC component in the coordinate system with non-corresponding rotation frequency. Therefore, the corresponding harmonic current can be extracted by designing a suitable filter, which are i d 5 t h , i q 5 t h , i d 7 t h , and i q 7 t h , respectively. Take the seventh current harmonic as an example. The difference between the given values i d 7 t h * = 0 and i q 7 t h * = 0 and the actual feedback values i d 7 t h and i q 7 t h of the seventh current harmonics i d 7 t h and i q 7 t h and the PI link with the cross product term is designed according to the steady-state equation obtained by the above analysis. The precise harmonic voltage can be obtained for PMSM with different parameters under different speed conditions. In order to make the system have fast dynamic response and better control accuracy, the feedforward item is constructed in the controller design process to achieve the related control performance. The corresponding harmonic voltage components are obtained by a harmonic suppression algorithm. In the three-phase PMSM control system, the control part is divided into speed outer loop control, current inner loop control, and SVPWM modulation. The compensations u α c o m and u β c o m obtained from the harmonic current loop constructed by the above analysis and the corresponding sums of u α p i and u β p i obtained from the double closed-loop control can form the pulse train control three-phase PMSM after SVPWM modulation.

3. Harmonic Injection Method of Fading Memory Kalman Filter

The calculation amount of the Kalman filter is small, and the state can be used to obtain the optimal estimation of the current state at the present moment. The integration of motor control and combined navigation data has been widely used; however, it is known that it is difficult to do in reality [23,24,25]. Therefore, the problem of filtering and divergence often occurs. In response to this problem, the fading memory factor can effectively suppress the phenomenon of filtering and divergence.
In this paper, a harmonic injection method is proposed to accurately obtain the mechanical angular velocity of PMSM by fading memory Kalman filtering. The mechanical angular velocity is predicted and updated according to the outputs u α and u β of the controller and the three-phase current   i α and i β in the static coordinate system, and the angular velocity information with high accuracy is obtained. Aiming at the divergence problem of the traditional Kalman filter due to the unknown system model and the statistical characteristics of noise, a weighted factor automatic selection algorithm is introduced, which can constantly update the use efficiency of historical data so that the whole filter is not easy to diverge and the control is more stable. On the basis of the traditional harmonic injection, the system adds a mechanical angular velocity update link. This link aims to obtain more accurate angular velocity information and better convergence and then compensates the voltage harmonic component, which is injected into the SVPWM modulation link to offset the voltage harmonic component, which can improve the electromagnetic torque ripple problem of PMSM.
Kalman filtering is used to obtain the optimal estimation of the current state of PMSM. A more accurate state estimation depends on choosing a suitable coordinate system and modeling the motor accurately. In the process of model establishment, the static coordinate system and the rotating coordinate system are common alternative reference systems. In the process of establishing a model using a synchronous rotating coordinate system, the measured electrical parameters of the motor need to be converted into state components in the corresponding coordinate system using a coordinate transformation matrix. In the coordinate transformation process, the coupling term of the trigonometric function will be attached to the flux. On the one hand, the nonlinearity of the system and controller will be greatly increased. On the other hand, the recursive time to obtain the optimal state estimation increases. Therefore, in order to avoid the above problems, the fading memory Kalman filter model can be built through the static coordinate system.
Based on the harmonic injection method of fading memory Kalman filter proposed for linear systems, and in order to reduce the nonlinear and recursive calculation time of system model establishment and improve control accuracy, the steady-state current equation of surface-mount PMSM was rewritten in the static coordinate system as follows [26]:
d i α d t = R L s i α + ω e φ f L s sin θ e + u α L s d i β d t = R L s i β ω e φ f L s cos θ e + u β L s
where i α and i β are currents in two phase orthogonal coordinate systems, ω e is the electric angular velocity.
When the motor is in a steady state, there are the following relations:
d ω e d t = 0 d θ e d t = ω e
According to the establishment of the PMSM system model, appropriate state variables are selected to establish the state equation of the motor control model:
d d t x = A x + B u y = c x
x = i α i β ω e θ e   u = u α u β   y = i α i β
A ( x ) = R L s i α + ω e φ f L s sin θ e R L s i β ω e φ f L s cos θ e 0 θ e
B = 1 L s 0 0 1 L s 0 0 0 0   C = 1 0 0 1 0 0 0 0
The control system is discretized with
x ( k + 1 ) = A [ x ( k ) ] + B ( k ) u ( k ) + V ( k ) y ( k ) = C ( k ) x ( k ) + W ( k )
where V ( k ) and W ( k ) are system noise and measurement noise, respectively.
Define the covariance matrix Q and R.
cov ( V ) = E { V V T } = Q cov ( W ) = E { W W T } = R
Use the optimal estimate x ^ k and system input u k to obtain the predictive value of the next moment x ~ k + 1 .
x ˜ ( k + 1 ) = x ^ ( k ) + T s [ A ( x ^ ( k ) ) + B ( k ) u ( k ) ]
where T s is the sampling period of the control system.
Calculation predicted the corresponding control output y ~ k + 1 .
y ˜ ( k + 1 ) = C x ˜ ( k + 1 )
Calculated corresponding to the state of the error covariance matrix p ~ k + 1 , in order to make timely use of the new status value to estimate line correction and suppress filter, here, the introduction of fading factor ρ k .
p ˜ ( k + 1 ) = p ^ ( k ) + T s ρ k [ A ¯ ( k ) p ^ ( k ) + p ^ ( k ) A ¯ T ( k ) ] + Q
Among them
A ¯ ( k ) = A ( x ) x x = x ^ ( k )
In the process of normal data iteration, ρ k = 1 , if the problem of filtering divergence occurs, it will make the predicted residual increase and lead to an increase in the covariance matrix, so as to increase the fading factor. By introducing the fading factor, the mean square error of prediction can be influenced to make better use of the current system measurement.
The determination method of ρ k is:
ρ k = m a x 1 , 1 n a b s T r ( N k ) T r ( M k ) N k = P v k = C Q C T M k = C A p ˜ ( k ) A T C T
P v k is the covariance matrix for predicting residuals.
v k is the residual vector of x ^ k , expressed as:
P v k = E ( v k v k T ) = i k v k v k T
v k = y ( k ) C x ^ ( k )
T r ( N k ) and T r ( M k ) are traces of the matrices N k and M k .
Calculate the gain matrix K ( k + 1 ) :
K ( k + 1 ) = p ˜ ( k + 1 ) C T [ C p ˜ ( k + 1 ) C T + R ] 1
The prediction state x ~ k + 1 obtained by a recursive operation is iteratively optimized, and then the optimal state estimation x ^ k + 1 at the current moment is obtained. Finally, the compensation state estimation ω e k + 1 is added to the harmonic current loop to improve the compensation accuracy. The optimal state estimate of the system is determined by the following equation.
x ^ ( k + 1 ) = x ˜ ( k + 1 ) + K ( k + 1 ) [ y ( k + 1 ) y ˜ ( k + 1 ) ]
where x ~ k + 1 is the predicted system state, x ^ k + 1 is the optimal state of the system, and ω e k + 1 is the optimal electrical angular velocity of the system.
For the next state estimation prediction, the error covariance matrix needs to be updated, which can be obtained as follows:
p ^ ( k + 1 ) = K ( k + 1 ) C p ˜ ( k + 1 )
In the above model construction process, so as to achieve effective suppression of ripple torque and improve the system control accuracy, harmonic suppression is introduced, harmonic components are separated, and harmonic voltage compensation is constructed. In order to improve the accuracy of state estimation and the stability of the system, the fading memory Kalman filter is introduced to improve the anti-interference ability of the system and the control accuracy of the system. The fading factor ρ k is introduced to prevent the divergence of the filter and make the prediction more accurate.
To sum up, the principle of the fading memory Kalman filter harmonic injection torque ripple suppression method is as follows: according to the sampling current of three-phase PMSM, the corresponding 5th and 7th harmonic currents are extracted, and the control target is constructed to construct the harmonic current loop. The angular velocity of PMSM is predicted and compensated by the fading memory Kalman filter. With the effect of the fading memory factor, the errors of the system can be corrected in real-time to improve the efficiency and accuracy of the utilization of system observation data.

4. Validation Analysis

4.1. Simulation Experiment

The control model of PMSM was built by Simulink2020b, and the control algorithms in double closed-loop PI, traditional HI control, and FMKF-HI control were compared and verified. The electromagnetic torque waveform, direct axis current waveform, and three-phase current were obtained, and the harmonic analysis was carried out by fast Fourier transform. The parameters of the motor applied for simulation verification are shown in Table 1 below:

4.1.1. Simulation Results of Torque Ripper

The circuit of Figure 2, showing a PMSM system structure block diagram, is established by Simulink 2020b.
Based on the above analysis, the simulation model parameters are set as follows: Kp = 10, Ki = 3, DC side voltage u d c = 311 v, PWM switching frequency f p w m = 10 kHz, initial load T L = 0, load torque T L = 20 N·m at t = 0.2 s, reference rotating speed N n e f = 1000 r/min.
The electromagnetic torque of the three control methods is compared in Figure 3. The electromagnetic torque fluctuation curves of the system using PI, HI, and FMKF-HI are shown in the figure. In general, the three control schemes can maintain the stability of electromagnetic torque, but there is a big difference in the convergence rate of electromagnetic torque pulsation and harmonic injection.
Compared with the double-closed-loop method, the periodic torque ripple of the traditional HI and FMK-HI methods is significantly reduced. It can be seen from Figure 3 that the fluctuation amplitude of the double closed-loop method is 6 N·m, that of the traditional HI control method is 3.5 N·m, and that of the FMK-HI method is 1.5 N·m. It can be seen that compared with the traditional PI control and the traditional HI control, the amplitude is reduced by 19.6% and 2.5%, respectively. Compared with the conventional HI control method, the FMK-HI method has a better attenuation and convergence effect in the early stage of harmonic injection, which can satisfy the control accuracy of the system faster.

4.1.2. Current Simulation Results

The given speed of the motor was set to 1000 r/min, and a torque load of 20 N was added during operation. Due to the use of the fading memory Kalman filter harmonic suppression algorithm, it can extract the harmonic components and compensate them. The waveform of the compensated voltage is shown in Figure 4. The harmonic components can be effectively suppressed due to the injection of a compensating voltage in the inverter circuit.
The FMK-HI algorithm improves motor currents and reduces motor drive losses. To show that this method has little influence on the output of the inverter, the bridge arm terminal voltage of the inverter under the action of the three methods is simulated, respectively, at different speeds, and the simulation results are shown in Figure 5.
To more vividly compare the output voltage of the inverter under different control methods and speeds, the average output voltage of the bridge arm on the inverter is introduced as the analysis index, and the simulation results are shown in Figure 6. As the motor speed changes, the average value of the output voltage of the upper bridge arm of the inverter fluctuates up and down at 155.5 V, and the amplitude of the fluctuation is 0.15 V. After the above analysis, the proposed FMK-HI algorithm has less effect on the inverter output voltage.
The currents of the three methods are analyzed in the current simulation verification. The motor runs at a speed of 1000 r/min. The current distortion degree in Figure 7a is relatively high, and the current waveform has significant distortion. Figure 7b shows that the ordinary harmonic injection method has improved the current waveform. However, there is still a certain distortion at the peak of the three-phase current. Figure 7c shows the three-phase current waveform with Kalman harmonic suppression introduced by fading memory. The PMSM phase current has a better sinusoidal wave and better control accuracy.
Figure 8 shows the simulation results of direct-axis current fluctuation under different controls. Figure 8a shows that under PI control, the direct axis current fluctuates up and down with a value of 1.2 A, which is a significant fluctuation. Figure 8b shows that the direct axis current fluctuates up and down under HI control by 0.7 A, and there is a significant sudden change. Figure 8c indicates that the FMK-HI control current fluctuates at 0.55 A, which is more stable. Therefore, compared with the speed and current dual PI control and harmonic injection methods, the straight shaft current fluctuation of FMK-HI control is minor, and the control system is more stable.
The PI control cannot effectively suppress the 5th harmonic current in the direct and quadrature axes, and the 5th harmonic current in the quadrature axis has a magnitude of 0.7 A. The simulation results are shown in Figure 9a. The HI control has a certain suppression effect on the 5th harmonic current. Still, the 5th harmonic current in the quadrature axis has a magnitude of 0.3 A, and there is a large fluctuation. The simulation results are shown in Figure 9b. Figure 9c shows that the 5th harmonic current in the straight axis is effectively suppressed under FMK-HI control, and the amount of harmonic current fluctuation is only 0.16 A.
The three-phase current harmonics are analyzed using the fast Fourier transform, and the results are shown in Figure 10. From Figure 10a–c, it can be seen that the corresponding harmonic components decrease from 19.56% to 5.29% and 2.04% and from 2.74% to 1.99% and 1.07%, respectively. The total harmonic distortion of the PI algorithm is 7.95%, and the HI algorithm has a total harmonic distortion of 3.76%. In comparison, the FMK-HI calculation in this paper has a total harmonic distortion of 2.83%. Compared to other algorithms, the FMK-HI control has a better effect on harmonic suppression.
To further verify the superiority of the proposed algorithm, the algorithm in this paper is compared with the adaptive filtering harmonic current suppression algorithm (AF-HCS), and the simulation results are shown in Figure 11. Since AF-HCS is suitable for smooth signals, a long iteration time exists, so the convergence is poor. After stabilizing the system, the electromagnetic torque fluctuation is 2.5 N·m under AF-HCS control and 1.5 N·m under FMK-HI control. The three-phase current waveforms under both control algorithms are improved. However, the current waveform of the AF-HCS control algorithm is still distorted to a certain extent, and the total harmonic component is higher than that of this paper’s algorithm. Therefore, this paper’s proposed control algorithm has better torque pulsation suppression, and the torque pulsation suppression effect is better.
The electromagnetic torque ripple, three-phase current distortion degree, and THD data of the motor are compared, and the comparison data are shown in Table 2. As shown in Table 2, compared with PI, the torque ripple of HI and AF-HCS is reduced by 2.5 N·m and 3.5 N·m, respectively, but there is still a certain distortion of the three-phase current crest and trough. The FMK-HI algorithm proposed in this paper reduces the electromagnetic torque pulsations by 4.5 N·m and THD from 7.95% to 2.83%. Compared with AF-HCS, FMK-HI electromagnetic torque pulsation is improved by 5%, and the three-phase current waveform is closer to a sinusoidal waveform.

4.2. Experimental Analysis

For the purpose of further verifying the harmonic disturbance compensation algorithm proposed in this paper, experimental verification is carried out through the motor drive experimental platform. The experimental platform comprises dSPACE, PMSM, a control drive system, and the load. The given speed adopted in the experiment is 1000 r/min, the same as in the simulation verification process. The main control CPU is TMS320F28335 of TI Company, the DC sensor model is TBC100BS, the AC sensor model is LAH 25-NP, and the power device is Infineon’s three-phase full-bridge module model FS100R12KT4G. The PWM frequency is 10 kHz. The model is downloaded through a Matlab file to the rapid control prototype (RCP) during the experiment. The experiment includes double-closed-loop control, traditional HI, and FMK-HI methods. Electromagnetic torque information and FFT analysis are obtained through the upper computer and an electrical signal. The experimental platform built into this paper is shown in Figure 12.
Figure 13 shows the phase current waveform obtained using three control methods. Figure 13a–c shows a group of comparison waveforms before and after using the harmonic voltage compensation algorithm when the fundamental frequency is 66.6 Hz. As can be seen from the experimental results in Figure 13, after the addition of the harmonic current suppression algorithm, the current waveform is significantly improved, and the proportion of high-order harmonics in single-phase current in PMSM decreases from 5.92% and 2.68% to 0.1% and 0.04%, respectively.
Three sets of experimental comparisons verify that the FMK-HI algorithm proposed in this paper significantly affects harmonic suppression and reduction of the three-phase current distortion rate. The electromagnetic torque experiments are compared at a given speed of 1000 r/min and a load torque of 20 N·m, and the torque waveform is shown in Figure 14.
As illustrated in Figure 14, compared with PI control, the electromagnetic torque fluctuation of the harmonic injection control method using the fading memory Kalman filter decreases from 11 N·m to 3 N·m; compared with the ordinary harmonic injection control method, the torque fluctuation decreases from 5 N·m to 3 N·m.

5. Conclusions

To solve the problems of low accuracy and poor stability of the harmonic injection control algorithm in the PMSM control system, this paper researches and designs a permanent magnet synchronous motor harmonic injection control method based on attenuated memory Kalman filter. Firstly, considering the influence of system noise and external interference on the harmonic extraction process, an extended Kalman filter is designed to optimize electrical parameters in the harmonic extraction process, effectively reducing the dependence on mechanical sensors. To improve the stability of the control system, the gradual elimination factor is introduced, which can better utilize the measured values of the system and correct the system error according to the predicted data of the system, effectively preventing the problem of filter dispersion and improving the stability of the system. Finally, MATLAB/Simulink simulation and experimental verification were carried out to verify the effectiveness and reliability of the study’s design. Future work will consider the harmonic injection control strategy by system identification under the variation of motor parameters.

Author Contributions

Writing—review and editing, supervision, project administration, funding acquisition, S.D.; methodology, visualization, MATLAB software, writing—original draft prepara-tion, W.S., data curation, Y.W. and W.S. formal analysis, M.W. and H.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This paper was supported by the Science and Technology Support Plan of Hebei Province (No. 2054180ID) and the High-level Talent Team Building Program (No. 205A1902H, 21284401Z).

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yuan, X.; Zhang, C.; Zhang, S. Torque Ripple Suppression for Open-End Winding Permanent-Magnet Synchronous Machine Drives with Predictive Current Control. IEEE Trans. Ind. Electron. 2020, 67, 1771–1781. [Google Scholar] [CrossRef]
  2. Toloue, S.F.; Kamali, S.H.; Moallem, M. Torque Ripple Minimization and Control of a Permanent Magnet Synchronous Motor Using Multiobjective Extremum Seeking. IEEE/ASME Trans. Mechatron. 2019, 24, 2151–2160. [Google Scholar] [CrossRef]
  3. Song, Z.; Liu, C.; Liu, S.; Wang, W. Active Harmonic Suppression of Low-Reactance Multiphase Slotless Permanent Magnet Synchronous Machines. IEEE J. Emerg. Sel. Top. Power Electron. 2022, 10, 1777–1787. [Google Scholar] [CrossRef]
  4. Su, G.; Guo, Y.; Deng, H.; Hu, K.; Wang, P.; Wang, S.; Cheng, G. Pulsation Analysis and Suppression Study of Pump-Controlled Motor System Driven by Variable Frequency Permanent Magnet Synchronous Motor. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2022, 236, 6579–6592. [Google Scholar] [CrossRef]
  5. Zhang, W.; Zhang, X.; Jin, X.; Zhang, H.; Zhao, W. Dynamic Modeling and Harmonic Analysis of Surface-Mounted Three-Phase AC Permanent Magnet Synchronous Motor. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2023, 237, 3761–3788. [Google Scholar] [CrossRef]
  6. Liu, Z.; Hu, Y.; Zhang, B.; Feng, G.; Wu, J. A Novel Spoke-type PM Motor with Asymmetric Rotor for Low Torque Pulsation under MTPA Control Condition. IET Electr. Power Appl. 2022, 16, 585–604. [Google Scholar] [CrossRef]
  7. Xu, X.; Zhang, B.; Wu, J. Research on Synergistic Reduction of Cogging Torque and Ripple Torque of Interior Permanent Magnet Synchronous Motor Based on Magnetic Field Harmonic Offset Method. Electronics 2023, 12, 3499. [Google Scholar] [CrossRef]
  8. Pan, Z.; Dong, F.; Zhao, J.; Wang, L.; Wang, H.; Feng, Y. Combined Resonant Controller and Two-Degree-of-Freedom PID Controller for PMSLM Current Harmonics Suppression. IEEE Trans. Ind. Electron. 2018, 65, 7558–7568. [Google Scholar] [CrossRef]
  9. Li, W.; Wen, X.; Zhang, J. Harmonic Current Minimization in PMSM Drive System Using Feedforward Compensation Based on Torque Ripple Estimation. In Proceedings of the 2019 22nd International Conference on Electrical Machines and Systems (ICEMS), Harbin, China, 11–14 August 2019; pp. 1–5. [Google Scholar]
  10. Gu, X.; Li, Y.; Chen, W.; Jin, X. Improved Deadbeat Predictive Control Based Current Harmonic Suppression Strategy for IPMSM. Energies 2022, 15, 3943. [Google Scholar] [CrossRef]
  11. Zhang, Z.; Chen, Y.; Xie, S.; Feng, X.; Qin, H.; Zhao, C. Current Harmonic Suppression for Permanent-Magnet Synchronous Motor Based on Notch Filter and LADRC. Energy Rep. 2022, 8, 175–182. [Google Scholar] [CrossRef]
  12. Qu, Y.; Zhang, B.; Chu, H.; Yang, X.; Shen, H.; Zhang, J. Linear-Nonlinear Switching Active Disturbance Rejection Speed Controller for Permanent Magnet Synchronous Motors. Sensors 2022, 22, 9611. [Google Scholar] [CrossRef] [PubMed]
  13. Zhou, X.; Cui, Y.; Ma, Y. Fuzzy Linear Active Disturbance Rejection Control of Injection Hybrid Active Power Filter for Medium and High Voltage Distribution Network. IEEE Access 2021, 9, 8421–8432. [Google Scholar] [CrossRef]
  14. Zhang, Z.; Zhao, C.; Tan, L.; Chen, Y. Torque Ripple Suppression in Flux-Weakening Region of IPMSM Using LADRC. In Proceedings of the 2021 24th International Conference on Electrical Machines and Systems (ICEMS), Gyeongju, Republic of Korea, 31 October–3 November 2021; pp. 1900–1905. [Google Scholar]
  15. Song, Z.; Yang, J.; Mei, X.; Tao, T.; Xu, M. Harmonic Current Suppression Method with Adaptive Filter for Permanent Magnet Synchronous Motor. Int. J. Electron. 2021, 108, 983–1013. [Google Scholar] [CrossRef]
  16. Vollat, M.; Krahe, D.; Gauterin, F. A Novel Method for Harmonic Current Injection with Sensor Supported Adaptation on Permanent Magnet Synchronous Machines. Machines 2021, 9, 139. [Google Scholar] [CrossRef]
  17. Li, J.; Du, B.; Zhao, T.; Cheng, Y.; Cui, S. Third-Harmonic Current Injection Control of Five-Phase Permanent-Magnet Synchronous Motor Based on Third-Harmonic Current Reference Online Identification. IEEE Access 2023, 11, 41840–41847. [Google Scholar] [CrossRef]
  18. Szalay, I.; Fodor, D.; Enisz, K.; Medve, H. Permanent Magnet Synchronous Motor Model Extension for High-Frequency Signal Injection-Based Sensorless Magnet Polarity Detection. Energies 2022, 15, 1131. [Google Scholar] [CrossRef]
  19. Wang, L.; Zhu, Z.Q.; Bin, H.; Gong, L.M. Current Harmonics Suppression Strategy for PMSM With Nonsinusoidal Back-EMF Based on Adaptive Linear Neuron Method. IEEE Trans. Ind. Electron. 2020, 67, 9164–9173. [Google Scholar] [CrossRef]
  20. Bi, G.; Zhang, G.; Wang, G.; Wang, Q.; Hu, Y.; Xu, D. Adaptive Iterative Learning Control-Based Rotor Position Harmonic Error Suppression Method for Sensorless PMSM Drives. IEEE Trans. Ind. Electron. 2022, 69, 10870–10881. [Google Scholar] [CrossRef]
  21. Arshad, M.H.; El-Sayed, A.; Salem, A.; Zhao, Q.; Abido, M.A. Implications of the Sensorless Predictive Control for Line-Start Permanent Magnet Synchronous Machine. IEEE Trans. Automat. Sci. Eng. 2023; in press. [Google Scholar] [CrossRef]
  22. Tian, M.; Wang, B.; Yu, Y.; Dong, Q.; Xu, D. Static-Errorless Deadbeat Predictive Current Control for PMSM Current Harmonics Suppression Based on Vector Resonant Controller. IEEE Trans. Power Electron. 2023, 38, 4585–4595. [Google Scholar] [CrossRef]
  23. De Castro, A.G.; Guazzelli, P.R.U.; de Oliveira, C.M.R.; de Andrade Pereira, W.C.; de Paula, G.T.; de Almeida Monteiro, J.R.B. Optimized Current Waveform for Torque Ripple Mitigation and MTPA Operation of PMSM with Back EMF Harmonics Based on Genetic Algorithm and Artificial Neural Network. IEEE Lat. Am. Trans. 2020, 18, 1646–1655. [Google Scholar] [CrossRef]
  24. Li, X.; Kennel, R. General Formulation of Kalman-Filter-Based Online Parameter Identification Methods for VSI-Fed PMSM. IEEE Trans. Ind. Electron. 2021, 68, 2856–2864. [Google Scholar] [CrossRef]
  25. Özkurt, G.; Zerdali, E. Design and Implementation of Hybrid Adaptive Extended Kalman Filter for State Estimation of Induction Motor. IEEE Trans. Instrum. Meas. 2022, 71, 1–12. [Google Scholar] [CrossRef]
  26. Pasqualotto, D.; Rigon, S.; Zigliotto, M. Sensorless Speed Control of Synchronous Reluctance Motor Drives Based on Extended Kalman Filter and Neural Magnetic Model. IEEE Trans. Ind. Electron. 2023, 70, 1321–1330. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of rotating coordinate system.
Figure 1. Schematic diagram of rotating coordinate system.
Electronics 12 04890 g001
Figure 2. Block diagram of system structure.
Figure 2. Block diagram of system structure.
Electronics 12 04890 g002
Figure 3. Comparison of electromagnetic torque. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Figure 3. Comparison of electromagnetic torque. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Electronics 12 04890 g003
Figure 4. Compensated voltage waveform. (a) the α axis compensates the voltage, (b) the β axis compensates voltage.
Figure 4. Compensated voltage waveform. (a) the α axis compensates the voltage, (b) the β axis compensates voltage.
Electronics 12 04890 g004
Figure 5. The output voltage of the bridge arm on the inverter. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Figure 5. The output voltage of the bridge arm on the inverter. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Electronics 12 04890 g005
Figure 6. Average output voltage of the bridge arm on the inverter.
Figure 6. Average output voltage of the bridge arm on the inverter.
Electronics 12 04890 g006
Figure 7. Three phase current waveform. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Figure 7. Three phase current waveform. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Electronics 12 04890 g007
Figure 8. D-axis current fluctuation curve. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Figure 8. D-axis current fluctuation curve. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Electronics 12 04890 g008
Figure 9. 5th harmonic current fluctuation curve. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Figure 9. 5th harmonic current fluctuation curve. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Electronics 12 04890 g009
Figure 10. FFT analysis. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Figure 10. FFT analysis. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Electronics 12 04890 g010
Figure 11. Algorithm comparison performance comparison graph. (a) electromagnetic torque comparison, (b) phase current contrast, (c) FFT analysis.
Figure 11. Algorithm comparison performance comparison graph. (a) electromagnetic torque comparison, (b) phase current contrast, (c) FFT analysis.
Electronics 12 04890 g011
Figure 12. Experimental platform.
Figure 12. Experimental platform.
Electronics 12 04890 g012
Figure 13. Experimental current diagram. (a) PI control current waveform and FFT analysis, (b) HI control current waveform and FFT analysis, (c) FMK-HI control current waveform and FFT analysis.
Figure 13. Experimental current diagram. (a) PI control current waveform and FFT analysis, (b) HI control current waveform and FFT analysis, (c) FMK-HI control current waveform and FFT analysis.
Electronics 12 04890 g013aElectronics 12 04890 g013b
Figure 14. Motor experimental torque waveform. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Figure 14. Motor experimental torque waveform. (a) PI control, (b) conventional harmonic injection, (c) fading memory Kalman harmonic injection.
Electronics 12 04890 g014
Table 1. Main parameters of the motor.
Table 1. Main parameters of the motor.
ParameterValue
Rated speed1000 r/min
Rated power5.5 kw
Phase resistance0.62 Ω
Phase inductance4 mH
Polar number4
Flux linkage0.35 Wb
Table 2. Comparison of control algorithms.
Table 2. Comparison of control algorithms.
Control AlgorithmElectromagnetic Torque Ripple Amplitude/N·mThree Phase Current Distortion DegreeTHD
PI6Severe distortion7.95%
HI3.5Moderate distortion3.76%
FMK-HI1.5Less distortion2.83%
AF-HCS2.5Less distortion3.34%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Du, S.; Sun, W.; Wang, Y.; Wang, M.; Zhang, H. Harmonic Injection Control of Permanent Magnet Synchronous Motor Based on Fading Memory Kalman Filtering. Electronics 2023, 12, 4890. https://doi.org/10.3390/electronics12244890

AMA Style

Du S, Sun W, Wang Y, Wang M, Zhang H. Harmonic Injection Control of Permanent Magnet Synchronous Motor Based on Fading Memory Kalman Filtering. Electronics. 2023; 12(24):4890. https://doi.org/10.3390/electronics12244890

Chicago/Turabian Style

Du, Shenhui, Weisong Sun, Yao Wang, Meng Wang, and Hongjie Zhang. 2023. "Harmonic Injection Control of Permanent Magnet Synchronous Motor Based on Fading Memory Kalman Filtering" Electronics 12, no. 24: 4890. https://doi.org/10.3390/electronics12244890

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop