A permanent magnet synchronous motor full-speed domain position sensorless control method
By combining the third-order NLESO-PLL and SOGI-SMO methods, the problem of position observation of permanent magnet synchronous motors in the full speed domain was solved, achieving high-precision rotor position estimation and stable control, and improving the system's anti-disturbance capability and smoothness.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
- Filing Date
- 2026-03-30
- Publication Date
- 2026-06-12
AI Technical Summary
Existing sensorless control technology for permanent magnet synchronous motors suffers from insufficient performance of traditional PLLs in the low-speed domain and phase lag and jitter of SMOs in the high-speed domain, resulting in poor switching smoothness across the entire speed domain and affecting the reliability and stability of the system.
By employing a combination of third-order NLESO-PLL and SOGI-SMO, and using a third-order nonlinear extended state observer in the low-speed domain and an improved sliding mode observer in the high-speed domain, combined with a soft-switching strategy of hysteresis logic and vector synthesis, smooth rotor position observation is achieved across the entire speed domain.
High-precision rotor position observation was achieved across the entire speed range, reducing disturbances and phase lag, improving the system's dynamic response and stability, and avoiding angle jumps and current surges.
Smart Images

Figure CN121966388B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor drive control technology, and in particular to a sensorless control method for a permanent magnet synchronous motor across the entire speed range. Background Technology
[0002] Permanent magnet synchronous motors (PMSMs) are widely used in aerospace, electric vehicles, and industrial automation due to their high power density, high efficiency, and excellent dynamic performance. In many applications, sensorless control technology has become a research hotspot to improve system reliability, reduce costs, and minimize size.
[0003] Current sensorless control technologies are mainly divided into two categories: one is the high-frequency injection method (HFI) suitable for the zero-low speed domain; the other is the observer method based on the back electromotive force model, such as the sliding mode observer (SMO), suitable for the medium-high speed domain. However, existing technologies have the following problems in practical applications:
[0004] 1. Insufficient performance of traditional PLLs in the low-speed domain: Traditional HFI methods obtain position error signals containing rotor position information through signal demodulation, and typically use phase-locked loops (PLLs) based on PI controllers for tracking. However, PI controllers are essentially linear controllers with fixed bandwidth, and the system is susceptible to interference from speed fluctuations and high-frequency injected ripples at startup. Traditional PI-PLLs struggle to balance dynamic response speed and noise suppression capabilities, resulting in large fluctuations in estimated angles at low speeds, and even loss of lock-up.
[0005] 2. Phase lag and jitter in high-speed domain SMO: Traditional sliding mode observers use a switching function (Sign) to force the observed current to track the actual current, resulting in a back EMF control quantity containing severe high-frequency jitter. Existing technologies typically cascade a low-pass filter (LPF) to filter out high-frequency noise, but this introduces phase lag that varies with rotational speed, requiring complex angle compensation. Furthermore, the compensation accuracy is greatly affected by parameters, limiting control performance at high speeds.
[0006] 3. Poor smoothness of full-speed domain switching: Simple threshold switching can easily cause angle jumps in the transition range, resulting in current surges and affecting the stability of system operation.
[0007] To address the aforementioned issues, there is an urgent need for a sensorless control method for permanent magnet synchronous motors across the entire speed range. Summary of the Invention
[0008] To address the aforementioned issues, this application proposes a sensorless control method for permanent magnet synchronous motors across the entire speed domain based on third-order NLESO-PLL and SOGI-SMO. This method aims to solve the problems of poor low-speed disturbance rejection, high-speed phase lag, and speed fluctuations in traditional methods, while maintaining high-precision rotor position observation even under dynamic speed changes.
[0009] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0010] A sensorless control method for a permanent magnet synchronous motor across the entire speed range includes the following steps:
[0011] S1, estimating the axes of the synchronous rotating coordinate system Inject a high-frequency square wave voltage signal to extract the high-frequency current envelope containing position error. ;
[0012] S2. A third-order nonlinear extended state observer is constructed using a smooth and continuous hyperbolic tangent function as the nonlinear error feedback law. This third-order nonlinear extended state observer is then used to measure the high-frequency current envelope. The angle of the rotor in the low-speed range is obtained through processing. With speed ;
[0013] S3. An improved sliding mode observer (SMO) model is built by replacing the low-pass filter (LPF) with a second-order generalized integrator (SOGI). The pure back electromotive force is obtained by processing the voltage and current of the α-β axes of the permanent magnet synchronous motor using the improved SMO model. ;
[0014] S4, The pure back electromotive force The rotor angle is obtained by normalizing and demodulating the input through a back-EMF phase-locked loop. With speed ;
[0015] S5. Develop a soft switching strategy based on hysteresis logic and vector synthesis to smoothly fuse observation data from the low-speed and high-speed domains.
[0016] The soft switching strategy adopts a vector synthesis method, which converts the low-speed and high-speed angles into vector components on the unit circle, and then restores them to angles after weighted synthesis, thus avoiding the problem of periodic angle jumps from a mathematical perspective.
[0017] The soft switching strategy receives the low-speed domain rotor angle. With speed The angle of the high-speed domain rotor With speed And the current feedback speed As input, after state judgment and weighted calculation, the final control angle is output. With speed .
[0018] Preferably, in S1, the axes of the synchronous rotating coordinate system are estimated. Inject a high-frequency square wave voltage signal to extract the high-frequency current envelope containing position error. The specific content includes:
[0019] Estimating the synchronous rotating coordinate system The expression for injecting a high-frequency square wave voltage signal into the shaft is:
[0020] ;
[0021] in, ;
[0022] in, To inject amplitude, For the injection signal period, The number of injection signal cycles, for High-frequency voltage components of the shaft, for High-frequency voltage components of the shaft, To inject a high-frequency voltage signal, This refers to the high-frequency voltage injection timing point;
[0023] The FOC algorithm is used to drive the motor rotation. The three-phase current of the motor is acquired through current acquisition and then transformed by Clarke. The current values of the two axes are used to extract the high-frequency current envelope containing the position error using a demodulation algorithm. The expression for the demodulation algorithm is:
[0024] ;
[0025] in, This indicates the estimated rotor electrical angle. They represent the extracted High-frequency current components of the shaft, This represents the inductance values along the d-axis and q-axis. Indicates the electrical angle error value. This represents the switching factor corresponding to the polarity of the high-frequency square wave injection. An integer index that increments over time. The sampling period.
[0026] Preferably, the specific content of constructing the third-order nonlinear extended state observer in S2 includes:
[0027] The error tracking system PLL is modeled as a disturbed second-order system, and the state variables of the second-order system are defined as follows:
[0028] ;
[0029] in, For angular error, For speed error, This is an extended state, containing unmodeled dynamics and external disturbances. Indicates the angle error value. This represents the total external disturbance. The derivative representing the angular error;
[0030] Construct a discretized third-order nonlinear extended state observer, expressed as:
[0031] ;
[0032] in, System status Observed values; Input the error signal demodulated by HFI; The sampling period; The observer gain determines the observation bandwidth; It is the hyperbolic tangent function. To adjust the steepness of the nonlinear function, The observation error at each sampling point, Indicates the sampling point number.
[0033] For the calculated state The predicted rotational speed is obtained by performing one integration, and the predicted angle is obtained by performing another integration.
[0034] Preferably, the specific content of building the improved sliding mode observer (SMO) model in S3 includes:
[0035] Defined in a two-phase stationary coordinate system The current state equation of the PMSM is as follows:
[0036] ;
[0037] Constructing a sliding mode observer:
[0038] ;
[0039] Among them, the sliding mode control signal is:
[0040] ;
[0041] in, Indicates sliding mode gain. Represents a symbolic function. These represent the actual current value and the estimated current value, respectively. For motor phase resistance, For motor inductance, For motor The magnitude of the voltage on the shaft, This is the actual back electromotive force value of the motor. Predict the back electromotive force value for the motor;
[0042] It includes back electromotive force information and high-frequency switching noise;
[0043] Processed using a second-order generalized integrator SOGI The transfer function for SOGI is:
[0044] ;
[0045] in, Let be the transfer function of the second-order generalized integrator. This is the damping coefficient. It is used to adjust the filtering bandwidth of SOGI and the dynamic response speed of the system. For the Laplace operator;
[0046] The center frequency of SOGI The estimated electric angular velocity is set in real time as the final overall solution output. ;
[0047] Output after SOGI processing This is the fundamental back electromotive force.
[0048] Preferably, the position error in the back EMF phase-locked loop is defined as:
[0049] ;
[0050] in, These represent the fundamental back electromotive force values, This represents the electrical angle value predicted by the SMO. The position error signal predicted by the SMO;
[0051] This error is passed through a PI controller, which outputs the rotational speed; the angle is obtained by integration. .
[0052] Preferably, the specific content of building a soft handover strategy based on hysteresis logic and vector synthesis in S5 includes:
[0053] S501. Construct a hysteresis state mechanism based on speed feedback to improve the stability of the transition zone, and output the state range to which the current speed belongs based on the hysteresis state mechanism.
[0054] S502. Based on the output results of the hysteresis state mechanism and the current rotational speed, calculate the fusion weighting coefficient. G A smooth transition slope is formed between the low-speed zone and the high-speed zone;
[0055] S503 employs a vector synthesis method for angle fusion, utilizing the four-quadrant arctangent function to synthesize the vector. The final fusion angle is obtained by performing calculations. ;
[0056] The final output speed is obtained by calculating using a conventional linear weighted formula. .
[0057] Preferably, the specific content of the hysteresis state mechanism based on velocity feedback in S501 includes:
[0058] Three key speed thresholds are preset, and the low-speed cutoff speed is set. Switch to high-speed mode speed and the speed when switching to high-speed mode And satisfy ;
[0059] Define persistent state variables to indicate whether the current mode is pure high-speed mode. The specific logic for the judgment process is as follows:
[0060] If currently in "pure high-speed mode", only when the absolute value of the feedback speed is... Fall to Only when the following conditions are met will the status be switched to false, exiting the pure high-speed mode;
[0061] Conversely, if the current mode is "mixed / low speed", only when the absolute value of the feedback speed is... Exceed Only when the state is set to true will it enter pure high-speed mode.
[0062] Preferably, the specific content of S502 includes:
[0063] Among them, the fusion weight coefficient The value ranges from 0 to 1, where 0 represents the use of HFI data and 1 represents the use of SMO data.
[0064] When the state machine indicates that it is in "pure high-speed mode", the weighting coefficients are forcibly adjusted. Set to 1.0 to directly transmit high-speed observation data to save computing resources;
[0065] When the state machine indicates that it is in non-high-speed mode, linear interpolation calculation is performed based on the real-time speed:
[0066] If the absolute value of the current rotational speed is less than or equal to ,but Set to 0.0;
[0067] If the current absolute value of the speed is located at and Between, then weight According to the formula Perform the calculation.
[0068] Preferably, the specific content of angle fusion using the S503 vector synthesis method includes:
[0069] Using weights to reduce low-speed angles With high speed angle Map each component to a weighted vector component on the unit circle to construct the x and y coordinates of the composite vector:
[0070] ;
[0071] Where G is the fusion weight coefficient;
[0072] Using the four-quadrant arctangent function to synthesize vectors The final fusion angle is obtained by performing calculations. .
[0073] The preferred expression for the conventional linear weighted formula is:
[0074] ;
[0075] in, This represents the rotational speed value calculated by the high-frequency injection method in the low-speed domain. This represents the rotational speed value calculated by the high-speed domain sliding mode observer method. Indicates the fusion weighting coefficient. This represents the output rotational speed value after weighting.
[0076] In summary, the sensorless control method for a permanent magnet synchronous motor across the entire speed range of this invention has the following advantages compared to traditional technologies:
[0077] 1. The proposed third-order NLESO uses a hyperbolic tangent function, which has stronger perturbation observation and compensation capabilities compared to traditional PI or linear observers.
[0078] 2. By using SOGI to replace the traditional LPF, the phase lag problem caused by filtering is alleviated in principle, the tedious phase compensation calibration process is eliminated, the angle observation accuracy in the high-speed section is improved, and the speed fluctuation is reduced.
[0079] 3. The combination of NLESO's filtering characteristics and SOGI's bandpass characteristics makes the speed and position signal waveforms smooth across the entire speed range, significantly reducing sliding mode jitter.
[0080] 4. The angle prediction method of the invention can closely match the actual angle with only a small angle lag.
[0081] The technical method of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0082] Figure 1 This is a schematic diagram of the overall solution process;
[0083] Figure 2 A schematic diagram of the overall simulation setup;
[0084] Figure 3 This is a schematic diagram of a high-frequency injection module;
[0085] Figure 4 This is a schematic diagram of the sliding mode observer module;
[0086] Figure 5 This is a schematic diagram of the high-speed / low-speed domain switching module;
[0087] Figure 6 This is a diagram illustrating the comparison of speed following at low speeds. Figure 6 (a) in the diagram is the overall schematic diagram. Figure 6 (b) in the diagram is an enlarged view of point A in (a);
[0088] Figure 7 This is a schematic diagram comparing the speed error in the low-speed range;
[0089] Figure 8 This is a diagram comparing the speed following performance at high speeds. Figure 8 (a) in the diagram is the overall schematic diagram. Figure 8 (b) in the diagram is an enlarged view of point B in (a);
[0090] Figure 9 This is a schematic diagram comparing the speed error at high speeds.
[0091] Figure 10 This is a schematic diagram showing the overall speed tracking comparison;
[0092] Figure 11 This is a schematic diagram comparing the overall rotational speed error;
[0093] Figure 12 To improve the method, an angle-following diagram is provided. Figure 12 (a) in the diagram is the overall schematic diagram. Figure 12 (b) is an enlarged view of point C in (a). Detailed Implementation
[0094] The technical method of the present invention will be further described below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps described in these embodiments do not limit the scope of this application.
[0095] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the scope of this application and its application or use.
[0096] Techniques, systems, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, they should be considered part of the instruction manual.
[0097] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0098] Unless otherwise defined, the technical or scientific terms used in this invention shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains.
[0099] A sensorless control method for a permanent magnet synchronous motor across the entire speed range, such as Figure 1 As shown, it includes the following steps:
[0100] S1, estimating the axes of the synchronous rotating coordinate system Inject a high-frequency square wave voltage signal to extract the high-frequency current envelope containing position error. .
[0101] S2. A third-order nonlinear extended state observer is constructed using a smooth and continuous hyperbolic tangent function as the nonlinear error feedback law. This third-order nonlinear extended state observer is then used to measure the high-frequency current envelope. The angle of the rotor in the low-speed range is obtained through processing. With speed .
[0102] S3. An improved sliding mode observer (SMO) model is built by replacing the low-pass filter (LPF) with a second-order generalized integrator (SOGI). The pure back electromotive force is obtained by processing the voltage and current of the α-β axes of the permanent magnet synchronous motor using the improved SMO model. .
[0103] S4, The pure back electromotive force The rotor angle is obtained by normalizing and demodulating the input through a back-EMF phase-locked loop. With speed .
[0104] S5. Develop a soft switching strategy based on hysteresis logic and vector synthesis to smoothly fuse observation data from the low-speed and high-speed domains.
[0105] The soft switching strategy employs a vector synthesis method, which converts low-speed and high-speed angles into vector components on a unit circle, weights them together, and then restores them to angles, thus mathematically avoiding the problem of periodic angle jumps.
[0106] The soft switching strategy receives the low-speed domain rotor angle. With speed The angle of the high-speed domain rotor With speed And the current feedback speed As input, after state judgment and weighted calculation, the final control angle is output. With speed .
[0107] Example 1
[0108] Low-speed domain: Third-order nonlinear expanding state observer (NLESO-PLL) based on hyperbolic tangent function.
[0109] To address the poor disturbance rejection capability of traditional PI-PLL systems, this invention introduces the concept of active disturbance rejection control. All factors, including speed fluctuations, injected ripple, and model mismatch, are defined as the "total disturbance," and a third-order nonlinear extended state observer is constructed.
[0110] Unlike traditional Expanding State Observers (ESOs) and improved fal functions, this invention employs a smooth and continuous hyperbolic tangent function. As a nonlinear error feedback law The function exhibits linearity near the origin and saturation when the error is large. This avoids oscillations caused by high gain and ensures fast convergence. NLESO directly replaces the PI element in a traditional PLL, enabling zero steady-state error tracking of position errors and real-time compensation for disturbances.
[0111] Furthermore, in S1, the axes of the synchronously rotating coordinate system are estimated. Inject a high-frequency square wave voltage signal to extract the high-frequency current envelope containing position error. The specific content includes:
[0112] Estimating the synchronous rotating coordinate system The expression for injecting a high-frequency square wave voltage signal into the shaft is:
[0113] .
[0114] in, .
[0115] in, To inject amplitude, For the injection signal period, The number of injection signal cycles, for High-frequency voltage components of the shaft, for High-frequency voltage components of the shaft, To inject a high-frequency voltage signal, This refers to the high-frequency voltage injection time point.
[0116] Because the square wave injection frequency is high, there is no need for a complex bandpass filter. The FOC algorithm is used to drive the motor rotation. The three-phase current of the motor is acquired through current acquisition and then transformed by Clarke. The current values of the two axes are used to extract the high-frequency current envelope containing the position error using current difference or demodulation algorithms. The expression for the demodulation algorithm is:
[0117] .
[0118] in, This indicates the estimated rotor electrical angle. They represent the extracted High-frequency current components of the shaft, This represents the inductance values along the d-axis and q-axis. Indicates the electrical angle error value. This represents the switching factor corresponding to the polarity of the high-frequency square wave injection. An integer index that increments over time. The sampling period.
[0119] Traditional PLLs typically use a PI controller to regulate the circuit, bringing it towards zero. Their closed-loop transfer function is equivalent to a second-order system, and under dynamic conditions, the integral element is prone to saturation or response lag.
[0120] Furthermore, the specific details of constructing the third-order nonlinear extended state observer in S2 include:
[0121] The error tracking system PLL is modeled as a disturbed second-order system, and the state variables of the second-order system are defined as follows: .
[0122] in, For angular error, For speed error, This is an extended state, containing unmodeled dynamics and external disturbances. Indicates the angle error value. This represents the total external disturbance. This represents the derivative of the angular error.
[0123] The discretized third-order nonlinear extended state observer (NLESO) is constructed, i.e., the discretized third-order NLESO observer, and its expression is:
[0124] .
[0125] in, System status Observed values; Input the error signal demodulated by HFI; The sampling period; The observer gain determines the observation bandwidth; It is the hyperbolic tangent function. To adjust the steepness of the nonlinear function, The observation error at each sampling point, Indicates the sampling point number.
[0126] For the calculated state The predicted rotational speed is obtained by performing one integration, and the predicted angle is obtained by performing another integration.
[0127] use The function in error When the error is large, the output tends to saturate, preventing system overshoot caused by traditional high gain; when the error is small, it has high gain characteristics, ensuring fast convergence.
[0128] By using the observed disturbance state for feedforward compensation, the PLL can still effectively suppress the inherent second harmonic ripple of the HFI under low damping conditions such as no load, and output a stable estimated speed. Finally, the estimated speed and angle are derived from the observer state and obtained by integration.
[0129] Example 2
[0130] High-speed domain: An improved sliding mode observer (SMO) based on the second-order generalized integrator-phase-locked loop (SOGI-PLL).
[0131] To address the phase lag problem caused by traditional SMO plus a traditional low-pass filter (LPF), this invention uses a second-order generalized integrator to replace the LPF.
[0132] SOGI has frequency selectivity; when its center frequency is set to the synchronous electrical angular velocity, it can extract the fundamental component of the back electromotive force in the sliding mode control law without attenuation or phase lag, while effectively filtering out high-order harmonics introduced by the sliding mode switch. The purified back electromotive force after SOGI filtering is fed into the phase-locked loop for normalization and angle demodulation, thereby obtaining a high-precision rotor position.
[0133] Furthermore, the specific details of building the improved sliding mode observer (SMO) model in S3 include:
[0134] Defined in a two-phase stationary coordinate system The current state equation of the PMSM is as follows:
[0135] .
[0136] Constructing a sliding mode observer:
[0137] .
[0138] Among them, the sliding mode control signal is:
[0139] .
[0140] in, Indicates sliding mode gain. Represents a symbolic function. These represent the actual current value and the estimated current value, respectively. For motor phase resistance, For motor inductance, For motor The magnitude of the voltage on the shaft, This is the actual back electromotive force value of the motor. Predict the back electromotive force value for the motor.
[0141] It includes back EMF information and high-frequency switching noise.
[0142] Traditional methods use low-pass filters to extract back electromotive force, which introduces phase lag. This invention uses a second-order generalized integrator (SOGI) for processing. The transfer function for SOGI is:
[0143] .
[0144] in, Let be the transfer function of the second-order generalized integrator. This is the damping coefficient. It is used to adjust the filtering bandwidth of SOGI and the dynamic response speed of the system. For the Laplace operator.
[0145] The center frequency of SOGI The estimated electric angular velocity is set in real time as the final overall solution output. .
[0146] Because SOGI at the resonant frequency The amplitude gain at point A is 1 and the phase lag is 0. Therefore, the output after SOGI processing is... It is the fundamental back electromotive force, and there is no phase lag, which eliminates the phase compensation link that varies with the rotational speed and greatly simplifies the algorithm.
[0147] Obtain a pure back electromotive force Instead of using the arctangent function to calculate the angle (to avoid differential noise), a back EMF phase-locked loop is constructed.
[0148] Furthermore, the position error in the back EMF phase-locked loop is defined as:
[0149] .
[0150] in, These represent the fundamental back electromotive force values, This represents the electrical angle value predicted by the SMO. This is the position error signal predicted by the SMO.
[0151] This error is passed through a PI controller, which outputs the rotational speed; the angle is obtained by integration. .
[0152] Example 3
[0153] Switching strategy: Hysteresis logic + vector composition.
[0154] A state machine-based hysteresis switching logic was designed to prevent repeated switching near the threshold. In the angle fusion algorithm, direct algebraic weighting was abandoned in favor of vector synthesis: low-speed and high-speed angles were converted into vector components on the unit circle, weighted, synthesized, and then restored to angles, thus mathematically avoiding the problem of periodic angle jumps.
[0155] This invention designs a soft switching strategy based on hysteresis logic and vector synthesis to achieve smooth fusion of low-speed observation data and high-speed observation data.
[0156] Furthermore, the specific details of building a soft handover strategy based on hysteresis logic and vector synthesis in S5 include:
[0157] S501. In order to prevent the control mode from frequently changing due to signal noise when the motor is running near the switching threshold, this embodiment constructs a hysteresis state mechanism based on speed feedback to improve the stability of the transition zone, and outputs the state interval to which the current speed belongs based on the hysteresis state mechanism.
[0158] Furthermore, the specific details of the hysteresis state mechanism based on velocity feedback in S501 include:
[0159] Three key speed thresholds are preset, and the low-speed cutoff speed is set. Switch to high-speed mode speed and the speed when switching to high-speed mode And satisfy .
[0160] Define persistent state variables to indicate whether the current mode is pure high-speed mode. The specific logic for the judgment process is as follows:
[0161] If currently in "pure high-speed mode", only when the absolute value of the feedback speed is... Fall to Only when the following conditions are met will the status be switched to false, exiting the pure high-speed mode.
[0162] Conversely, if the current mode is "mixed / low speed", only when the absolute value of the feedback speed is... Exceed Only when the state is set to true will it enter pure high-speed mode.
[0163] By establishing a hysteresis interval, the stability of the system in the transition region is effectively improved.
[0164] S502. Based on the output results of the hysteresis state mechanism and the current rotational speed, calculate the fusion weighting coefficient. G A smooth transition slope is formed between the low-speed zone and the high-speed zone.
[0165] Furthermore, the specific content of S502 includes:
[0166] Among them, the fusion weight coefficient The value ranges from 0 to 1, where 0 represents using HFI data exclusively and 1 represents using SMO data exclusively.
[0167] When the state machine indicates that it is in "pure high-speed mode", the weighting coefficients are forcibly adjusted. Set to 1.0 to directly transmit high-speed observation data to save computing resources.
[0168] When the state machine indicates that it is in non-high-speed mode, linear interpolation calculation is performed based on the real-time speed:
[0169] If the absolute value of the current rotational speed is less than or equal to ,but Take 0.0.
[0170] If the current absolute value of the speed is located at and Between, then weight According to the formula Perform the calculation.
[0171] S503. To address the periodic jump problem in the angle fusion process, this invention abandons the traditional algebraic weighting method and adopts a vector synthesis method for angle fusion, utilizing the four-quadrant arctangent function to synthesize the vector. The final fusion angle is obtained by performing calculations. .
[0172] The final output speed is obtained by calculating using a conventional linear weighted formula. .
[0173] Furthermore, the specific details of angle fusion using the S503 vector synthesis method include:
[0174] Using weights to reduce low-speed angles With high speed angle Map each component to a weighted vector component on the unit circle to construct the x and y coordinates of the composite vector:
[0175] .
[0176] Where G is the fusion weight coefficient.
[0177] Using the four-quadrant arctangent function to synthesize vectors The final fusion angle is obtained by performing calculations. This method, from a mathematical perspective, guarantees the continuity of the synthesized angle throughout the entire circumference.
[0178] Furthermore, the expression for the conventional linear weighted formula is:
[0179] .
[0180] in, This represents the rotational speed value calculated by the high-frequency injection method in the low-speed domain. This represents the rotational speed value calculated by the high-speed domain sliding mode observer method. Indicates the fusion weighting coefficient. This represents the output rotational speed value after weighting.
[0181] Example 4
[0182] Method verification was performed using MATLAB / Simulink to build a speed-current dual closed-loop sensorless control system for a permanent magnet synchronous motor (PMSM). High-frequency injection combined with a third-order NLESO-PLL was used for the low-speed range, while the SGIO-SMO method was used for the high-speed range. Since the PMSM undergoes a calibration process 0.2 seconds before system startup, the expected speed was set to increase to 200 rpm from 0.2 seconds, maintain this speed for 0.8 seconds, then increase to 1000 rpm and maintain this speed. The overall simulation time was set to 2.5 seconds. The overall simulation setup is as follows: Figures 2-5 As shown, Figure 5 middle This indicates the sampling delay, meaning that the data obtained from the previous sampling time is used.
[0183] Simulation results are as follows Figure 6 and Figure 7 As shown, when the speed begins to increase, the method of the present invention can effectively reduce speed fluctuations and quickly converge to near the actual speed. The speed error during the dynamic speed change segment can be kept within 10 rpm, and the speed during the stable speed segment can be kept within 5 rpm. It can be seen that the third-order NLESO proposed in this application adopts a hyperbolic tangent function, which has a stronger disturbance observation and compensation capability compared with traditional PI or ESO.
[0184] like Figure 8 and Figure 9 As shown, this method can significantly reduce the predicted speed fluctuation of SMO and keep the speed error in the high-speed range within 10 rpm. It can be seen that by using SOGI to replace the traditional LPF, the phase lag problem caused by filtering is alleviated in principle, the cumbersome phase compensation calibration process is eliminated, the angle observation accuracy in the high-speed range is improved, and the speed fluctuation is reduced.
[0185] Simulation effect as Figure 10 and Figure 11 As shown, the combination of NLESO's filtering characteristics and SOGI's bandpass characteristics makes the speed and position signal waveforms smooth across the entire speed domain, significantly reducing sliding mode jitter. The hysteresis logic-based state machine and linear interpolation calculation fusion weights ensure the smooth fusion of the two algorithms in the transition zone, avoiding current oscillations caused by control mode switching. The speed dynamic change segment error is kept within 10 rpm, and the speed steady segment error can be kept within 5 rpm.
[0186] like Figure 12 As shown, the angle prediction using the improved method of this invention can closely match the reference angle with only a small angle lag.
[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical methods of the present invention and not to limit them. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the technical methods of the present invention, and these modifications or equivalent substitutions cannot cause the modified technical methods to deviate from the spirit and scope of the technical methods of the present invention.
Claims
1. A sensorless control method for a permanent magnet synchronous motor across its entire speed range, characterized in that, Includes the following steps: S1, estimating the axes of the synchronous rotating coordinate system Inject a high-frequency square wave voltage signal to extract the high-frequency current envelope containing position error. ; S2. A third-order nonlinear extended state observer is constructed using a smooth and continuous hyperbolic tangent function as the nonlinear error feedback law. This third-order nonlinear extended state observer is then used to measure the high-frequency current envelope. The angle of the rotor in the low-speed range is obtained through processing. With speed ; S3. An improved sliding mode observer (SMO) model is built by replacing the low-pass filter (LPF) with a second-order generalized integrator (SOGI). The pure back electromotive force is obtained by processing the voltage and current of the α-β axes of the permanent magnet synchronous motor using the improved SMO model. ; S4, The pure back electromotive force The rotor angle is obtained by normalizing and demodulating the input through a back-EMF phase-locked loop. With speed ; S5. Develop a soft switching strategy based on hysteresis logic and vector synthesis to smoothly fuse observation data from the low-speed and high-speed domains. The soft switching strategy adopts a vector synthesis method, which converts the low-speed and high-speed angles into vector components on the unit circle, and then restores them to angles after weighted synthesis, thus avoiding the problem of periodic angle jumps from a mathematical perspective. The soft switching strategy receives the low-speed domain rotor angle. With speed The angle of the high-speed domain rotor With speed And the current feedback speed As input, after state judgment and weighted calculation, the final control angle is output. With speed ; The specific content of building a soft handover strategy based on hysteresis logic and vector synthesis in S5 includes: S501. Construct a hysteresis state mechanism based on speed feedback to improve the stability of the transition zone, and output the state range to which the current speed belongs based on the hysteresis state mechanism. S502. Based on the output results of the hysteresis state mechanism and the current rotational speed, calculate the fusion weighting coefficient. G A smooth transition slope is formed between the low-speed zone and the high-speed zone; S503 employs a vector synthesis method for angle fusion, utilizing the four-quadrant arctangent function to synthesize the vector. The final fusion angle is obtained by performing calculations. ; The final output speed is obtained by calculating using a conventional linear weighted formula. .
2. The sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 1, characterized in that, In S1, the axes of the synchronous rotating coordinate system are estimated. Inject a high-frequency square wave voltage signal to extract the high-frequency current envelope containing position error. The specific content includes: Estimating the synchronous rotating coordinate system The expression for injecting a high-frequency square wave voltage signal into the shaft is: ; in, ; in, To inject amplitude, For the injection signal period, The number of injection signal cycles, for High-frequency voltage components of the shaft, for High-frequency voltage components of the shaft, To inject a high-frequency voltage signal, This refers to the high-frequency voltage injection timing point; The FOC algorithm is used to drive the motor rotation. The three-phase current of the motor is acquired through current acquisition and then transformed by Clarke. The current values of the two axes are used to extract the high-frequency current envelope containing the position error using a demodulation algorithm. The expression for the demodulation algorithm is: ; in, This indicates the estimated rotor electrical angle. They represent the extracted High-frequency current components of the shaft, This represents the inductance values along the d-axis and q-axis. Indicates the electrical angle error value. This represents the switching factor corresponding to the polarity of the high-frequency square wave injection. An integer index that increments over time. The sampling period.
3. The sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 2, characterized in that, The specific content of constructing a third-order nonlinear extended state observer in S2 includes: The error tracking system PLL is modeled as a disturbed second-order system, and the state variables of the second-order system are defined as follows: ; in, For angular error, For speed error, This is an extended state, containing unmodeled dynamics and external disturbances. Indicates the angle error value. This represents the total external disturbance. The derivative representing the angular error; Construct a discretized third-order nonlinear extended state observer, expressed as: ; in, System status Observed values; Input the error signal demodulated by HFI; The sampling period; The observer gain determines the observation bandwidth; It is the hyperbolic tangent function. To adjust the steepness of the nonlinear function, The observation error at each sampling point, Indicates the sampling point number; For the calculated state The predicted rotational speed is obtained by performing one integration, and the predicted angle is obtained by performing another integration.
4. The sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 3, characterized in that, The specific content of building the improved sliding mode observer (SMO) model in S3 includes: Defined in a two-phase stationary coordinate system The current state equation of the PMSM is as follows: ; Constructing a sliding mode observer: ; Among them, the sliding mode control signal is: ; in, Indicates sliding mode gain. Represents a symbolic function. These represent the actual current value and the estimated current value, respectively. For motor phase resistance, For motor inductance, For motor The magnitude of the voltage on the shaft, This is the actual back electromotive force value of the motor. Predict the back electromotive force value for the motor; It includes back electromotive force information and high-frequency switching noise; Processed using a second-order generalized integrator SOGI The transfer function for SOGI is: ; in, Let be the transfer function of the second-order generalized integrator. The damping coefficient is used to adjust the filtering bandwidth of SOGI and the dynamic response speed of the system. For the Laplace operator; The center frequency of SOGI The estimated electric angular velocity is set in real time as the final overall solution output. ; Output after SOGI processing This is the fundamental back electromotive force.
5. The sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 4, characterized in that, The position error in a back EMF phase-locked loop is defined as: ; in, These represent the fundamental back electromotive force values, This represents the electrical angle value predicted by the SMO. The position error signal predicted by the SMO; This error is passed through a PI controller, which outputs the rotational speed; the angle is obtained by integration. .
6. The sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 5, characterized in that, The specific details of the hysteresis state mechanism based on velocity feedback in S501 include: Three key speed thresholds are preset, and the low-speed cutoff speed is set. Switch to high-speed mode speed and the speed when switching to high-speed mode And satisfy ; Define persistent state variables to indicate whether the current mode is pure high-speed mode. The specific logic for the judgment process is as follows: If currently in pure high-speed mode, only when the absolute value of the feedback speed... Fall to When the following occurs, the status will be switched to false, exiting the pure high-speed mode; Conversely, if the current mode is hybrid / low speed, only when the absolute value of the feedback speed is... Exceed When the state is set to true, the system enters pure high-speed mode.
7. The sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 6, characterized in that, Specific content of S502 include: Among them, the fusion weight coefficient The value ranges from 0 to 1, where 0 represents the use of HFI data and 1 represents the use of SMO data. When the state machine indicates that it is in pure high-speed mode, the weighting coefficients are forcibly adjusted. Set to 1.0 to directly transmit high-speed observation data to save computing resources; When the state machine indicates that it is in non-high-speed mode, linear interpolation calculation is performed based on the real-time speed: If the absolute value of the current rotational speed is less than or equal to ,but Set to 0.0; If the current absolute value of the speed is located at and Between, then weight According to the formula Perform the calculation.
8. The sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 7, characterized in that, The specific content of angle fusion using the S503 vector synthesis method includes: Using weights to reduce low-speed angles With high speed angle Map each component to a weighted vector component on the unit circle to construct the x and y coordinates of the composite vector: ; Where G is the fusion weight coefficient; Using the four-quadrant arctangent function to synthesize vectors The final fusion angle is obtained by performing calculations. .
9. A sensorless control method for a permanent magnet synchronous motor across the entire speed range according to claim 8, characterized in that, The expression for the conventional linear weighted formula is: ; in, This represents the rotational speed value calculated by the high-frequency injection method in the low-speed domain. This represents the rotational speed value calculated by the high-speed domain sliding mode observer method. Indicates the fusion weighting coefficient. This represents the output rotational speed value after weighting.