1. Introduction
Field-oriented control (FOC) is the most utilized method in PMSM control. It uses Park transfer and Clark transfer to analyze the three phrase currents in a rotor synchronous coordinate system [
1]. Based on FOC, model predictive control has the advantages of fast dynamic response and stable current control [
2,
3]. Its basic principle is to predict the current for one or several future control periods, and then select the optimal control input through a cost function [
4]. Its control effect relies on the precision of motor parameters and rotor position information [
5]. Researchers have proposed a model predictive control method based on an incremental model, which eliminates the interference of inaccurate resistance and flux linkage on current prediction [
6]. Traditional methods for obtaining rotor position information for motors mainly use mechanical sensors, but these sensors have the disadvantages of low resolution and high signal delay in high-speed environments [
7,
8]; meanwhile, in some extreme environments, the usage of mechanical sensors cannot be satisfied [
9].
Sliding mode observer is a commonly used PMSM sensorless control method [
10]. It constructs a current observer based on the voltage equation of the motor, uses current as the reference value, modifies the input value through a sliding mode control strategy, and tracks the estimated current to the reference current [
11,
12]. When the estimated current and the reference current are consistent, the sliding mode control input is equivalent to the actual back electromotive force (back-EMF) [
13]. After low-pass filtering, the quadrature phase-locked loop is used to calculate the rotor position [
12]. The sign function in the traditional sliding mode observer achieves system state convergence through high-frequency switching, but this switching action can cause significant system chattering [
14,
15]. The low-pass filter also increases the phase delay of the system [
16]. On the other hand, the traditional QPLL has a lag in speed measurement when the motor speed changes, which cannot accurately measure the current speed and increases the rotor position estimation error [
17]. To solve the above problems, researchers have proposed various improvement methods. Article [
18] proposes using an improved full-order sliding mode observer, which has high estimation accuracy and stronger oscillation suppression ability for rotor position observation within a wide speed range, compared to traditional full-order sliding mode observers. In article [
19], researchers combine the back-EMF model with the super-twisting algorithm to propose a super-twisting algorithm sliding mode observer, which simultaneously considers the uncertainties and unmodeled dynamics in the back-EMF model, giving the designed system smaller chatter, better estimation, and faster convergence. Article [
20] designed a position compensation PLL, alleviating the position error introduced by the speed acceleration and deceleration ramps.
When the parameters of the motor change, there will be a significant deviation between the predicted value and the actual value in model predictive control [
21,
22], and the sliding mode observer’s estimates will also contain significant errors. Online parameter identification for correcting motor parameters suffers from high computational burden and introduces significant delays; adopting a robust control method is more effective [
23]. Researchers have proposed some improved disturbance observers such as the Luenberger observer [
24], sliding mode observer [
25], and generalized proportional-integral observer [
26] to observe disturbances caused by parameter mismatch. An inductance estimation method based on an adjustable model is designed in article [
27], which can quickly estimate the value of inductance. However, the calculation process requires motor speed and the sliding mode observation of the motor speed requires the inductance of the motor, making it unsuitable for direct application in sensorless observation schemes. Article [
28] proposes an online correction method for parameter bias in sensorless observation based on the least squares method, but the computational complexity involved in the calculation is high, and it requires high-precision parameter accuracy.
2. Methodology of the Research
This paper primarily improves the existing method in two aspects: lower delay sensorless control and parameter robustness. A position observation and a parameter estimation system for model predictive control are proposed to address the issues of observation delay in sliding mode observers and sensorless motor parameter identification. Based on incremental model predictive control, a nonlinear super-twisting sliding mode observer (STSMO) is utilized to observe the back electromotive force during the model predictive control calculation period. A nonlinear extended state observer-based quadrature phase-locked loop (NLESO-QPLL) is designed to suppress high-frequency disturbances in the system and eliminate ramp response errors, replacing the low-pass filter to reduce the observation delay of the motor rotor position. The calculations of the STSMO and NLESO-QPLL converge within the MPC control interval to ensure real-time observation. Finally, based on the principle of the model reference adaptive system (MRAS), an iterative inductance observer is designed to correct the inductance parameter, and the inductance observation results are applied back to MPC and sliding mode observers to complete sensorless robust control of the motor. The structure of the methodology is shown in
Figure 1:
2.1. Model of MPC and STSMO
This section mainly introduces the basic models of motor current control, which have been previously reported in the literature. The classic FOC employs the PARK transformation (Equation (1)) to convert the collected three-phase currents
into currents
in the stationary coordinate system. Subsequently, it utilizes the CLARK transformation (Equation (2)) to rotate
and transform
into flux linkage current
and torque current
.
In article [
5], scholars have proposed an incremental formula for MPC; it uses the measured current increment
,
to predict the current increment
,
at the next moment:
In Equation (3),
is sample time,
is motor resistance,
is motor inductance, and
is rotor speed. When the prediction horizon is 1 and the
d-axis current controlled to be 0, the optimal control output
,
at this time is as follows:
Then, the principle of STSMO is analyzed. The mathematical model of the PMSM in the
α β coordinate system is as follows:
In this formula,
represent the voltage components on the
α-β axis;
and
represent the back voltage components on the
α-
β axis, and they contain the information of rotor position. The formula is as follows:
represents the rotational speed, represents the flux linkage, and represents the position of rotor. ,, representing the measurement deviation of current on the α-β axis.
Based on the super-twisting sliding mode theory, the back-EMF observer is designed as Equations (7) and (8). Due to the significant difference between the maximum and minimum values of the system signals, the hyperbolic tangent function is employed to process the observed signals to mitigate chattering. The expression of the observer is as follows:
2.2. Model of Improved QPLL
Back-EMF observation is always affected by random disturbances and computational accuracy perturbations, resulting in noise in the results. The traditional approach is to first perform low-pass filtering (LPF) on the observation results and then employ a QPLL to extract position information. However, in this process, the low-pass filter introduces system delay, and the PI-based QPLL structure can also lead to inaccurate observation results.
The block diagram of the traditional QPLL system is shown in
Figure 2. Its basic principle is illustrated in Equation (9), where E represents the amplitude of the back electromotive force. First, a sine signal of the rotor position error is obtained through quadrature calculation. When the rotor position error is tiny, we can approximately assume
. Through a PI regulator, the rotor position estimation error is adjusted to 0, and the output of the PI controller is the estimated speed. The estimated rotor position is obtained through an integrator.
When the speed of the PMSM undergoes a ramp change with an acceleration of
, the expression for the rotor angle after Laplace transformation is
. According to the final value theorem, the expression for the steady-state error of the QPLL at this time is as follows:
When the speed of a PMSM undergoes a ramp change, the PI-based QPLL cannot achieve zero steady-state-error rotor tracking.
Using the expansion state variable
to represent the differential of the electrical angle acceleration, which represents the unknown disturbance affecting the change in angular acceleration, the mathematical model of PMSM dynamics can be re-expressed as follows:
Define the state vector
as follows:
Using the basic theory of the extended state observer, construct a third-order linear ESO system using the following equation:
In the formula,
,
, and
are the error gain coefficients. The error variables are as follows:
The following is a proof showing that the observation is an unbiased estimate:
Differentiating Equation (14) and substituting Equations (13) and (11) into it, we can obtain the following:
By applying the Laplace transform to Equation (15), we can obtain the following:
According to Equation (16), the transfer function of rotor position estimation can be obtained as follows:
According to the final value theorem, the steady-state error of the system’s ramp response is as follows:
From Equation (18), it is clear that when the motor speed changes in a ramp manner, the rotor position can achieve zero steady-state-error tracking after using the ESO. To ensure the stability of the system, it is necessary to ensure that all poles of Equation (18) are located in the negative half-axis region. If the three poles of the observer are set to be
, then the desired characteristic equation is as follows:
From the transfer function of the system, it can be observed that the ESO system possesses low-pass filtering capability. When ω is large, the convergence speed is fast, but the random errors will be amplified, and when the value is small, it is exactly the opposite.
Simulation results of ESO show that sudden fluctuations have a significant impact on the system. From the ADRC theory, replace the direct error in the ESO with a nonlinear function. This approach magnifies small errors and limits large ones, so it can suppress high-frequency noise to a certain extent, and does not affect the convergence of the system. The final NLESO expression is the following:
The structure of the nonlinear extended state observer is shown in
Figure 3:
Finally, as shown in
Figure 4, we can obtain the structure of the improved QPLL:
2.3. Model of Iterative Inductance Observer
In the control of a motor, the change in rotor position of the motor is much slower than the change in current speed. Assume that within the calculation interval of MPC, the system’s speed variation is minimal. Based on the principle of MRAS, an iterative inductance observation function is designed:
In the above formula,
represents the predicted current increment, and the calculated formula is as follows:
denotes the actual current increment on the d-axis, is the value of at moment k, is sample time of MPC, and is the inductance measured currently; is a weighting factor, set to to ensure that the two terms are on the same order of magnitude.
When
approaches 0, it indicates that the predicted current increment is very close to the actual current increment and
is close to the actual motor parameters. According to the extreme value condition of Equation (22),
, we can obtain the extreme value solution as follows:
With the initial condition, we can calculate the result of Equation (20) and take it into Equation (21), and utilize the result of Equation (21) in the next measurement of the rotor position. With this circle, we can reduce the error of L to an acceptable range.
The following proves the stability of the proposed inductance observer. Consider the prediction formula of
:
Defining
, and substituting (4) into (25), we can obtain the following:
Substitute Equation (24) into this, and simplify through order of magnitude analysis:
Since
can be considered essentially constant, and the control objective is
, the last term in Equation (27) is regarded as a small disturbance. By performing a z-transform on (28), the transfer function between
and
can be obtained as follows:
From the basic properties of this transfer function, it can be observed that as long as remains , the system will be stable.
3. Simulation Experiment
The overall controller structure obtained from the article is shown in
Figure 5. The dotted box above containing MPC and FOC is the basic PMSM current control module. The dotted box below contains the NLESO and STSMO combined as the sensorless rotor position measurement module, and the inductance observer employs the method proposed in
Section 2.3, aiming to correct the resistance parameters in the MPC module. The parameters marked with an asterisk represent reference values.
In this system, the calculated frequency of MPC and the inductance observer is
Hz, and the calculated frequency of the STSMO and NLESO-QPLL is
Hz to ensure the STSMO can converge within the interval of MPC. As shown in
Figure 6, after 10 iterations, the current observed by the STSMO is close to the real current, which means it achieves convergence. Considering the convergence time of the STSMO, this interval can be reduced to 10 times the MPC frequency at most, which is
Hz.
Due to the poor performance of the sliding mode observer at low speeds, the motor speed output is used during the startup phase. After the system completes startup within 0.5 s, the output of the improved quadrature phase-locked loop is switched to be the input of the MPC. The target state is set as follows: the reference speed is 30 rad/s in 0–0.6 s and 150 rad/s in 0.6–2 s to simulate the performance at different speeds. The external input torque is 0.1 N·m in 0–1 s and 2.5 N·m to test the proposed method at different loads. To verify the function of the module, the known inductance is changed to 0.6 times the nominal value at 0.5 s, and to 1.5 times the actual value at 1.2 s.
The main parameters of the motor in the simulation model are shown in
Table 1. Most parameters of the system come from manually adjusting the parameters and observing the response results.
Under these conditions, through comparison and improvement, the coefficients in Equations (7) and (8) are determined to be as follows:
taking into account both error and convergence speed, and with
ω = 160. The coefficient in Equation (20) is as follows:
Adjusting the parameter in Equation (21) considering the results of simulation, the coefficient is as follows:
To better demonstrate the research findings of this paper, the method used in article [
25] is reproduced in this paper. This paper employs an ESO-based rotor position error compensation method for comparison with the method used in this paper. For convenience, the method used in that paper is denoted as ESO + LPF. To verify the effectiveness of the method for estimating motor parameters, this paper replicates the recursive least squares (RLS) algorithm used in article [
28]. The specific simulink model can be downloaded in the
supplementary materials.
First, test the proposed method for improving observation delay. Since using LPF will result in unavoidable phase delay, compare the difference between observed and actual rotor positions. The first-order LPF is defined as follows:
The comparison of rotor position errors is presented in
Figure 7 and
Figure 8. When using LPF + ESO, the difference is about 0.1 rad at low-speed conditions, 0.48 rad at high-speed, low-load conditions, and 0.47 rad at high-speed, high-load conditions. When using the NLESO, the difference is about 0.018 rad at low speed, 0.083 rad at high-speed, low-load conditions, and 0.205 rad at high-speed, high-load conditions. These results demonstrate that the proposed method can reduce the delay in rotor position estimation. Although the error value increases under high-load conditions, it is still smaller than using LPF.
Then, verify the improvement of the quadrature phase-locked loop using an NLESO. Compare the speed observation results using the ESO, LPF + ESO, and NLESO. The results are shown in
Figure 9,
Figure 10 and
Figure 11.
Figure 9 presents the results of using an ESO without LPF. At low-speed, low-load conditions, the mean of the difference is 0.004 rad/s, and the mean absolute error is 0.3 rad/s. At high-speed, low-load conditions, the mean of the difference is 0.004 rad/s, and the mean absolute error is 0.3 rad/s. At high-speed, high-load conditions, the mean of the difference is 0.004 rad/s, and the mean absolute error is 0.3 rad/s. The results indicate that employing an ESO without LPF not only induces significant chattering but also leads to a large overshoot during speed transients and a steady-state error after torque application.
The results of using LPF + ESO are shown in
Figure 10. At low-speed, low-load conditions, the mean of the difference is 0.0049 rad/s, and the mean absolute error is 0.7 rad/s. At high-speed, low-load conditions, the mean of the difference is 0.02 rad/s, and the mean absolute error is 0.1 rad/s. At high-speed, high-load conditions, the mean of the difference is 0.14 rad/s, and the mean absolute error is 0.18 rad/s. After using a low-pass filter, the error in observation results has been reduced in various situations, and the fluctuation in observation results during speed changes has also been significantly reduced.
The results of using an NLESO are shown in
Figure 11. At low-speed, low-load conditions, the mean of the difference is 0.006 rad/s, and the mean absolute error is 0.56 rad/s. At high-speed, low-load conditions, the mean of the difference is 0.066 rad/s, and the mean absolute error is 0.25 rad/s. At high-speed, high-load conditions, the mean of the difference is 0.052 rad/s, and the mean absolute error is 0.24 rad/s. Both LPF + ESO and the NLESO eliminate the ramp error, and their results are similar at high speeds. The NLESO shows 20–30% reduction in mean absolute error at low speeds. This confirms that the nonlinear function in the NLESO provides similar noise suppression without sacrificing dynamic response compared to LPF.
Temperature primarily affects the resistance, inductance, and flux linkage of the motor. Finally, verify the results of inductance observation. The results of not using an inductance observer are shown in
Figure 12. In comparison with
Figure 11, it is evident that at 0.5 s and 1.2 s, parameter variations significantly impact the speed measurement accuracy due to calculation errors; the estimated speed exhibits oscillations and fails to achieve precise tracking performance. No matter whether the inductance becomes larger or smaller, the speed observation results are unacceptable. With the inductance observer, the speed estimation error is reduced greatly, confirming the effectiveness of the proposed observer.
Figure 13 shows the observation results of the inductance estimator during a sudden change in inductance. At 0.5 s, the known inductance was suddenly changed to 0.6 times its nominal value and adjusted back to the actual value. At 1.2 s, the known inductance was changed to 1.5 times its nominal value and adjusted back to the actual value within 0.01 s. It can be observed that, regardless of whether the inductance increases or decreases and whether the load is high or low, the inductance observer can correct it to a value close to the actual inductance.
Figure 14 and
Figure 15 show the simulation results of RLS. It can be observed that when using the comparison method, a fast estimation of the motor state can also be achieved, and the observation results are very close to those obtained using the MRAS method proposed in this paper. At the same time, the inductance observation curve has almost no deviation. Analysis of the resistance estimation results indicates that this method fails to achieve effective resistance correction under our specific experimental conditions. However, even if the resistance parameter changes significantly, it will not have a significant impact on the rotor position estimation. In this model, even if the resistance doubles, the impact on the results can be almost negligible. This also proves that the method proposed in this article is more concise.
From the simulation above, the simulation results indicate that the incremental model predictive control generates significant high-frequency noise, and inaccurate inductance will lead to inaccurate speed measurement. After improving the method with an NLESO-QPLL and iterative inductance observer, the results show that the high-frequency noise has been well suppressed by the NLESO. Both theory and simulation demonstrate that parameter mismatch can seriously affect the results of sensorless observation, while the use of the designed inductance observer can significantly reduce its impact.