A sensorless driving method for permanent magnet synchronous motor
By continuously running the rotor position observer during the square wave control phase and performing a transition process when the speed threshold is met, the problems of rotor position estimation error and limited switching timing in permanent magnet synchronous motor drive control are solved, achieving a smooth switch from square wave control to sine wave control and improving the system's stability and dynamic response performance.
Patent Information
- Application Number
- CN202611301301.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-27
AI Technical Summary
In existing permanent magnet synchronous motor drive control, the switching strategy between square wave control and sine wave control has problems such as large rotor position estimation error, limited switching timing and poor system stability, resulting in torque fluctuation and loss of synchronization risk.
During the square wave control phase, the rotor position observer is continuously run. The rotor position is recursively estimated through the sliding mode observer, and a transition process is performed when the speed threshold is met. The base voltage vector is mapped to the synchronous rotating coordinate system to achieve a smooth switch from square wave control to sine wave control. The high-resolution position information of the observer is used for switching and reverting.
It avoids torque fluctuations and system step loss risks caused by rotor position estimation errors, improves the flexibility and engineering applicability of the control strategy, and ensures stable switching and dynamic response performance over a wide speed range.
Smart Images

Figure CN123184560A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of drive control technology for permanent magnet synchronous motors, and in particular to a sensorless drive method for permanent magnet synchronous motors. Background Technology
[0002] In the drive control of permanent magnet synchronous motors, sensorless square wave control and sensorless sine wave control are two of the most common control strategies. Sensorless square wave control relies on a back EMF detection circuit to determine the rotor position, thereby determining the energizing sequence of power devices. This method can output a large torque and has a strong load-carrying capacity when the motor is running at low speeds. However, its inherent commutation mechanism leads to large output torque ripple, accompanied by significant operating noise, and overall operating efficiency is relatively low. In contrast, sensorless sine wave control uses a rotor position observer to estimate the stator voltage and current in real time, enabling field-oriented control. It has advantages such as stable torque output, low noise, and high operating efficiency. However, under low-speed, heavy-load conditions, it is prone to losing accurate tracking of the rotor position due to weak back EMF signals, thus limiting its low-speed load-carrying performance.
[0003] In existing drive systems, to balance the requirements of low-speed heavy-load operation and high-speed smooth operation, two control methods are typically combined: sensorless square wave control is used during motor startup and low-speed phases, switching to sensorless sine wave control once the motor accelerates to a certain speed. However, this switching strategy has significant drawbacks in practical implementation. Because the sensorless square wave control phase relies solely on back EMF detection to obtain six discrete rotor position intervals, the position resolution is extremely low. Furthermore, the rotor position observer typically only starts operating after entering sine wave control; therefore, at the moment of switching, the observer is still in a non-converged state, resulting in a significant deviation in its output rotor position estimate.
[0004] However, the main drawbacks of existing technologies are as follows: First, in the initial few cycles of switching from square wave control to sine wave control, due to the observer not yet converging, there is a significant error between the estimated rotor position and the actual position. This leads to inaccurate coordinate transformation in field-oriented control, and the voltage vectors applied to the direct and quadrature axes cannot generate the correct electromagnetic torque, resulting in severe torque fluctuations. In severe cases, this can even cause the motor to lose synchronism, leading to system collapse. Second, to avoid the aforementioned risk of losing synchronism, existing solutions often force the switching action to be performed near the zero-crossing point of the motor's back EMF, i.e., switching is only allowed when the rotor is in a specific angular range. This greatly limits the flexibility of the switching timing, making it impossible for the control strategy to switch freely over a wide speed range. It also increases the complexity of timing coordination in engineering applications, which is not conducive to the system's rapid response to dynamic load changes. Summary of the Invention
[0005] In order to overcome the shortcomings and deficiencies of the existing technology, the present invention provides a sensorless driving method for permanent magnet synchronous motors.
[0006] The technical solution adopted in this invention is a sensorless driving method for a permanent magnet synchronous motor, comprising the following steps: S1, in response to a start command, sensorless square wave control is applied to the motor. In this control mode, the energizing sequence of the power conversion device is determined based on the output of the back electromotive force detection circuit, and the phase current signal flowing through the stator winding and the phase voltage signal applied to the stator winding are simultaneously acquired; S2, based on the acquired phase current and phase voltage, a rotor position observer built into the controller is continuously driven to estimate the real-time electrical angle of the rotor recursively throughout the square wave control process. The observer constructs state variables based on the motor's voltage equation to output a position estimate; S3, the motor operating speed is monitored in real time and compared with a preset first switching threshold. When the operating speed is greater than the first switching threshold, the square wave control is terminated and a transition is initiated. S4, during the transition process, the estimated rotor position output by the observer at the current moment is obtained, and the base voltage vector applied to the stator in the current square wave control mode is mapped to the direct axis and quadrature axis in the synchronous rotating coordinate system based on the estimated value to generate the initial voltage component of the direct axis and the initial voltage component of the quadrature axis; S5, the initial voltage component of the direct axis and the initial voltage component of the quadrature axis are assigned as initial voltage values to the field orientation controller of the sensorless sine wave control, and then the controller is switched to the sine wave operation mode. The controller performs closed-loop current loop adjustment according to the initial voltage value and the rotor position updated in real time by the observer; S6, the operating speed is continuously monitored in the sine wave operation mode. When the speed is lower than the preset second switching threshold, the switchback from sine wave control to square wave control is performed. The second switching threshold is less than the first switching threshold.
[0007] Furthermore, the recursive estimation process of the rotor position observer in S2 includes the following calculations: defining the electrical angular velocity of the motor as... The stator resistance is The d-axis inductance is The q-axis inductance is The permanent magnet flux is Then the back electromotive force is extended in Components of the axis and Determined by the following formula: ,in For the rotor electrical angle; further construct the switching function of the sliding mode observer. for ,in This is the sliding mode gain coefficient. For stator current observation error, For sign function, current observation error The measured current is obtained from the difference between the measured current and the observed current, which is based on the voltage equation. We obtain, among which The stator current vector, The stator voltage vector, To extend the back electromotive force vector, This is the stator equivalent inductance.
[0008] Furthermore, in step S4, when mapping the base voltage vector to the synchronous rotating coordinate system, the rotor position estimate output by the observer is used. Perform the following coordinate transformation: direct-axis initial voltage component with the initial voltage component of the cross axis Voltage components in stationary coordinate system and Obtained through the rotation matrix, i.e. Among them, the voltage component in the stationary coordinate system and The base voltage vector amplitude corresponding to the conduction state of the power device under the current square wave control mode Obtained by decomposition at a fixed angle, specifically as follows: This is the spatial phase angle of the base voltage vector in the stationary two-phase coordinate system, which is uniquely determined by the current energizing sequence.
[0009] Furthermore, after receiving the initial voltage value, the field-oriented controller in S5 adjusts the direct-axis command voltage during the current loop regulation process. With cross-axis command voltage The calculation includes the following correction term: the direct-axis current error is defined as... The quadrature axis current error is ,in and These are the direct-axis and quadrature-axis current command values, respectively. and If the measured feedback value is used, the voltage command is composed of the feedforward term and the feedback compensation term, and the expression is:
[0010] ,
[0011] ,
[0012] in, and These are the direct-axis proportional gain and integral gain, respectively. and These are the cross-axis proportional gain and integral gain, respectively. For electrical angular velocity, For stator resistance, and These are direct-axis and quadrature-axis inductors, respectively. It is a permanent magnet flux linkage.
[0013] Furthermore, in step S6, when switching back from sinusoidal wave control to square wave control, the rotor position estimate output by the observer at the moment of switching back is used... Determine the target power-on mode and the corresponding space voltage vector phase angle. Determined by the following interval criterion function: Define the standardized angle ,but Piecewise functions The expression is: when hour ;when hour ;when hour ;when hour ;when hour ;when hour , This is a modulo operation.
[0014] Furthermore, the controller is built into the microcontroller unit of the motor controller. The microcontroller unit drives the switching transistors of the power conversion section through pulse width modulation signals. The power conversion section adopts a combination topology of metal-oxide-semiconductor field-effect transistors and anti-parallel diodes, or a combination topology of insulated-gate bipolar transistors and anti-parallel diodes. The phase current signal is obtained through a single-resistor sampling circuit located at the negative terminal of the DC bus. The single-resistor sampling circuit samples the current during the conduction period of the power devices under each power-on state controlled by the square wave. The sampled values are combined with the current power-on sequence to calculate the three-phase current values. The phase voltage signal is reconstructed based on the modulation wave of the current space vector pulse width modulation and the DC bus voltage value. During reconstruction, a voltage utilization compensation factor is used to correct the dead-zone effect. The second switching threshold is set to 0.6 times the first switching threshold.
[0015] Further, S2 includes the following sub-steps: S21, within each square wave control cycle, determining the distribution relationship of the three-phase currents based on the current energization state, converting the voltage signal on the sampling resistor into a DC bus current value, and calculating the instantaneous value of each phase current in combination with the switching transistor conduction combination; S22, performing Clark transformation on the calculated three-phase currents to transform them to a stationary two-phase coordinate system to obtain... shaft current and Shaft current; S23, based on the modulation waveform of the current space vector pulse width modulation and the DC bus voltage, determine the amplitude of the base voltage vector applied to the motor windings and its spatial phase angle in the current cycle, and decompose the vector to shaft and Axis to obtain shaft voltage and Shaft voltage; S24, to the shaft current, shaft current, shaft voltage and The shaft voltage is fed into the rotor position observer as an input, and the observer performs a recursive update to output the rotor position estimate at the current moment.
[0016] Further, S3 includes the following sub-steps: S31, obtaining the real-time value of the current motor operating speed by monitoring the electrical angular velocity output by the observer or by detecting the zero-crossing frequency of the back EMF; S32, comparing the real-time value with a first switching threshold stored in a register, the first switching threshold being a pre-calibrated speed value; S33, when it is determined that the real-time value is greater than the first switching threshold, generating a switching trigger flag bit and latching the rotor position estimate value output by the observer at the end of the current control cycle; S34, in response to the switching trigger flag bit, pausing the power-on sequence update in the square wave control and directing the control flow to the transition process entry.
[0017] Further, S4 includes the following sub-steps: S41, reading the position estimate value latched by the observer as the current rotor electrical angle; S42, determining the amplitude and phase angle of the base voltage vector being output in the current square wave control cycle in the stationary two-phase coordinate system; S43, using the current rotor electrical angle as the rotation angle, performing a Park transformation on the base voltage vector, projecting the base voltage vector onto the direct axis and quadrature axis of the synchronous rotating coordinate system; S44, temporarily storing the projected direct axis component and quadrature axis component in variables, respectively, as the initial values of the direct axis voltage and quadrature axis voltage of the field-oriented controller when switching to sinusoidal wave control.
[0018] Further, S5 includes the following sub-steps: S51, loading the direct-axis initial voltage component and the quadrature-axis initial voltage component into the integral term initial value register of the field-oriented controller; S52, starting the voltage vector modulation module of the sine wave control, using the initial voltage value as the output voltage command for the current control cycle, and simultaneously enabling the output of the rotor position observer as the rotation angle for coordinate transformation; S53, starting from the next control cycle, the field-oriented controller adjusts the output voltage vector according to the closed-loop error of the speed outer loop and the current inner loop, and the observer continuously provides real-time rotor position to support synchronous rotation coordinate transformation; S54, monitoring the sine wave operation status flag, confirming the switching is complete, and then entering the steady-state operation stage with sine wave control as the default mode until a stop command is received or the speed drops to the second switching threshold.
[0019] Beneficial Effects: By continuously running the rotor position observer during the square wave control phase, it is ensured that the observer has converged when switching to sinusoidal wave control. This allows for direct acquisition of accurate rotor position information, avoiding torque fluctuations and system out-of-synchronization risks caused by position estimation errors. Furthermore, it is no longer constrained by the traditional requirement to switch near the back EMF zero-crossing point, allowing switching at any electrical angle position of the rotor, thus improving the flexibility and engineering applicability of the control strategy. This method achieves a smooth transition from square wave control to sinusoidal wave control by constructing a switching process that includes a transition phase. During the transition phase, based on the rotor position estimate output by the converged observer, the base voltage vector under square wave control is reasonably mapped to the direct and quadrature axes in the synchronous rotating coordinate system. This is used as the initial voltage value for field-oriented control, ensuring that the sinusoidal wave controller has the correct voltage command from the start, avoiding the controller's re-convergence process. By setting a first and second switching threshold with hysteresis characteristics, frequent back-and-forth switching near the switching point is prevented, ensuring the stability of the control mode. This method also makes full use of the high-resolution rotor position information from the sinusoidal wave control stage during the back-cut process, enabling the accurate selection of the corresponding energizing mode when switching from sinusoidal wave control to square wave control, thereby improving the system robustness and dynamic response performance under all operating conditions. Attached Figure Description
[0020] Figure 1 This is a flowchart illustrating the driving method of the present invention;
[0021] Figure 2 This is a diagram of the motor control hardware device of the present invention;
[0022] Figure 3 The diagram shows the energized state of the motor driver under square wave control according to the present invention: (a) rotor angle position change diagram, (b) rotor change circuit design diagram.
[0023] Figure 4 This is a diagram showing the calculation angle of the initial voltage value when switching from a square wave to a sine wave according to the present invention. Detailed Implementation
[0024] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] like Figure 1As shown, a sensorless driving method for a permanent magnet synchronous motor includes the following steps: S1, in response to a start command, sensorless square wave control is applied to the motor. In this control mode, the energizing sequence of the power conversion device is determined based on the output of the back EMF detection circuit, and the phase current signal flowing through the stator winding and the phase voltage signal applied to the stator winding are simultaneously acquired; S2, based on the acquired phase current and phase voltage, a rotor position observer built into the controller is continuously driven to estimate the real-time electrical angle of the rotor recursively throughout the square wave control process. The observer constructs state variables based on the motor's voltage equation to output a position estimate; S3, the motor's operating speed is monitored in real time and compared with a preset first switching threshold. When the operating speed is greater than the first switching threshold, the square wave control is terminated and a transition process is initiated; S4 During the transition process, the estimated rotor position output by the observer at the current moment is obtained, and the base voltage vector applied to the stator in the current square wave control mode is mapped to the direct axis and quadrature axis in the synchronous rotating coordinate system based on the estimated value to generate the initial voltage component of the direct axis and the initial voltage component of the quadrature axis; S5, the initial voltage component of the direct axis and the initial voltage component of the quadrature axis are assigned as initial voltage values to the field orientation controller of the sensorless sine wave control, and then the controller is switched to the sine wave operation mode. The controller performs closed-loop current loop adjustment according to the initial voltage value and the rotor position updated in real time by the observer; S6, the operating speed is continuously monitored in the sine wave operation mode. When the speed is lower than the preset second switching threshold, the switchback from sine wave control to square wave control is performed. The second switching threshold is less than the first switching threshold.
[0026] During step S1, in response to the start command, sensorless square wave control is applied to the motor. Upon receiving a valid start level signal from an external input, the microcontroller unit immediately enters square wave control mode. In this mode, the control logic determines the energizing sequence of the six metal-oxide-semiconductor field-effect transistors in the power conversion device based on the zero-crossing comparison signal output by the back EMF detection circuit. This energizing sequence follows a six-step commutation method, switching the energizing state every 60 electrical degrees. Simultaneously, the analog-to-digital converter module built into the microcontroller unit acquires the phase current signal flowing through the stator winding at a preset sampling frequency. This current signal is sampled through a single resistor located at the negative end of the DC bus during the power device's conduction period. Simultaneously, the phase voltage signal is acquired through reconstruction. The microcontroller unit calculates the phase voltage based on the current duty cycle signal combined with the DC bus voltage value. The DC bus voltage is obtained by analog-to-digital conversion using a resistor divider network, with the sampling period synchronized with the current sampling. Throughout the square wave control phase, the aforementioned voltage and current data are continuously acquired and stored in the microcontroller unit's data register, providing an input data source for the rotor position observer's operation.
[0027] During step S2, the rotor position observer built into the microcontroller unit is continuously driven to run based on the collected phase current and phase voltage. Within each interrupt cycle of the square wave control, the observer program is sequentially called and executed. The observer employs a sliding mode observer, using the phase current and phase voltage signals collected and stored in step S1 as input variables, and recursively estimates the real-time electrical angle of the rotor by solving the motor's voltage balance equation. This observer runs continuously throughout the entire square wave control phase, outputting a continuously changing rotor electrical angle value that is updated in real time as the motor rotates.
[0028] During step S3, the motor's operating speed is monitored in real time and compared with a preset first switching threshold. Within each interrupt cycle, the microcontroller obtains the real-time electrical angular velocity value by calculating the increment of the electrical angle output by the rotor position observer between two adjacent interrupt cycles. The angular velocity increment is divided by the interrupt cycle to obtain the instantaneous angular velocity, which is then multiplied by the pole pair number to convert it into mechanical speed, expressed in revolutions per minute (rpm). The comparison operation is performed at the end of each interrupt cycle, comparing the currently calculated mechanical speed with the preset first switching threshold. When the speed exceeds the first switching threshold, it indicates that the motor has met the back EMF amplitude condition required for sensorless sinusoidal wave control. At this time, the microcontroller generates a switching trigger flag, pauses the square wave control power-on sequence update, and executes the switching process. This comparison process is strictly directional; the switching action is triggered only when the speed rises from below the first switching threshold to above it.
[0029] During step S4, in the transition process, the base voltage vector under the current square wave control is mapped to the synchronous rotating coordinate system based on the rotor position estimate output by the observer. When the switching trigger flag is valid, the microcontroller latches the electrical angle value output by the rotor position observer within the current interruption cycle as the mapping reference angle. Simultaneously, the amplitude of the base voltage vector corresponding to the power device's conduction state within the current square wave control cycle is read; this amplitude is equal to the product of the current DC bus voltage value and the pulse width modulation duty cycle. The mapping process is executed in the arithmetic logic unit of the microcontroller, rotating and projecting the base voltage vector fixed in the stationary coordinate system onto the direct and quadrature axes that rotate with the rotor according to the latched electrical angle value. The direct-axis voltage component and quadrature-axis voltage component obtained after projection are temporarily stored in two independent variables. These two components reflect the equivalent voltage effect under the current square wave voltage condition, along the rotor magnetic pole direction and perpendicular to the magnetic pole direction.
[0030] In step S5, the direct-axis and quadrature-axis voltage components are assigned as initial voltage values to the sensorless sinusoidal control field-oriented controller. The microcontroller loads the temporary direct-axis and quadrature-axis voltage components from step S4 into the initial value register of the field-oriented controller's integral term, respectively, serving as the initial values for the integral terms of the direct-axis and quadrature-axis current regulators. Subsequently, the control program immediately activates the voltage vector modulation module controlled by the sinusoidal wave, using the assigned initial voltage values as the output voltage command for the current control cycle. Simultaneously, the output of the rotor position observer is activated as the source of the rotation angles for all coordinate transformations required for space vector pulse width modulation. From the next interrupt cycle, the field-oriented controller takes over control. At this point, the control mode is completely switched to sensorless sinusoidal wave operation.
[0031] During step S6, the operating speed is continuously monitored in sinusoidal wave operation mode. When the speed falls below a preset second switching threshold, a switchback is executed. During the stable operation phase of the sensorless sinusoidal wave control, the microcontroller continues to calculate the mechanical speed value output by the rotor position observer within each interrupt cycle. The second switching threshold is set to 0.6 times the first switching threshold and is pre-stored in flash memory. Comparison logic is executed at the end of each interrupt cycle, comparing the current real-time speed with the second switching threshold. When the speed remains below the second switching threshold for a certain duration, a switchback from sinusoidal wave control to square wave control is triggered. During the switchback, the microcontroller reads the electrical angle value output by the rotor position observer at the moment of switchback, selects the corresponding energizing mode based on the angle's range, immediately stops the voltage vector modulation of the sinusoidal wave control, and resumes the six-step commutation energizing sequence of the square wave control. The hysteresis switching strategy effectively avoids frequent switching near the switching point due to small speed fluctuations.
[0032] like Figure 2 The diagram shown is of the motor control hardware device of the present invention, which mainly includes a control section, a power supply section, a power conversion section, and a motor.
[0033] The motor controller 200 consists of a power supply section, a power conversion section, and a control section.
[0034] The power supply section consists of power supply 203 and capacitor 204. Power supply 203 provides energy to the entire system, while capacitor 204 performs functions such as voltage regulation and power decoupling.
[0035] The power conversion section consists of metal-oxide-semiconductor field-effect transistors (MOSFETs) and diodes. The MOSFETs include M1 to M6 in the figure, and the diodes include D1 to D6 in the figure. The diodes mainly perform the function of freewheeling. The power conversion section mainly performs the function of inverting DC power into AC power for driving the motor.
[0036] Some motor controllers use insulated gate bipolar transistors (IGBTs) and diodes in their power conversion sections, which have the same function.
[0037] The control section mainly refers to the microcontroller (MCU), which is mainly responsible for sampling external signals and performing a series of calculations to generate PWM drive signals, which are used to control the MOSFET to turn on and off. The MOSFET is controlled by the PWM drive signal to realize the function of converting DC to AC.
[0038] The method for suppressing torque ripple provided in this invention is implemented by programming in an MCU.
[0039] The motor mainly consists of stator coils 206-208 and a rotor 205. A sinusoidal current flowing through the stator coils generates a rotating magnetic field, which drives the rotor to rotate. This rotor rotation induces a voltage in the stator coils. In sensorless square wave control, this voltage can be sampled to determine the energizing mode; in sensorless sinusoidal wave control, the MCU can calculate this voltage and use it to determine the rotor position.
[0040] The motor referred to here is a permanent magnet synchronous motor, which is used in products including but not limited to power tools, vacuum cleaners, lawn mowers, angle grinders, etc.
[0041] Preferably, the recursive estimation process of the rotor position observer in S2 includes the following calculations: defining the electrical angular velocity of the motor as... The stator resistance is The d-axis inductance is The q-axis inductance is The permanent magnet flux is Then the back electromotive force is extended in Components of the axis and Determined by the following formula: ,in For the rotor electrical angle; further construct the switching function of the sliding mode observer. for ,in This is the sliding mode gain coefficient. For stator current observation error, For sign function, current observation error The measured current is obtained from the difference between the measured current and the observed current, which is based on the voltage equation. We obtain, among which The stator current vector, The stator voltage vector, To extend the back electromotive force vector, This is the stator equivalent inductance.
[0042] Specifically, when the motor rotates, the magnetic field generated by the permanent magnet cuts the magnetic field lines in the stator windings, producing a back electromotive force (EMF). This back EMF has two components in a stationary two-phase coordinate system, which are proportional to the sine and cosine values of the rotor's electrical angle, respectively. The proportionality coefficient is the product of the electrical angular velocity and the permanent magnet flux linkage. The electrical angular velocity is obtained by differentiating the rotor position with respect to time. To eliminate high-frequency noise and model errors in the actual back EMF in the observer, a sliding mode observer structure is adopted. Its switching function is constructed by multiplying the sliding mode gain coefficient by the sign function value of the current observation error. The current observation error is defined as the difference between the measured current value and the current value calculated by the observer model. The observer model is based on the voltage balance equation, where the derivative of the stator current with respect to time is equal to the stator voltage minus the back EMF and the voltage drop across the resistance, divided by the stator's equivalent inductance. The sign function is used to determine the positive or negative direction of the current error, generating a switching signal with an amplitude equal to the sliding mode gain coefficient. This switching signal is injected into the observer model, driving the observed current to approximate the measured current.
[0043] Preferably, in step S4, when mapping the base voltage vector to the synchronous rotating coordinate system, the rotor position estimate output by the observer is used. Perform the following coordinate transformation: direct-axis initial voltage component with the initial voltage component of the cross axis Voltage components in stationary coordinate system and Obtained through the rotation matrix, i.e. Among them, the voltage component in the stationary coordinate system and The base voltage vector amplitude corresponding to the conduction state of the power device under the current square wave control mode Obtained by decomposition at a fixed angle, specifically as follows: This is the spatial phase angle of the base voltage vector in the stationary two-phase coordinate system, which is uniquely determined by the current energizing sequence.
[0044] Specifically, under square wave control, the six switches of the power device form six effective base voltage vectors according to a specific conduction combination. The amplitude of each vector is equal to the DC bus voltage, and its spatial phase angle is uniquely determined by the current conduction combination. For example, one conduction combination corresponds to a spatial phase angle of 150 degrees. When switching to sinusoidal wave control is required, the current position estimate output by the rotor position observer is first obtained as the rotation angle. This angle changes continuously over time, with a value range covering 0 to 360 degrees. Then, a rotation transformation is performed on the base voltage vector. This transformation essentially converts the projection of the same vector in two different coordinate systems. Specifically, the direct-axis voltage component is equal to the base voltage vector amplitude multiplied by the cosine of the difference between the phase angle and the rotation angle, and the quadrature-axis voltage component is equal to the base voltage vector amplitude multiplied by the sine of the difference between the phase angle and the rotation angle. Since the voltage vector amplitude in the square wave control stage is equal to the product of the DC bus voltage and the current duty cycle, the mapped direct-axis and quadrature-axis voltage components will also change dynamically accordingly. This transformation process makes full use of the converged continuous position information of the observer to smoothly transform the discrete square wave voltage vector into a rotating coordinate system.
[0045] Preferably, in step S5, after the field-oriented controller receives the initial voltage value, the direct-axis command voltage is adjusted during the current loop regulation process. With cross-axis command voltage The calculation includes the following correction term: the direct-axis current error is defined as... The quadrature axis current error is ,in and These are the direct-axis and quadrature-axis current command values, respectively. and If the measured feedback value is used, the voltage command is composed of the feedforward term and the feedback compensation term, and the expression is:
[0046] ,
[0047] ,
[0048] in, and These are the direct-axis proportional gain and integral gain, respectively. and These are the cross-axis proportional gain and integral gain, respectively. For electrical angular velocity, For stator resistance, and These are direct-axis and quadrature-axis inductors, respectively. It is a permanent magnet flux linkage.
[0049] Specifically, in sensorless sinusoidal wave control, to achieve independent control of torque and flux linkage, the command voltages for the direct axis and quadrature axis need to be calculated separately. The command voltage for each axis is composed of a feedforward compensation term and a feedback regulation term. The feedforward compensation term is based on the motor's steady-state voltage equation. The direct-axis feedforward voltage equals the stator resistance multiplied by the direct-axis current command minus the product of the electrical angular velocity and the quadrature-axis inductance and current command. This term is used to counteract the cross-coupling effect of the quadrature-axis current on the direct axis and the resistance voltage drop. The quadrature-axis feedforward voltage equals the stator resistance multiplied by the quadrature-axis current command plus the product of the electrical angular velocity, the direct-axis inductance and current command, and the permanent magnet flux linkage. This term is used to generate the voltage required to overcome the back electromotive force and cross-coupling. The feedback regulation term uses a proportional-integral controller structure. The product of the proportional gain and the current error provides the instantaneous response component, while the integral gain and the integral of the current error over time provide the steady-state error elimination component.
[0050] Preferably, in step S6, when switching back from sinusoidal control to square wave control, the rotor position estimate output by the observer at the moment of switching back is used. Determine the target power-on mode and the corresponding space voltage vector phase angle. Determined by the following interval criterion function: Define the standardized angle ,but Piecewise functions The expression is: when hour ;when hour ;when hour ;when hour ;when hour ;when hour , This is a modulo operation.
[0051] Specifically, because square wave control relies solely on the zero-crossing comparison signal of the back EMF detection circuit to determine the rotor position, its position resolution is limited by the fact that commutation triggering only occurs every 60 degrees, thus it can only identify six discrete angle intervals. When switching back from sinusoidal wave control to square wave control, the continuous high-resolution position angle output by the observer needs to be divided into one of these six intervals to determine the appropriate power device conduction combination. This division method uses modulo operation to map the electrical angle output by the observer to a standard range of 0 to 360 degrees, and then selects the corresponding space voltage vector phase angle based on the specific numerical interval of this standardized angle. The six intervals are 330 to 30 degrees, 30 to 90 degrees, 90 to 150 degrees, 150 to 210 degrees, 210 to 270 degrees, and 270 to 330 degrees, each interval corresponding to a specific phase angle output value of 90 degrees, 150 degrees, 210 degrees, 270 degrees, 330 degrees, and 30 degrees, respectively. This determination method utilizes the periodicity and piecewise constant characteristics of modulo operations to ensure that the correct conduction combination can be quickly locked at the moment of cutback. During this process, the output angular resolution of the observer is much higher than the 60-degree resolution of the square wave control itself, thus ensuring that the selected energizing mode during cutback is highly matched with the actual rotor position.
[0052] Preferably, the controller is built into the microcontroller unit of the motor controller. The microcontroller unit drives the switching transistors of the power conversion section through pulse width modulation signals. The power conversion section adopts a combination topology of metal-oxide-semiconductor field-effect transistors and anti-parallel diodes, or a combination topology of insulated-gate bipolar transistors and anti-parallel diodes. The phase current signal is obtained through a single-resistor sampling circuit located at the negative terminal of the DC bus. The single-resistor sampling circuit samples the current during the conduction period of the power devices under each energization state controlled by the square wave. The sampled values are combined with the current energization sequence to calculate the three-phase current values. The phase voltage signal is reconstructed based on the modulation wave of the current space vector pulse width modulation and the DC bus voltage value. During reconstruction, a voltage utilization compensation factor is used to correct the dead-zone effect.
[0053] Preferably, step S2 includes the following sub-steps: S21, within each square wave control cycle, determining the distribution relationship of the three-phase currents based on the current energization state, converting the voltage signal on the sampling resistor into a DC bus current value, and calculating the instantaneous value of each phase current in combination with the switching transistor conduction combination; S22, performing Clark transformation on the calculated three-phase currents to transform them to a stationary two-phase coordinate system to obtain... shaft current and Shaft current; S23, based on the modulation waveform of the current space vector pulse width modulation and the DC bus voltage, determine the amplitude of the base voltage vector applied to the motor windings and its spatial phase angle in the current cycle, and decompose the vector to shaft and Axis to obtain shaft voltage and Shaft voltage; S24, to the shaft current, shaft current, shaft voltage and The shaft voltage is fed into the rotor position observer as an input, and the observer performs a recursive update to output the rotor position estimate at the current moment.
[0054] Specifically, in step S21, at the beginning of each square wave control cycle, the microcontroller first determines the current distribution relationship of the three-phase windings based on the currently stored power-on status flag. Then, it triggers the analog-to-digital converter to acquire the voltage signal across the sampling resistor. The sampling time is set at the midpoint of the high-level interval of the pulse width modulation signal, and the sampling hold time is 2µs. The acquired voltage value is divided by the resistance of the sampling resistor to obtain the DC bus current value. Then, combined with the current switching transistor conduction combination, the instantaneous values of the three-phase currents are calculated, where the current value of the non-conducting phase is zero. In step S22, the microcontroller performs a Clark transformation operation on the calculated three-phase current values. This transformation converts the current components in the three-phase stationary coordinate system into current components in the two-phase stationary coordinate system. The coefficients in the transformation matrix are set to two-thirds to ensure that the power remains unchanged before and after the transformation. In step S23, the microcontroller reads the duty cycle setting value of the space vector pulse width modulation module for the current cycle. The duty cycle is stored in per mille format, with a value ranging from 0 to 1000. The duty cycle is multiplied by the real-time sampled DC bus voltage value to obtain the amplitude of the base voltage vector. Simultaneously, the spatial phase angle of the vector is obtained by looking up a table according to the current power-on state. The phase angle is stored in read-only memory in degrees. Then, the vector is decomposed to the horizontal and vertical axes of a two-phase stationary coordinate system. In step S24, the two current components and two voltage components calculated in the above steps are stored sequentially into the observer input buffer, and the observer is triggered to perform a recursive update calculation.
[0055] Preferably, step S3 includes the following sub-steps: S31, obtaining the real-time value of the current motor operating speed by monitoring the electrical angular velocity output by the observer or by detecting the zero-crossing frequency of the back EMF; S32, comparing the real-time value with a first switching threshold stored in a register, wherein the first switching threshold is a pre-calibrated speed value; S33, when it is determined that the real-time value is greater than the first switching threshold, generating a switching trigger flag bit and latching the rotor position estimate value output by the observer at the end of the current control cycle; S34, in response to the switching trigger flag bit, pausing the power-on sequence update in the square wave control and directing the control flow to the transition process entry.
[0056] Specifically, in step S31, the microcontroller reads the current electrical angle and speed values output by the rotor position observer in each interrupt cycle. Simultaneously, it can also obtain the speed by detecting the zero-crossing pulse frequency output by the back EMF detection circuit. The speed values obtained through these two methods are cross-checked, and an alarm flag is triggered when the deviation exceeds 5%. In step S32, the calculated real-time speed value is compared with the first switching threshold stored in the flash memory register. In step S33, when the mechanical speed exceeds the first switching threshold for a certain period, a switching trigger flag is generated and set. Simultaneously, the electrical angle value output by the observer at the end of the current interrupt cycle is latched into an independent register, whose value remains unchanged with observer updates. In step S34, in response to the set state of the switching trigger flag, the microcontroller executes a jump instruction to suspend the power-on sequence update function of the square wave control, disables the interrupt service routine entry point for the six-step commutation, and redirects the program pointer to the entry address of the transition process.
[0057] Preferably, step S4 includes the following sub-steps: S41, reading the position estimate value latched by the observer as the current rotor electrical angle; S42, determining the amplitude and phase angle of the base voltage vector being output in the current square wave control cycle in the stationary two-phase coordinate system; S43, using the current rotor electrical angle as the rotation angle, performing a Park transformation on the base voltage vector to project the base voltage vector onto the direct axis and quadrature axis of the synchronous rotating coordinate system; S44, temporarily storing the projected direct axis component and quadrature axis component in variables as the initial values of the direct axis voltage and quadrature axis voltage of the field-oriented controller when switching to sinusoidal wave control.
[0058] Specifically, in step S41, the microcontroller reads the value of the latched electrical angle from the independent register as the current rotor electrical angle. Immediately after reading, the register contents are copied to the working variables to prevent operation from affecting the latched value. In step S42, the output base voltage vector is determined by querying the conduction status flag bit within the current square wave control cycle. The conduction status flag bit is a 3-bit binary code with a value range of 1 to 6, corresponding to six valid conduction combinations. Based on this code, the amplitude of the corresponding base voltage vector and its phase angle in the stationary two-phase coordinate system are obtained from a lookup table. The amplitude is stored in volts in a 16-bit unsigned integer variable, and the phase angle is stored in degrees in an 8-bit unsigned integer variable. In step S43, using the read current rotor electrical angle as the rotation angle, a coordinate rotation operation is performed on the base voltage vector. The base voltage vector is treated as a complex number in the operation, and the rotation operation is equivalent to complex multiplication. The calculation result yields the horizontal and vertical projection components of the vector in the synchronous rotating coordinate system. In step S44, the horizontal and vertical components obtained from the projection calculation are stored in two independent floating-point variables. These two variables are declared as global variables so that they can be shared and accessed between different function modules of the program, serving as the initial values of the direct-axis voltage and quadrature-axis voltage of the field-oriented controller when switching to sinusoidal control.
[0059] Preferably, step S5 includes the following sub-steps: S51, loading the initial voltage component of the direct axis and the initial voltage component of the quadrature axis into the initial value register of the integral term of the field-oriented controller; S52, starting the voltage vector modulation module of the sine wave control, using the initial voltage value as the output voltage command for the current control cycle, and simultaneously enabling the output of the rotor position observer as the rotation angle for coordinate transformation; S53, starting from the next control cycle, the field-oriented controller adjusts the output voltage vector according to the closed-loop error between the outer speed loop and the inner current loop, and the observer continuously provides real-time rotor position to support synchronous rotation coordinate transformation; S54, monitoring the sine wave operation status flag, confirming the switching is complete, and then entering the steady-state operation stage with sine wave control as the default mode until a stop command is received or the speed drops to the second switching threshold.
[0060] Specifically, in step S51, the microcontroller loads the direct-axis voltage component and quadrature-axis voltage component temporarily stored in step S44 into the initial value registers of the integral terms of the two current regulators of the field-oriented controller. The loading operation is completed through a direct register assignment instruction, which occurs at the end of the same interrupt cycle. In step S52, the voltage vector modulation module of the sine wave control is started, and its enable bit is set to logic high. The initial voltage value loaded in step S51 is used as the output voltage command for the current control cycle, which is directly sent to the duty cycle calculation unit of the space vector pulse width modulation module. At the same time, the output of the rotor position observer is enabled as the rotation angle source for coordinate transformation. The output of the observer is connected to the input of the coordinate transformation unit through an internal data bus. In step S53, starting from the next 50µs interrupt cycle, the field-oriented controller takes full control. The two proportional-integral regulators in the inner current loop calculate the output voltage correction based on the error between the quadrature-axis and direct-axis current commands and the feedback values. The correction is superimposed on the initial voltage value, thereby dynamically adjusting the output voltage vector. The proportional-integral controller's proportional coefficient is set to 0.7, the integral coefficient to 100, and the sampling frequency is [missing value]. In step S54, the microcontroller monitors the sine wave operation status flag. When the flag is set and remains high for three consecutive interrupt cycles, the switching is confirmed to be complete, and then the system enters the steady-state operation phase with sine wave control as the default mode. During steady-state operation, if an external stop command is received or the real-time speed drops below 480 rpm for more than 100 ms, the corresponding stop or revert operation is executed.
[0061] Preferred, such as Figure 3 As shown in (a) and (b), the process of estimating the conduction state and rotor position under square wave control includes:
[0062] When the rotor position is in the range of 30° to 90°, M4 is always on, M2 is on in PWM mode, and M1, M3, M5, and M6 are all off. We use the superscript "+" to indicate that the upper transistor is on and the subscript "-" to indicate that the lower transistor is on. The circuit conduction state at this time can be simply represented as B+A-.
[0063] When M2 is turned on, the current flows from the positive terminal of the power supply through M2, into the B-phase winding, out of the A-phase winding, through M4, and then through the sampling resistor Rs, finally flowing back to the negative terminal of the power supply.
[0064] By sampling the voltage across the sampling resistor and then deducing the current, combined with the energizing method, the current of each phase can be deduced. At this point, i a =-i s i b =i s i c=0, then the α-axis current i can be obtained by performing the Clark transformation. α and β-axis current i β .
[0065] This example only illustrates the case of single-resistor sampling. If it is a dual-resistor or triple-resistor scheme, the phase current can be sampled during freewheeling, and the principle is the same as the single-resistor scheme.
[0066] According to space vector pulse width modulation (SVPWM) technology, the phase voltage vector is located at 150°. Decomposing it into α and β axes, we can obtain V. α and V β ,at this time .
[0067] Once the voltage and current along the αβ axis are known, the rotor position can be estimated using a rotor position observer. There are many types of rotor position observers, such as sliding mode observers, extended back EMF observers, flux linkage observers, etc. The implementation of rotor position observers is not included in the scope of this invention.
[0068] Preferably, Table 1 summarizes the energization status of the motor controller when the rotor is in all positions, as well as the calculated voltage and current of the αβ axis.
[0069] Table 1. Energizing modes and calculation methods for voltage and current along the α and β axes under square wave control.
[0070]
[0071] Preferred, such as Figure 4 The diagram shows the initial voltage value calculation angle when switching from square wave to sine wave control. When the rotor position is 30°, the voltage vector is at 150°. The voltage vector is decomposed onto the dq axis and used as the initial voltage value when switching to sine wave control. In this example, , .
[0072] When the motor speed n is lower than the switching speed n2, the motor will switch from sine wave to square wave operation. Under square wave control, the controller only knows 6 fixed rotor positions, while the position resolution of sine wave control is much higher than that of square wave due to the presence of the observer. Therefore, it is easier to switch from sine wave to square wave operation. It is only necessary to select the appropriate power-on mode according to the rotor position at the switching time.
[0073] A sensorless drive method for permanent magnet synchronous motors eliminates the torque fluctuations and loss of synchronization risks caused by observer non-convergence in traditional schemes. This method ensures that the rotor position observer has converged and can output accurate rotor position at the moment of switching by continuously running a rotor position observer during the square wave control phase. The transition from square wave to sine wave no longer depends on the rotor being in a specific angle range, allowing switching to be completed at any electrical angle position, thus enhancing the adaptability of the control strategy to complex operating conditions. By constructing a transition process, the method rationally maps the voltage vector under square wave control to the direct and quadrature axes in a rotating coordinate system, using this as the initial voltage value for the sine wave controller. This ensures that the field-oriented controller can directly receive the correct voltage command after switching without needing to reconverge. Combined with a dual-threshold switching mechanism with hysteresis characteristics, this effectively avoids frequent back-and-forth switching near the switching point, ensuring the stability and reliability of control mode transitions.
[0074] This invention drives the observer to recursively estimate the rotor position in real time using the acquired phase current and phase voltage during the square wave control phase. This ensures that the observer's state variables have completely converged to the true rotor position when entering sinusoidal wave control, thereby ensuring that the coordinate transformation of the field-oriented control is always based on accurate angles, eliminating the cause of torque ripple, and preventing the system from losing synchronization due to accumulated position errors. Because the observer can output continuous high-resolution rotor position estimates across the entire speed range, the switching process no longer relies on discrete zero-crossing signals provided by the back EMF detection circuit. This allows the controller to immediately execute the switching at any time after the speed condition is met, no longer limited by a specific rotor angle window, thus improving the system's responsiveness and ability to handle sudden load changes.
[0075] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "set," "install," "connect," "link," and "fix" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0076] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various equivalent changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A sensorless driving method for a permanent magnet synchronous motor, characterized in that, Includes the following steps: S1, in response to the start command, applies sensorless square wave control to the motor. In this control mode, the energizing sequence of the power conversion device is determined based on the output of the back EMF detection circuit, and the phase current signal flowing through the stator winding and the phase voltage signal applied to the stator winding are collected simultaneously. S2, based on the collected phase current and phase voltage, drives the rotor position observer built into the controller to run continuously, so as to recursively estimate the real-time electrical angle of the rotor throughout the square wave control process. The observer constructs state variables based on the voltage equation of the motor to output the position estimate. S3, monitor the motor speed in real time and compare the speed with a preset first switching threshold. When the speed is greater than the first switching threshold, terminate the square wave control and enter the transition process. S4, during the transition process, the rotor position estimate output by the observer at the current moment is obtained, and the base voltage vector applied to the stator under the current square wave control mode is mapped to the direct axis and quadrature axis in the synchronous rotating coordinate system based on the estimate, so as to generate the direct axis initial voltage component and the quadrature axis initial voltage component. S5, the direct-axis initial voltage component and the quadrature-axis initial voltage component are used as initial voltage values and assigned to the sensorless sine wave controlled magnetic field orientation controller, and then switched to sine wave operation mode. The controller performs current loop closed-loop adjustment according to the initial voltage value and the rotor position updated in real time by the observer. S6. In sine wave operation mode, continuously monitor the operating speed. When the speed is lower than the preset second switching threshold, perform a switchback from sine wave control to square wave control. The second switching threshold is less than the first switching threshold.
2. The sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, The recursive estimation process of the rotor position observer in S2 includes the following calculations: The electrical angular velocity of the motor is defined as... The stator resistance is The d-axis inductance is The q-axis inductance is The permanent magnet flux is Then the back electromotive force is extended in Components of the axis and Determined by the following formula: ,in For the rotor electrical angle; further construct the switching function of the sliding mode observer. for ,in This is the sliding mode gain coefficient. For stator current observation error, For sign function, current observation error The measured current is obtained from the difference between the measured current and the observed current, which is based on the voltage equation. We obtain, among which The stator current vector, The stator voltage vector, To extend the back electromotive force vector, This is the stator equivalent inductance.
3. The sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, In step S4, when mapping the base voltage vector to the synchronous rotating coordinate system, the rotor position estimate output by the observer is used. Perform the following coordinate transformation: direct-axis initial voltage component with the initial voltage component of the cross axis Voltage components in stationary coordinate system and Obtained through the rotation matrix, i.e. Among them, the voltage component in the stationary coordinate system and The base voltage vector amplitude corresponding to the conduction state of the power device under the current square wave control mode Obtained by decomposition at a fixed angle, specifically as follows: This is the spatial phase angle of the base voltage vector in the stationary two-phase coordinate system, which is uniquely determined by the current energizing sequence.
4. The sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, After receiving the initial voltage value, the field-oriented controller in S5 adjusts the direct-axis command voltage during the current loop process. With cross-axis command voltage The calculation includes the following correction term: the direct-axis current error is defined as... The quadrature axis current error is ,in and These are the direct-axis and quadrature-axis current command values, respectively. and If the measured feedback value is used, the voltage command is composed of the feedforward term and the feedback compensation term, and the expression is: ,in, and These are the direct-axis proportional gain and integral gain, respectively. and These are the cross-axis proportional gain and integral gain, respectively. For electrical angular velocity, For stator resistance, and These are direct-axis and quadrature-axis inductors, respectively. It is a permanent magnet flux linkage.
5. The sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, In step S6, when switching back from sinusoidal wave control to square wave control, the rotor position estimate output by the observer at the instant of the switchback is used. Determine the target power-on mode and the corresponding space voltage vector phase angle. Determined by the following interval criterion function: Define the standardized angle ,but Piecewise functions The expression is: when hour ;when hour ;when hour ;when hour ;when hour ;when hour , This is a modulo operation.
6. The sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, The controller is built into the microcontroller unit of the motor controller. The microcontroller unit drives the switching transistors of the power conversion section through pulse width modulation signals. The power conversion section adopts a combination topology of metal-oxide-semiconductor field-effect transistors and anti-parallel diodes, or a combination topology of insulated-gate bipolar transistors and anti-parallel diodes. The phase current signal is obtained through a single-resistor sampling circuit located at the negative terminal of the DC bus. The single-resistor sampling circuit samples the current during the conduction period of the power devices under each power-on state controlled by the square wave. The sampled values are combined with the current power-on sequence to calculate the three-phase current values. The phase voltage signal is reconstructed based on the modulation wave of the current space vector pulse width modulation and the DC bus voltage value. During reconstruction, a voltage utilization compensation factor is used to correct the dead-zone effect. The second switching threshold is set to 0.6 times the first switching threshold.
7. The sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, S2 includes: Within each square wave control cycle, the distribution relationship of the three-phase current is determined based on the current power-on state. The voltage signal on the sampling resistor is converted into the DC bus current value, and the instantaneous value of each phase current is calculated by combining the switching transistor conduction combination. The calculated three-phase currents are subjected to Clark transformation to be transformed to a stationary two-phase coordinate system to obtain... shaft current and shaft current; Based on the current space vector pulse width modulation waveform and the DC bus voltage, determine the amplitude of the base voltage vector applied to the motor windings and its spatial phase angle within the current cycle, and decompose this vector into... shaft and Axis to obtain shaft voltage and Shaft voltage; The shaft current, shaft current, shaft voltage and The shaft voltage is fed into the rotor position observer as an input, and the observer performs a recursive update to output the rotor position estimate at the current moment.
8. The sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, S3 includes: The real-time value of the current motor operating speed is obtained by monitoring the electrical angular velocity output by the observer or by detecting the zero-crossing frequency of the back electromotive force; the real-time value is compared with a first switching threshold stored in a register, the first switching threshold being a pre-calibrated speed value; when it is determined that the real-time value is greater than the first switching threshold, a switching trigger flag is generated, and the rotor position estimate output by the observer at the end of the current control cycle is latched. In response to the switching trigger flag, the power-on sequence update in the square wave control is paused, and the control flow is directed to the transition process entry.
9. A sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, S4 includes: Read the position estimate latched by the observer as the current rotor electrical angle; determine the amplitude and phase angle of the base voltage vector being output in the current square wave control cycle in the stationary two-phase coordinate system; Using the current rotor electrical angle as the rotation angle, perform a Park transformation on the base voltage vector to project the base voltage vector onto the direct axis and quadrature axis of the synchronous rotating coordinate system; temporarily store the projected direct axis component and quadrature axis component in variables as the initial values of the direct axis voltage and quadrature axis voltage of the field orientation controller when switching to sinusoidal wave control.
10. A sensorless driving method for a permanent magnet synchronous motor according to claim 1, characterized in that, S5 includes: The direct-axis initial voltage component and the quadrature-axis initial voltage component are loaded into the integral term initial value register of the field-oriented controller; the voltage vector modulation module of the sine wave control is started, and the initial voltage value is used as the output voltage command for the current control cycle. At the same time, the output of the rotor position observer is enabled as the rotation angle for coordinate transformation; from the next control cycle, the field-oriented controller adjusts the output voltage vector according to the closed-loop error between the speed outer loop and the current inner loop. The observer continuously provides real-time rotor position to support synchronous rotation coordinate transformation. Monitor the sine wave operation status flag to confirm the switching is complete, and then enter the steady-state operation phase with sine wave control as the default mode until a stop command is received or the speed drops to the second switching threshold.
