Sliding mode control includes two processes: reaching motion and sliding mode. The sliding mode stage is robust to perturbation and external disturbance, but the reaching motion stage does not have this characteristic. In addition, there is a time lag in the process of changing from reaching motion to sliding mode, which causes high-frequency vibration or resonance of the system. Therefore, for the controlled object with unstable or uncertain parameters, with the traditional sliding mode variable structure control method, it is difficult to ensure its asymptotic stability.
4.1. Improved Sliding Mode Reaching Law
The mathematical expression of the constructed anti-sinusoidal saturation function is shown below:
where
;
is boundary layer thickness;
is sliding surface. The mathematical characteristic curve of the saturation function is shown in
Figure 1.
Because the stability of the system is related to the slope of the curve, the optimization effect of the system and the stability of the back EMF can be detected by modifying the boundary layer thickness . The smaller the boundary layer thickness is, the smoother the curve is, and the higher the control accuracy is. When the boundary layer thickness is different, the velocity of the system state variable towards the sliding mode surface is also different. The greater the thickness of the boundary layer is, the greater the buffering is. Its advantage is that has the characteristic of fast exponential function feedback in the boundary layer. After continuous adjustment, it is found that when , the control law can quickly reach the sliding surface and reduce the chattering phenomenon of the system in the switching band; thereby the estimation accuracy of the motor speed and position information can be improved.
In order to further reduce the chattering caused by the constant velocity reaching term and improve the reaching speed of the state point outside the sliding mode, a variable gain reaching law is proposed based on Equation (15):
where
is the switching gain. Through the new sliding mode reaching law, it can be seen that when the system state variable is far from the sliding surface (
is large), it can approach the sliding surface at a large reaching speed. When the system state variable is close to the sliding surface, its reaching speed is gradually reduced due to the continuous decrease in
, which ensures a small gain to suppress the chattering phenomenon of the system entering the sliding surface. The phase trajectory of the new sliding mode reaching law is shown in
Figure 2.
4.2. Design of Sliding Mode Observer with Combined Reaching Law
The switching band of the exponential reaching law is band shaped. In the steady state, the sliding mode function switches back and forth between its two sliding mode surfaces, thus resulting in large steady-state buffeting. When the new reaching law is used, the switching band consists of two rays passing through the origin and converging to the origin along the ray, which effectively reduces the chattering of the system in the steady state. However, for the new reaching law, when the system first enters the switching band, it produces larger chattering due to the larger value of .
If the exponential reaching law and the improved reaching law are combined, that is, in the early stage of sliding mode motion, the exponential reaching law is used, and in the later and steady-state stage of sliding mode motion, the improved reaching law can reduce the shortcomings of the two reaching laws and retain their advantages, so that the system performance can reach its best. Select a positive real number , when , using the exponential reaching law; when , the improved reaching law is used. When the value is large, the advantages of the improved reaching law will be weakened; when the value is small, the system may produce large chattering across the sliding surface.
By Equations (9) and (14), the combined reaching law of the system can be obtained:
According to Equations (7) and (17), the mathematical model of the new sliding mode observer is:
By subtracting Equations (18) and (1), the state equation of the stator current error in a two-phase stationary coordinate system is obtained:
The sliding mode switching surface
is designed based on the difference in current. When the state variables of the observer reach a steady state, there are
,
. Based on the equivalent control principle of sliding mode control, the control quantity can be regarded as equivalent control quantity, and the extended back electromotive force can be obtained as follows:
To make the sliding mode control meet the requirements, it is necessary to select the appropriate
value. According to Lyapunov stability theory, the Lyapunov function is selected as:
Only when
can the system satisfy the stability condition. A derivation of Equation (20) can be obtained:
Substituting Equation (19) into Equation (22), the following equations can be obtained:
The simplified formula of Equation (22) is as follows:
When Equation (24) is less than 0, the system enters a steady state, that is, when satisfying the following formula, the system is stable.
According to the sliding mode reaching condition
, the value range of gain
can be calculated as follows:
Therefore, when satisfies Equation (26), the new observer system will converge rapidly in the global range.