A method, system and device for suppressing motor current harmonics

By connecting a proportional-integral (PI) controller and a quasi-proportional-resonant (PCR) controller in parallel in the current loop control circuit, the amplitude of the ripple component of the current error signal is detected in real time, and the start and stop of the PCR controller are adaptively controlled. This solves the instability problem of suppressing the ripple of the motor current at twice the grid frequency bus in the prior art, and realizes the stability of the current loop and the improvement of the current waveform.

CN123122373APending Publication Date: 2026-11-17ZHONGSHAN BROAD OCEAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611450039.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing normally open quasi-proportional resonant controllers operate continuously under light load or good grid quality, causing unnecessary disturbances and lacking an adaptive decision-making mechanism, thus failing to effectively suppress the ripple of the motor current at twice the grid frequency bus.

Method used

By connecting a proportional-integral controller and a quasi-proportional resonant controller in parallel in the current loop control circuit, the amplitude of the target frequency ripple component in the current error signal is extracted in real time. The quasi-proportional resonant controller is adaptively controlled to be engaged and disengaged according to a preset threshold, and is only activated when the ripple exceeds the limit, providing an adaptive decision-making mechanism.

Benefits of technology

Intelligent control of the quasi-proportional resonant controller is achieved under light load or good grid quality, avoiding unnecessary disturbances, ensuring the stability and reliability of the current loop, and effectively suppressing the ripple of the motor current at twice the grid frequency bus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123122373A_ABST
    Figure CN123122373A_ABST
Patent Text Reader

Abstract

This invention relates to the field of motor drive and control technology, and discloses a method, system, and device for suppressing motor current harmonics. The method includes: acquiring the current error signal of the current loop control circuit; extracting the amplitude of the target frequency ripple component based on the current error signal; comparing the amplitude with a preset threshold, and controlling the activation and deactivation of a quasi-proportional resonant controller based on the comparison result; and, based on the activation and deactivation of the quasi-proportional resonant controller, superimposing the output of a proportional-integral controller and the output of the quasi-proportional resonant controller as a control quantity, or using the output of the proportional-integral controller as a control quantity. This invention solves the problem that continuous operation of existing normally open quasi-proportional resonant controllers introduces unnecessary disturbances under light loads or with good grid quality, and provides an adaptive decision-making mechanism for activation and deactivation based on the actual degree of current distortion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of motor drive and control technology, specifically to a method, system, and device for suppressing motor current harmonics. Background Technology

[0002] In existing permanent magnet synchronous motor drive systems, the bus ripple at twice the grid frequency generated by single-phase rectified power supply can cause phase current distortion. Existing solutions to this problem include increasing the DC bus capacitance, using a repetitive controller, bus voltage feedforward compensation, and employing a quasi-proportional resonant controller for continuous operation. However, continuously operating a normally open quasi-proportional resonant controller, even under light load or good grid quality conditions, can introduce unnecessary disturbances due to minor output fluctuations, and lacks an adaptive decision-making mechanism for activation and deactivation based on the actual degree of current distortion. Summary of the Invention

[0003] This invention provides a method, system, and device for suppressing motor current harmonics, in order to solve the problems of existing normally open quasi-proportional resonant controllers that remain active even under light load or good power grid quality, whose output fluctuations introduce unnecessary disturbances, and which lack an adaptive decision-making mechanism for input and output based on the actual degree of current distortion.

[0004] In a first aspect, the present invention provides a method for suppressing harmonics in motor current, applied to a current loop control circuit. The current loop control circuit includes a proportional-integral controller and a quasi-proportional-resonant controller connected in parallel. The method includes: Obtain the current error signal of the current loop control circuit; The amplitude of the target frequency ripple component is extracted based on the current error signal; The amplitude is compared with a preset threshold, and the quasi-proportional resonant controller is activated or deactivated based on the comparison result. Depending on whether the quasi-proportional resonant controller is engaged or disengaged, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller can be superimposed as the control quantity, or the output of the proportional-integral controller can be used as the control quantity.

[0005] This invention provides a method for suppressing motor current harmonics. It quantifies the actual current distortion by extracting the amplitude of the target frequency ripple component in the current error signal in real time, and adaptively controls the activation and deactivation of the quasi-proportional resonant controller based on the comparison result of the amplitude and the preset threshold. The quasi-proportional resonant controller is only activated when the ripple exceeds the standard and deactivated when it is within the acceptable range. This solves the problem that the continuous operation of the existing normally open quasi-proportional resonant controller introduces unnecessary disturbances under light load or good power grid quality. At the same time, it provides a judgment mechanism for adaptively deciding on activation and deactivation based on the actual current distortion.

[0006] In one optional implementation, acquiring the current error signal of the current loop control circuit includes: Collect the phase current of the motor; Transform the phase current to a rotating coordinate system to obtain the d-axis current feedback value and the q-axis current feedback value; The difference between the d-axis current reference value and the d-axis current feedback value is used as the d-axis current error signal, and the difference between the q-axis current reference value and the q-axis current feedback value is used as the q-axis current error signal. The d-axis current error signal or the q-axis current error signal is used as the current error signal.

[0007] In the above technical solution, the collected motor phase current is transformed into a rotating coordinate system to obtain the d-axis and q-axis current feedback values, and the d-axis and q-axis current error signals are obtained by comparing them with the corresponding reference values. Then, the current error signal of any one axis is used as the basis for subsequent ripple extraction. This fully utilizes the independent error information of the d-axis and q-axis in vector control. The axis with better signal quality can be flexibly selected for ripple detection according to the actual working conditions. No additional sampling circuits or sensors are required. The implementation method is simple and highly adaptable.

[0008] In one optional implementation, extracting the amplitude of the target frequency ripple component based on the current error signal includes: Extract the target frequency ripple component from the current error signal; The peak-to-peak value of the target frequency ripple component is detected within a preset time window, and the peak-to-peak value is used as the amplitude; the target frequency is twice the grid frequency.

[0009] In the above technical solution, by directly extracting the ripple component of twice the grid frequency from the current error signal and detecting its peak-to-peak value as the amplitude within a preset time window, the accurate quantification of the amplitude of the ripple at a specific frequency is achieved. The peak-to-peak value directly reflects the degree of current distortion, providing a reliable basis for subsequent adaptive control. Moreover, this extraction process does not require any additional hardware detection steps and relies entirely on the signal of the current loop itself, achieving simplicity and efficiency.

[0010] In one optional implementation, the amplitude is compared with a preset threshold, and the engagement and disengagement of the quasi-proportional resonant controller are controlled based on the comparison result, including: When the amplitude is greater than the activation threshold, the quasi-proportional resonant controller is activated. When the amplitude is less than the shut-off threshold, the quasi-proportional resonant controller is deactivated; when the turn-on threshold is greater than the shut-off threshold.

[0011] In the above technical solution, by setting an on threshold and a off threshold, and configuring the on threshold to be greater than the off threshold, the quasi-proportional resonant controller is automatically engaged when the amplitude exceeds the limit and automatically disengaged when the amplitude falls back to an acceptable range. This achieves intelligent control with on-demand suppression, and by forming a hysteresis comparison characteristic through dual thresholds, it avoids system oscillations caused by frequent engagement and disengagement of the quasi-proportional resonant controller due to fluctuations in ripple amplitude near the critical point, thus ensuring the stability and reliability of the switching action.

[0012] In one alternative implementation, the proportional gain of the quasi-proportional resonant controller is set to zero.

[0013] In the above technical solution, by setting the proportional gain of the quasi-proportional resonant controller to zero, the proportional component in the branch of the quasi-proportional resonant controller is eliminated, so that the output of the quasi-proportional resonant controller only contains the resonant component. Therefore, when the quasi-proportional resonant controller is put into or taken out, its output will not produce instantaneous jumps caused by sudden changes in the proportional component, thus avoiding the impactful changes in the current loop control quantity.

[0014] In one optional implementation, depending on whether the quasi-proportional resonant controller is engaged or disengaged, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed to obtain the control quantity, or the output of the proportional-integral controller is used as the control quantity, including: When the quasi-proportional resonant controller is engaged, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed and used as the control quantity. When the quasi-proportional resonant controller is deactivated, the output of the proportional-integral controller is used as the control input.

[0015] In the above technical solution, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed as the control quantity when the quasi-proportional resonant controller is engaged, and the output of the proportional-integral controller is used as the control quantity when the quasi-proportional resonant controller is disengaged. This achieves the corresponding switching of the control quantity between the engaged and disengaged states of the quasi-proportional resonant controller, ensuring that the output of the quasi-proportional resonant controller only acts on the current loop when participating in regulation, and avoiding unnecessary disturbance to the current loop caused by the continuous existence of the output of the quasi-proportional resonant controller in the disengaged state.

[0016] In one alternative implementation, the method further includes: When the quasi-proportional resonant controller switches from the off state to the on state, the historical state variables of the quasi-proportional resonant controller are initialized to the steady-state output value corresponding to the current current error signal.

[0017] In the above technical solution, by directly initializing the historical state variables to the steady-state output value corresponding to the current current error signal when the quasi-proportional resonant controller switches from off to on, it avoids the transition process of gradually approaching the steady state from zero or old value at the moment of on-state switching. This avoids output jumps or oscillations caused by the mismatch between historical state variables and current operating conditions, and achieves a smooth switch-in at the moment of on-state switching of the quasi-proportional resonant controller, ensuring the stable operation of the current loop control circuit.

[0018] In one alternative implementation, the method further includes: When the quasi-proportional resonant controller switches from the active state to the deactivated state, the output value of the quasi-proportional resonant controller is reduced to zero using a linear decay method.

[0019] In the above technical solution, when the quasi-proportional resonant controller switches from being engaged to being disengaged, its output value is gradually reduced to zero in a linear decay manner. This makes the disengagement process of the quasi-proportional resonant controller smooth and controllable, avoiding the jump in control quantity caused by the direct abrupt reset of the output value to zero. This achieves a smooth transition of the current loop control quantity during the disengagement process of the quasi-proportional resonant controller, ensuring the stability of the current loop adjustment at the moment of disengagement.

[0020] Secondly, the present invention provides a motor current harmonic suppression system, the system comprising: A current sensor is used to collect the phase current of the motor and output the phase current signal; The controller is equipped with a current loop control circuit, which includes a proportional-integral controller and a quasi-proportional-resonant controller connected in parallel; the controller is used to execute the motor current harmonic suppression method of the first aspect or any corresponding embodiment described above.

[0021] Thirdly, the present invention provides a motor current harmonic suppression device applied to a current loop control circuit, the current loop control circuit including a proportional-integral controller and a quasi-proportional-resonant controller connected in parallel, the device comprising: The signal acquisition module is used to acquire the current error signal of the current loop control circuit; The ripple extraction module is used to extract the amplitude of the target frequency ripple component based on the current error signal. The switch control module is used to compare the amplitude with a preset threshold and control the activation and deactivation of the quasi-proportional resonant controller based on the comparison result. The output selection module is used to, depending on whether the quasi-proportional resonant controller is engaged or disengaged, superimpose the output of the proportional-integral controller and the output of the quasi-proportional resonant controller as the control quantity, or use the output of the proportional-integral controller as the control quantity.

[0022] Fourthly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the motor current harmonic suppression method of the first aspect or any corresponding embodiment described above.

[0023] Fifthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the motor current harmonic suppression method of the first aspect or any corresponding embodiment described above.

[0024] In a sixth aspect, the present invention provides a computer program product, including computer instructions for causing a computer to execute the motor current harmonic suppression method of the first aspect or any corresponding embodiment described above. Attached Figure Description

[0025] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0026] Figure 1 This is a schematic diagram of a motor current harmonic suppression system according to an embodiment of the present invention; Figure 2 This is a block diagram illustrating the working principle of a motor current harmonic suppression method according to an embodiment of the present invention; Figure 3 This is a schematic flowchart of a first method for suppressing motor current harmonics according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the second process of the motor current harmonic suppression method according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the third process of the motor current harmonic suppression method according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the phase current waveform of a 150V / 500W quasi-proportional-resonant controller (QPR). Figure 7 This is a schematic diagram of the 150V / 500W QPR phase current waveform enabled according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the phase current waveform without QPR in a 120V / 500W circuit. Figure 9 This is a schematic diagram of the 120V / 500W QPR phase current waveform according to an embodiment of the present invention; Figure 10 This is a structural block diagram of a motor current harmonic suppression device according to an embodiment of the present invention; Figure 11 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0029] As an optional application scenario of this invention, such as Figure 1 As shown, the present invention provides a motor current harmonic suppression system, the system comprising: The current sensor 110 is used to collect the phase current of the motor and output the phase current signal; The controller 120 is equipped with a current loop control circuit, which includes a proportional-integral controller 1201 (PI controller) and a quasi-proportional resonant controller 1202 (QPR controller) connected in parallel. The controller is used to implement a motor current harmonic suppression method.

[0030] Among them, the motor can be a permanent magnet synchronous motor (PMSM) powered by single-phase AC.

[0031] The current loop control circuit, or simply current loop, is the innermost closed-loop control structure in a motor vector control system. It consists of a controller (proportional-integral controller and quasi-proportional-resonant controller), the controlled object (motor and inverter), and the feedback path (current sensor, coordinate transformation).

[0032] The proportional-integral (PI) controller is responsible for the basic regulation over a wide bandwidth. It has high gain for DC and low-frequency components, enabling zero steady-state error tracking of the d-axis and q-axis currents, ensuring the motor's basic output response and disturbance rejection capability under steady-state and dynamic conditions. However, its gain is limited at specific frequencies (such as 100Hz), and it cannot effectively suppress periodic ripple disturbances at that frequency.

[0033] The quasi-proportional resonant controller is responsible for narrow-band compensation. Its transfer function has high gain at the resonant frequency, and the gain decays rapidly at other frequencies. In this embodiment, the resonant frequency of the QPR controller is set to twice the grid frequency (100Hz), specifically providing high-gain compensation for the ripple component at this frequency, thereby significantly suppressing the impact of bus ripple introduced by single-phase rectified power supply on the current loop and improving phase current waveform distortion.

[0034] The PI controller provides basic regulation capability of the current loop, ensuring stability and dynamic response across the entire frequency band. The QPR controller provides additional compensation at specific frequencies on top of the PI controller; the two are connected in parallel and superimposed to form a complete current loop regulation output. Through the adaptive start-stop control in this embodiment, the QPR controller only operates when ripple exceeds the limit and automatically shuts down when under light load or with good grid quality. This retains the basic regulation performance of the PI controller across the entire frequency band while leveraging the precise suppression advantage of the QPR controller at specific frequencies, and avoids unnecessary disturbances introduced by continuous operation of the QPR controller.

[0035] The motor current harmonic suppression system provided by this invention further includes: Inverter 130, connected to the controller, is used to convert the DC bus voltage into a three-phase AC voltage to drive the motor.

[0036] The working principle of the motor current harmonic suppression system provided by this invention is as follows: Figure 2 As shown, specifically: This system is based on a field-oriented control architecture. First, current sensors collect the three-phase current of the permanent magnet synchronous motor. Then, a Clark transformation (α-β transformation, the first step in coordinate transformation in field-oriented control (FOC)) converts the current in the three-phase stationary coordinate system to the current in the two-phase stationary coordinate system. Next, based on the rotor position angle estimated by the speed and position observer, a Park transformation (dq transformation, the second step in coordinate transformation in FOC) is performed to obtain the d-axis and q-axis current feedback values ​​in the rotating coordinate system. The d-axis current reference value is set to zero to achieve maximum torque-to-current ratio control, while the q-axis current reference value is given by the speed loop output. The differences between these two values ​​and their corresponding current feedback values ​​are used to obtain the d-axis and q-axis current error signals. The current error signal is simultaneously fed into three channels: a proportional-integral (PI) controller, a quasi-proportional resonant (PIR) controller, and a band-pass filter. The PI controller performs wideband, zero-steady-state-error tracking of the d-axis and q-axis currents. The PIR controller provides high gain at the resonant frequency to suppress ripple at specific frequencies. The band-pass filter (BPF), centered at twice the grid frequency, extracts the ripple component of that frequency from the current error signal and detects its peak-to-peak value within a preset time window as the ripple amplitude. This amplitude is compared with preset on and off thresholds, and the comparison result controls the activation and deactivation of the PIR controller. The on threshold is greater than the off threshold to create hysteresis and avoid frequent switching. When the PIR controller is activated, its output is superimposed with the output of the PI controller as the current loop control quantity. When the PIR controller is deactivated, only the output of the PI controller is used as the control quantity. The superimposed control quantity is subjected to amplitude limiting and inverse Park transformation to obtain the voltage component in the two-phase stationary coordinate system. This component is then fed into the SVPWM (Space Vector Pulse Width Modulation) module to generate a PWM (Pulse Width Modulation) signal to drive the inverter, thereby driving the permanent magnet synchronous motor. The speed and position observer estimates the rotor position and speed in real time and feeds them back to the coordinate transformation stage, forming a complete closed-loop vector control. According to an embodiment of the present invention, a method for suppressing motor current harmonics is provided. It should be noted that the steps shown in the flowchart can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0037] This embodiment provides a method for suppressing motor current harmonics, which can be used in the controller of the aforementioned motor current harmonic suppression system. Figure 3 This is a flowchart of a motor current harmonic suppression method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps: Step S301: Obtain the current error signal of the current loop control circuit.

[0038] The current error signal is the difference between the current reference value (target value) and the current feedback value (actual value) in the current loop control circuit, i.e.: Current error = Current reference value - Current feedback value. It serves as the input basis for the current loop's adjustment and control. The controllers (PI and QPR) calculate the required voltage command based on the magnitude and direction of this error signal to drive the motor current to follow the reference value's changes.

[0039] In motor vector control, after Park transformation, the current error signal is decomposed into two independent components: d-axis current error and q-axis current error. The d-axis current error represents the degree to which the actual excitation current component deviates from the target excitation current component; the q-axis current error represents the degree to which the actual torque current component deviates from the target torque current component.

[0040] Specifically, the actual phase current in the three-phase windings of the motor is collected by a current sensor. The current in the three-phase stationary coordinate system is converted into the current in the two-phase stationary coordinate system by Clark transformation. Then, Park transformation is performed according to the rotor position angle to obtain the d-axis current feedback value and q-axis current feedback value in the rotating coordinate system. The d-axis current error signal is obtained by subtracting the d-axis current reference value from the d-axis current feedback value, and the q-axis current error signal is obtained by subtracting the q-axis current reference value from the q-axis current feedback value. The d-axis current error signal or q-axis current error signal is the current error signal of the current loop control circuit.

[0041] Step S302: Extract the amplitude of the target frequency ripple component based on the current error signal.

[0042] The target frequency is the resonant frequency, and the ripple component refers to the periodic pulsation component of a specific frequency in the current error signal. In this embodiment, the specific frequency is twice the grid frequency (a grid frequency of 50Hz corresponds to a resonant frequency of 100Hz), which originates from the 100Hz pulsation contained in the DC bus voltage output by the single-phase rectifier bridge. This pulsation is coupled to the current loop via the inverter, causing a periodic component of the same frequency to be superimposed on the current error signal. It is called "ripple" because this component manifests as a small periodic fluctuation superimposed on the main current signal; the target frequency is the object to be identified and suppressed.

[0043] Amplitude refers to the magnitude of the ripple component at the target frequency. In this embodiment, the peak-to-peak value (the difference between the maximum and minimum values ​​of this component within one power frequency cycle) is used as its quantification indicator. The magnitude of the amplitude directly reflects the severity of current distortion: the larger the amplitude, the more severe the pollution of the phase current by the bus ripple, and the more necessary it is to use a QPR controller for suppression; the smaller the amplitude, the better the current waveform quality, and the QPR controller does not need to intervene. This embodiment achieves adaptive start-stop control of the QPR controller by detecting this amplitude in real time and comparing it with a preset threshold.

[0044] Specifically, the current error signal is first sent to a bandpass filter with a center frequency of twice the power grid frequency to filter out the DC component and irrelevant frequency components, and extract the pure ripple component of that frequency. Then, the difference between the maximum and minimum values ​​of this component is detected within a time window of one power frequency cycle, which is the peak-to-peak value. This peak-to-peak value is used as the amplitude characterizing the degree of current distortion.

[0045] Step S303: Compare the amplitude with a preset threshold, and control the activation and deactivation of the quasi-proportional resonant controller based on the comparison result.

[0046] Among them, the preset threshold is a pre-set standard value used to determine whether the ripple amplitude exceeds the standard, including two limit values: the on threshold and the off threshold.

[0047] Activation threshold: When the detected ripple amplitude is greater than this value, it indicates that the current distortion has exceeded the acceptable range. Based on this, the control system controls the quasi-proportional resonant controller to start operation and begin harmonic suppression.

[0048] Shutdown threshold: When the detected ripple amplitude is less than this value, it indicates that the current distortion is within an acceptable range and no compensation is needed. Based on this, the control system controls the quasi-proportional resonant controller to exit operation.

[0049] Specifically, the detected ripple amplitude is compared with preset on and off thresholds. The on threshold is greater than the off threshold. When the ripple amplitude is greater than the on threshold, the quasi-proportional resonant controller is put into operation. When the ripple amplitude is less than the off threshold, the quasi-proportional resonant controller is taken out of operation. The hysteresis comparison characteristic is formed by the dual thresholds to avoid the quasi-proportional resonant controller from switching frequently when the ripple amplitude fluctuates near the critical point.

[0050] Step S304: Based on the engagement and disengagement of the quasi-proportional resonant controller, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed as the control quantity, or the output of the proportional-integral controller is used as the control quantity.

[0051] Among them, the control quantity is the voltage command finally output by the current loop control circuit, that is, the d-axis voltage command. ud and q-axis voltage command uq In motor control, this control quantity serves as the input to the SVPWM module, used to generate the PWM signal that drives the inverter switch, thereby controlling the motor operation.

[0052] The output of a proportional-integral controller refers to the voltage command value obtained by the proportional-integral controller after performing proportional and integral operations on the current error signal, i.e., the basic regulation component, which is used to ensure that the current loop tracks the DC component and the low-frequency component without steady-state error.

[0053] The output of a quasi-proportional resonant controller refers to the additional voltage compensation value obtained after the quasi-proportional resonant controller performs resonance calculation on the current error signal at the resonant frequency. This is the harmonic compensation component, which is used to suppress ripple at a specific frequency.

[0054] Specifically, when the quasi-proportional resonant controller is engaged, the output of the proportional-integral controller is added to the output of the quasi-proportional resonant controller to serve as the control output for the current loop control circuit. When the quasi-proportional resonant controller is disengaged, its output is set to zero, and only the output of the proportional-integral controller is used as the control output for the current loop control circuit. In other words, both states are based on the output of the proportional-integral controller; the difference lies in whether the output of the quasi-proportional resonant controller is superimposed.

[0055] This embodiment provides a method for suppressing motor current harmonics. It quantifies the actual current distortion by extracting the amplitude of the target frequency ripple component in the current error signal in real time. Based on the comparison between the amplitude and a preset threshold, it adaptively controls the activation and deactivation of the quasi-proportional resonant controller. The quasi-proportional resonant controller is activated only when the ripple exceeds the standard and deactivated when it is within an acceptable range. This solves the problem that the continuous operation of the existing normally open quasi-proportional resonant controller introduces unnecessary disturbances under light load or good grid quality. At the same time, it provides a judgment mechanism for adaptively deciding on activation and deactivation based on the actual current distortion.

[0056] This embodiment provides a method for suppressing motor current harmonics, which can be used in the controller of the aforementioned motor current harmonic suppression system. Figure 4 This is a flowchart of a motor current harmonic suppression method according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps: Step S401: Obtain the current error signal of the current loop control circuit.

[0057] Specifically, step S401 includes: Step S4011: Collect the phase current of the motor.

[0058] The three-phase current of the motor is collected by a current sensor, and after signal conditioning and analog-to-digital conversion, it is sent to the controller as the current feedback value.

[0059] Step S4012: Transform the phase current to a rotating coordinate system to obtain the d-axis current feedback value and the q-axis current feedback value.

[0060] Specifically, such as Figure 2 As shown, the left side of the limiting process is the speed loop, which collects the three-phase current. The current is converted to a two-phase stationary coordinate system using Clark transformation. Then, the current in the two-phase stationary coordinate system, together with the rotor position angle θ estimated by the velocity position observer, is fed into Park transformation to obtain the d-axis current feedback value in the rotating coordinate system. and q-axis current feedback value The Clark transformation converts the three-phase stationary coordinate system (ABC) into a two-phase orthogonal stationary coordinate system (α-β), while the Park transformation rotates the α-β coordinate system to the dq coordinate system synchronized with the rotor, thus converting the originally sinusoidal current into a DC current, which facilitates the subsequent PI controller to achieve zero steady-state error tracking.

[0061] Step S4013: The difference between the d-axis current reference value and the d-axis current feedback value is used as the d-axis current error signal, and the difference between the q-axis current reference value and the q-axis current feedback value is used as the q-axis current error signal.

[0062] Specifically, such as Figure 2 As shown, the d-axis and q-axis current reference values ​​are provided by the speed loop output or user command. The controller subtracts the d-axis current reference value from the d-axis current feedback value to obtain the d-axis current error signal, and subtracts the q-axis current reference value from the q-axis current feedback value to obtain the q-axis current error signal. Both are signed scalar values, with positive and negative values ​​reflecting the error direction and magnitude reflecting the error degree. This current error signal is then simultaneously sent to the proportional-integral controller, the quasi-proportional resonant controller, and the ripple extraction module as a common input for current loop adjustment and ripple detection.

[0063] Step S4014: Use the d-axis current error signal or the q-axis current error signal as the current error signal.

[0064] Specifically, either the d-axis current error signal or the q-axis current error signal is selected as the input signal for the subsequent ripple extraction and amplitude detection stages.

[0065] Step S402: Extract the amplitude of the target frequency ripple component based on the current error signal.

[0066] Specifically, step S402 includes: Step S4021: Extract the target frequency ripple component from the current error signal.

[0067] Specifically, by feeding the current error signal into a bandpass filter with a center frequency twice the grid frequency, the selective nature of the bandpass filter—allowing the signal to pass only near the center frequency and significantly attenuating it at other frequencies—filters out the DC component, low-frequency dynamic components, and high-frequency noise in the current error signal, ensuring that the output signal retains only the ripple component at the target frequency. The center frequency of the bandpass filter is synchronized with the grid frequency, ensuring accurate extraction of the corresponding ripple component at different grid frequencies.

[0068] Step S4022: Detect the peak-to-peak value of the target frequency ripple component within a preset time window, and use the peak-to-peak value as the amplitude; the target frequency is twice the grid frequency.

[0069] The preset time window is a pre-defined time length used to detect the peak-to-peak value of the target frequency ripple component. For example, it can be set to one power frequency cycle (20ms for a power grid frequency of 50Hz). The purpose of setting this window is that the target frequency ripple component is a periodic signal, and its peak-to-peak value will only be fully presented once within a single complete cycle. The true maximum and minimum values ​​cannot be obtained within a time window shorter than one cycle.

[0070] Peak-to-peak value refers to the difference between the maximum and minimum values ​​of a signal waveform within a complete cycle.

[0071] Specifically, a time window of a preset power frequency cycle is used to continuously record the instantaneous values ​​of the filtered target frequency ripple component at each sampling moment within this window. The maximum and minimum values ​​within the window are dynamically updated and stored. Whenever the window slides forward one sampling cycle, the newly sampled instantaneous value is compared with the currently recorded maximum and minimum values ​​and updated accordingly. Simultaneously, the oldest data point in the window is removed to ensure a constant window length. In each control cycle, the difference between the maximum and minimum values ​​within the current window is calculated; this difference is the peak-to-peak value, used as the amplitude characterizing the degree of current distortion, for subsequent comparison with a preset threshold. Because the window slides and updates with each control cycle, the amplitude detection result can reflect the ripple changes under the current operating conditions in real time. Furthermore, firstly, the d-axis or q-axis current error signal... or The signal is fed into a digital bandpass filter with a center frequency twice the mains frequency to filter out DC components, low-frequency dynamic components (such as error steps caused by load changes), and high-frequency noise, extracting only the ripple component at twice the mains frequency. Then, a sliding window peak-to-peak detection method is used on the filtered signal: the maximum value of the filtered signal is recorded within a time window of one mains frequency cycle (20ms for 50Hz). and minimum value Calculate peak-to-peak value As an amplitude, this value reflects the current degree of current distortion in real time.

[0072] Step S403: Compare the amplitude with a preset threshold, and control the activation and deactivation of the quasi-proportional resonant controller based on the comparison result.

[0073] Specifically, step S403 includes: Step S4031: When the amplitude is greater than the activation threshold, the quasi-proportional resonant controller is activated.

[0074] Specifically, the amplitude of the target frequency ripple component was detected. Greater than the preset activation threshold When the current distortion is severe and the QPR controller needs to be activated, the system immediately activates the QPR controller, and the QPR controller output participates in the current loop regulation.

[0075] Step S4032: When the amplitude is less than the shut-off threshold, control the quasi-proportional resonant controller to exit; when the turn-on threshold is greater than the shut-off threshold.

[0076] Specifically, when the amplitude of the target frequency ripple component is detected Less than the preset shut-off threshold When the system is in a state of light load or good grid quality with distortion within acceptable limits, the QPR controller is immediately shut down, and the current loop is controlled independently by the PI controller. To prevent the QPR controller from frequently switching at the threshold critical point and causing system oscillation, the switching module adopts hysteresis comparison characteristics to ensure that the switching action has clear "on" and "off" boundaries.

[0077] It should be noted that the function of controlling the quasi-proportional resonant controller to engage or disengage based on the comparison result is implemented by the switching module. The switching module is a software functional unit in the controller that generates an enable signal to control the engagement or disengagement of the quasi-proportional resonant controller based on the comparison result between the ripple amplitude and a preset threshold. The input of the switching module is the ripple amplitude, and the output is the enable signal. This enable signal acts on the enable terminal of the quasi-proportional resonant controller branch, controlling its engagement and disengagement.

[0078] In one alternative implementation, the proportional gain of the quasi-proportional resonant controller is set to zero.

[0079] In this embodiment, the QPR controller transfer function is: (1); in, The transfer function of the quasi-proportional resonant controller, For the Laplace operator, The resonant angular frequency (i.e., the target frequency) is taken as twice the grid frequency. When the grid frequency is 50Hz... , The cutoff angular frequency, For resonant gain, This is the proportional gain, used to adjust the overall gain characteristics near the resonance peak.

[0080] An ideal quasi-proportional resonant controller has infinite gain at the resonant frequency; a cutoff angular frequency is introduced. Afterwards, the resonant gain at the resonant frequency is a finite value. In exchange for robustness to frequency drift.

[0081] This invention employs a bilinear transform (Tustin method) to discretize the QPR controller: (2); in, To control the cycle, To transform complex variables, representing the discrete domain, The unit delay operator represents a delay of one control cycle.

[0082] The discretized difference equation is: (3); (4); in, This is the QPR controller output (i.e., the resonant output) for the current control cycle, corresponding to the compensation voltage value passed to the current loop. This is the current error signal for the current control cycle. This is the current error signal from the previous control cycle. This is the current error signal for the first two control cycles. For discrete-time index, indicating the first... The sampling time (i.e. the sampling time) (one control cycle) This is the output of the QPR controller from the previous control cycle. This is the output of the QPR controller for the first two control cycles. , , These are all input-side discretization coefficients, which are multiplied by the current error signals of the current cycle, the previous cycle, and the two cycles prior, respectively. , These are all output-side discretization coefficients, multiplied by the outputs of the previous cycle and the two cycles prior, respectively. The discretization coefficients are calculated using the following formula: (5); in, It is an intermediate computational quantity generated during the discretization derivation process and has no independent physical meaning.

[0083] This invention employs an independent QPR controller in both the d-axis and q-axis current loops to suppress the double grid frequency component in the d-axis and q-axis current errors, respectively. The output of the QPR controller is equipped with a limiting element, and an anti-integral saturation mechanism is used to prevent state variable divergence.

[0084] As an important supporting design of this invention, the proportional gain of the QPR controller... The value is fixed at 0. The technical significance of this design is: The proportional component in the QPR controller branch is eliminated, so that the output of the QPR controller is completely controlled by the resonant part when it is put into operation and stopped. This avoids the instantaneous impact of the proportional component on the current loop and provides the necessary conditions for realizing the smooth start-stop switching of the QPR controller.

[0085] It should be noted that the resonant frequency is twice the grid frequency, and the cutoff angular frequency is... Resonant gain Both the output limit and the output amplitude can be adjusted according to the actual situation. The main parameter settings in this embodiment are as follows: The QPR controller includes the following parameters: control cycle Resonant angular frequency, cutoff angular frequency Resonant gain Proportional gain Discretization coefficients , , , , Historical error values , Historical values ​​of resonant section output , And output limiting value.

[0086] During QPR controller initialization, according to the control cycle Resonant angular frequency Cutoff angular frequency Resonant gain Proportional gain The output limit value is calculated, the discretization coefficient is determined, and all historical state variables are initialized to zero.

[0087] During each cycle of operation, the QPR controller first determines the current error signal based on the current control cycle. The QPR controller resonant output for the current control cycle is calculated using historical values. ,because The total output is the output of the resonant section. When the total output exceeds the upper and lower limits, a limiting process is performed, and anti-integral saturation processing is implemented: the product of the proportional gain and the error is subtracted from the limited value to replace the resonant section output. This is to prevent the historical state variables from accumulating and causing divergence. Finally, the historical error values ​​and output historical values ​​are updated to complete the state update.

[0088] Step S404: Based on the engagement and disengagement of the quasi-proportional resonant controller, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed as the control quantity, or the output of the proportional-integral controller is used as the control quantity.

[0089] Specifically, step S404 includes: Step S4041: When the quasi-proportional resonant controller is engaged, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed and used as the control quantity.

[0090] Step S4042: When the quasi-proportional resonant controller exits, the output of the proportional-integral controller is used as the control quantity.

[0091] The control quantity refers to the voltage command (total voltage reference value of the d-axis and q-axis) finally output by the current loop control circuit. This control quantity is then sent to the SVPWM module to generate a PWM signal to drive the inverter.

[0092] When the QPR controller is engaged, the outputs of the PI controller and the QPR controller are superimposed and used as the control input; when the QPR controller is disengaged, the QPR controller output is zero, and only the output of the PI controller is used as the control input.

[0093] like Figure 2 As shown, the execution steps for each control cycle during system operation are as follows: Sample the three-phase current, perform Clark and Park transformations to obtain the dq-axis current feedback value; calculate the current error signal. and The PI controller calculates and obtains the d-axis voltage command. and q-axis voltage command And limit the amplitude; the ripple amplitude detection module calculates the current... And update the QPR controller enable state; if the QPR controller is enabled, the QPR controller calculates... and And limit the amplitude; if in a disabled state, the QPR controller output is set to zero; add the PI controller output and the QPR controller output to obtain the total voltage reference value. and If the synthesized voltage amplitude exceeds the limit, amplitude limiting is performed; finally, the PWM drive signal is output via SVPWM module modulation. During system initialization, the current loop sampling period configuration, PI controller parameter initialization, and QPR controller parameter initialization are completed sequentially, and historical state variables are cleared to zero.

[0094] Step S405: When the quasi-proportional resonant controller switches from the off state to the on state, the historical state variables of the quasi-proportional resonant controller are initialized to the steady-state output value corresponding to the current current error signal.

[0095] Specifically, to prevent current surges caused by output jumps when the QPR controller switches from the off state to the on state, this invention initializes the historical state variables of the QPR controller to the steady-state output value corresponding to the current error value in the first control cycle after the switch is closed, thereby achieving uninterrupted operation of the QPR controller. By eliminating the proportional component in the QPR controller branch, no proportional jump needs to be handled at the moment of input. Combined with the initialization of historical state variables, a truly shock-free and smooth input is achieved.

[0096] Step S406: When the quasi-proportional resonant controller switches from the active state to the deactivated state, the output value of the quasi-proportional resonant controller is reduced to zero using a linear decay method.

[0097] Specifically, when the quasi-proportional resonant controller switches from the active state to the deactivated state, the controller gradually reduces the output value of the quasi-proportional resonant controller according to a preset linear decay law. That is, in each control cycle after deactivation, the output value decreases towards zero at a fixed slope, rather than being directly and abruptly set to zero, until the output value decays to zero and the output of the quasi-proportional resonant controller completely stops participating in the current loop regulation. This makes the output of the quasi-proportional resonant controller decrease slowly during the deactivation process, avoiding the jump in the current loop control quantity caused by the instantaneous disappearance of the output value, and ensuring a smooth transition during the deactivation process.

[0098] This embodiment provides a motor current harmonic suppression method. Addressing the problem of phase current distortion caused by bus ripple at twice the grid frequency generated by single-phase rectification in a single-phase input three-phase PMSM drive system, a QPR controller is connected in parallel with the current loop PI controller. Based on real-time detection of the amplitude of the second harmonic ripple in the current error signal, the method adaptively decides whether to enable or disable the QPR controller, ensuring that the QPR only operates when the ripple exceeds the limit, thus achieving "on-demand suppression".

[0099] This is one or more specific application embodiments of the present invention. Figure 2 , Figures 5 to 9 The present invention provides a more detailed description of a method for suppressing motor current harmonics, such as... Figure 5 As shown, the specific process is as follows: The single-phase input three-phase PMSM drive system employs FOC vector control, with the current loop consisting of a PI controller and a parallel QPR. (Reference) Figure 2The control block diagram shown indicates that the error signals from the current reference value and the feedback value are simultaneously input to the PI controller and the QPR controller. Unlike existing technologies, the QPR branch has an enable switch connected in series, controlled by a "ripple amplitude detection and switching module." This module detects the amplitude of the ripple component at twice the grid frequency in the current error signal in real time. When the amplitude exceeds a preset threshold, the switch closes to enable the QPR; when the amplitude is below a preset threshold, the switch opens, turning off the QPR controller. The PI controller output and the QPR enable output are added together to form the voltage reference value, which is then modulated by SVPWM to generate a PWM drive signal.

[0100] This invention eliminates the need for an additional bus voltage sensor; ripple amplitude detection is entirely based on software algorithms extracted from the current loop error signal. First, the d-axis or q-axis current error signal... , The signal is fed into a digital bandpass filter with a center frequency twice the mains frequency to filter out DC components, low-frequency dynamic components (such as error steps caused by load changes), and high-frequency noise, extracting only the ripple component at twice the mains frequency. Then, a sliding window peak-to-peak detection method is used on the filtered signal: the maximum value of the filtered signal is recorded within a time window of one mains frequency cycle (20ms for 50Hz). and minimum value Calculate peak-to-peak value This value reflects the current current distortion level in real time. When ripple amplitude is detected... Greater than the preset activation threshold When the current distortion is severe (indicating that the QPR controller needs to be activated), the system immediately activates the QPR controller, and the QPR controller output participates in the current loop regulation normally; when the ripple amplitude is detected... Less than the preset shut-off threshold When the system is in a state of light load or good grid quality with distortion within acceptable limits, the QPR controller is immediately shut down, and the current loop is controlled independently by the PI controller. To prevent the QPR controller from frequently switching at the threshold critical point and causing system oscillation, the switching module adopts hysteresis comparison characteristics to ensure that the switching action has clear "on" and "off" boundaries.

[0101] During each cycle of operation, the QPR controller first determines the current error... Calculate the resonant output from historical values ,because The total output is the output of the resonant section. When the total output exceeds the upper and lower limits, a limiting process is performed, and anti-integral saturation processing is implemented: the product of the proportional gain and the error is subtracted from the limited value to replace the resonant section output. This is to prevent the historical state variables from accumulating and causing divergence. Finally, the historical error values ​​and output historical values ​​are updated to complete the state update.

[0102] To prevent current surges caused by output jumps when the QPR controller switches from the off state to the on state, this invention initializes the historical state variables of the QPR controller to the steady-state output corresponding to the current error value in the first control cycle after the switch is closed, thus achieving uninterrupted operation of the QPR controller. By eliminating the proportional component in the QPR controller branch, no proportional jump needs to be handled at the moment of input. Combined with the initialization of historical state variables, a truly shock-free and smooth input is achieved.

[0103] The execution steps for each control cycle during system operation are as follows: Sample the three-phase current, perform Clark and Park transformations to obtain the dq-axis current feedback value; calculate the current error. and The PI controller calculates the result. and And limit the amplitude; the ripple amplitude detection module calculates the current... And update the QPR controller enable state; if the QPR controller is enabled, the QPR controller calculates... and And limit the amplitude; if in a disabled state, the QPR controller output is set to zero; add the PI controller output and the QPR controller output to obtain the total voltage reference value. and If the synthesized voltage amplitude exceeds the limit, amplitude limiting is performed; finally, the PWM drive signal is output via SVPWM module modulation. During system initialization, the current loop sampling period configuration, PI controller parameter initialization, and QPR controller parameter initialization are completed sequentially, and historical state variables are cleared to zero.

[0104] The application examples of the motor current harmonic suppression method of the present invention are as follows: Example 1, using a single-phase input three-phase PMSM controller as an example: Single-phase AC input, grid frequency 50Hz, input voltage 150V, load power 500W; current loop sampling period Ts=1 / 15000s (approximately 66.7μs), synchronized with the control cycle.

[0105] The QPR controller parameters are set as follows: resonant frequency 100Hz, cutoff angular frequency 10rad / s, resonant gain Kr=50, proportional gain Kp=0, and output limit value 20V.

[0106] Experimental results are as follows Figure 6 and Figure 7As shown, under steady-state conditions of 150V / 500W and a grid frequency of 50Hz, the peak-to-peak phase current was 21.63A and the root mean square period was 7.040A when the QPR controller was not enabled. After enabling the QPR controller, the peak-to-peak phase current decreased to 21.00A (an improvement of 2.9%), and the root mean square period decreased to 6.991A (an improvement of 0.7%). The periodic fluctuations on the envelope were reduced, and the waveform distortion was significantly improved.

[0107] Example 2 uses the same hardware platform and controller parameters as Example 1, except that the input voltage is 120V: Experimental results are as follows Figure 8 and Figure 9 As shown, under steady-state conditions of 120V / 500W and a grid frequency of 50Hz, the peak-to-peak phase current was 22.38A and the root mean square period was 7.080A when the QPR controller was not enabled; after enabling the QPR controller, the peak-to-peak phase current decreased to 21.36A (an improvement of 4.6%) and the root mean square period decreased to 6.949A (an improvement of 1.9%).

[0108] Comparing Examples 1 and 2, it can be seen that the lower the input voltage, the smaller the bus voltage margin, the more severe the relative voltage drop and current distortion caused by the 100Hz ripple, and the more significant the suppression effect of the present invention. This indicates that the present invention is particularly suitable for application scenarios with low voltage and high power conditions.

[0109] A method for suppressing motor current harmonics according to an embodiment of the present invention has the following beneficial effects: 1. Adaptive start-stop control of the QPR controller based on real-time detection of current error ripple was implemented: This invention extracts the ripple amplitude of twice the grid frequency from the dq-axis current error signal using a pure software algorithm, and uses it as the "smart switch" signal for the QPR controller. When the ripple exceeds the limit, the QPR is automatically activated; when the ripple is acceptable, it is automatically deactivated. A hysteresis comparator ensures smooth switching, solving the problem that continuous operation of the QPR under light load or no-load conditions, where ripple is already acceptable, may introduce unnecessary minor disturbances, and lacks an intelligent judgment mechanism. This achieves on-demand activation of the QPR controller, automatically activating under heavy load or poor grid conditions, and automatically deactivating under light load or good grid conditions; the hysteresis comparator prevents frequent switching at critical points, ensuring stable system operation.

[0110] 2. Implemented based on QPR controller's bumpless start / stop mechanism: In the adaptive start-stop QPR controller scheme, this invention increases the proportional gain of the QPR controller. The value is fixed at 0, ensuring that the QPR controller branch outputs only the resonant component and no proportional component during operation. When the QPR controller switches from off to on, the historical state variables of the resonant section can be independently initialized to the steady-state value corresponding to the current error, without needing to handle the jump in the proportional component, thus achieving a disturbance-free start-up of the QPR controller. When the QPR controller switches from on to off, a linearly decaying zero-initialization is used instead of an abrupt zero-initialization. If... The QPR controller branch contains a proportional component. At the instant the QPR controller is switched on, this proportional component is directly superimposed on the current loop output, causing a momentary jump and resulting in a current surge. Furthermore, the QPR controller involves historical state variables; if the switch is instantly reset to zero, this can also cause momentary jumps or disturbances in the current loop. The proportional component in the QPR controller branch is eliminated, so that the output of the QPR controller during start-up and shutdown is completely controlled by the resonant part. Combined with the initialization of historical state variables, a smooth transition of the current loop is achieved, ensuring that the QPR controller does not generate additional impacts whether it is put into operation or not.

[0111] 3. Achieved system cost reduction and performance optimization through pure software algorithm upgrades: This invention embeds the aforementioned parallel QPR controller algorithm and anti-saturation logic entirely within the control cycle of existing digital controllers (such as DSPs / MCUs), without requiring any external hardware circuitry (such as large-capacity bus capacitors, active filters, etc.) or the acquisition or extraction of bus voltage ripple components. It utilizes only the current error signal for closed-loop suppression. This solves the problems of related suppression schemes that rely on increasing the capacity of aluminum electrolytic capacitors (large size, short lifespan, high cost, and temperature difference resistance), repetitive controllers (slow dynamic response, difficult parameter tuning), or bus voltage feedforward (requiring a ripple extraction module, complex algorithm, and susceptibility to frequency fluctuations). These schemes all require increased hardware costs or significant modifications to the control algorithm, resulting in high implementation costs. This invention, without adding external hardware or acquiring bus voltage ripple, achieves adaptive on-demand suppression and disturbance-free start-stop of second harmonic current based solely on the current error signal, achieving system cost reduction, performance optimization, and intelligent control. It solves the problems of high hardware cost, large size, short lifespan, slow dynamic response, complex algorithms, insufficient intelligence, and high implementation costs in related technologies.

[0112] Experimental results show that under 120V / 500W and 50Hz grid frequency conditions, the peak-to-peak phase current decreased from 22.38A to 21.36A (an improvement of 4.6%), and the period RMS decreased from 7.080A to 6.949A (an improvement of 1.9%). Under 150V / 500W conditions, the peak-to-peak value decreased from 21.63A to 21.00A (an improvement of 2.9%), and the period RMS decreased from 7.040A to 6.991A (an improvement of 0.7%). The lower the voltage, the smaller the bus voltage margin, and the more severe the relative distortion caused by the second harmonic ripple. The more significant the targeted suppression effect of this invention, the more suitable this invention is for low-voltage, high-power drive scenarios with small bus voltage margins.

[0113] This embodiment also provides a motor current harmonic suppression device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0114] This embodiment provides a motor current harmonic suppression device applied to a current loop control circuit. The current loop control circuit includes a proportional-integral controller and a quasi-proportional resonant controller connected in parallel, such as... Figure 10 As shown, it includes: The signal acquisition module 1001 is used to acquire the current error signal of the current loop control circuit; Ripple extraction module 1002 is used to extract the amplitude of the target frequency ripple component based on the current error signal; The switch control module 1003 is used to compare the amplitude with a preset threshold and control the activation and deactivation of the quasi-proportional resonant controller based on the comparison result. The output selection module 1004 is used to, based on the engagement and disengagement of the quasi-proportional resonant controller, superimpose the output of the proportional-integral controller and the output of the quasi-proportional resonant controller as the control quantity, or use the output of the proportional-integral controller as the control quantity.

[0115] In some optional implementations, the signal acquisition module 1001 includes: The current acquisition unit is used to acquire the phase current of the motor; The coordinate transformation unit is used to transform the phase current to a rotating coordinate system to obtain the d-axis current feedback value and the q-axis current feedback value. The comparison unit is used to take the difference between the d-axis current reference value and the d-axis current feedback value as the d-axis current error signal, and the difference between the q-axis current reference value and the q-axis current feedback value as the q-axis current error signal. The current error signal determination unit is used to determine the d-axis current error signal or the q-axis current error signal as the current error signal.

[0116] In some alternative implementations, the ripple extraction module 1002 includes: The component extraction unit is used to extract the target frequency ripple component from the current error signal; The amplitude calculation unit is used to detect the peak-to-peak value of the target frequency ripple component within a preset time window, and use the peak-to-peak value as the amplitude; the target frequency is twice the grid frequency.

[0117] In one optional implementation, the switch control module 1003 includes: The activation and deactivation control unit is used to activate the quasi-proportional resonant controller when the amplitude is greater than the activation threshold, deactivate the quasi-proportional resonant controller when the amplitude is less than the deactivation threshold, and deactivate the quasi-proportional resonant controller when the activation threshold is greater than the deactivation threshold.

[0118] In one alternative implementation, the proportional gain of the quasi-proportional resonant controller is set to zero.

[0119] In one alternative implementation, the output selection module 1004 includes: The first output unit is used to superimpose the output of the proportional-integral controller and the output of the quasi-proportional resonant controller as the control quantity when the quasi-proportional resonant controller is engaged. The second output unit is used to take the output of the proportional-integral controller as the control quantity when the quasi-proportional resonant controller is disengaged.

[0120] In one alternative embodiment, the device further includes: The first switching operation module is used to initialize the historical state variables of the quasi-proportional resonant controller to the steady-state output value corresponding to the current current error signal when the quasi-proportional resonant controller switches from the exit state to the input state.

[0121] In one alternative embodiment, the device further includes: The second switching operation module is used to reduce the output value of the quasi-proportional resonant controller to zero by linear decay when the quasi-proportional resonant controller switches from the input state to the output state.

[0122] The motor current harmonic suppression device provided in this embodiment of the invention can execute the motor current harmonic suppression method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method. Further functional descriptions of the various modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.

[0123] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0124] The following is a detailed reference. Figure 11 The diagram illustrates a structural schematic suitable for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1102 or a program loaded from memory 1108 into random access memory (RAM) 1103. The RAM 1103 also stores various programs and data required for the operation of the electronic device. The processor 1101, ROM 1102, and RAM 1103 are interconnected via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0125] Typically, the following devices can be connected to I / O interface 1105: input devices 1106 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 1108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1109. Communication device 1109 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 11 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0126] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 1109, or installed from a memory 1108, or installed from a ROM 1102. When the computer program is executed by the processor 1101, it performs the functions defined in the motor current harmonic suppression method of the embodiments of the present invention.

[0127] Figure 11 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.

[0128] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, it implements the motor current harmonic suppression method shown in the above embodiments.

[0129] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0130] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for suppressing harmonics in motor current, characterized in that, The method, applied to a current loop control circuit, wherein the current loop control circuit includes a proportional-integral controller and a quasi-proportional-resonant controller connected in parallel, comprises: Obtain the current error signal of the current loop control circuit; The amplitude of the target frequency ripple component is extracted based on the current error signal; The amplitude is compared with a preset threshold, and the quasi-proportional resonant controller is activated or deactivated based on the comparison result. Depending on whether the quasi-proportional resonant controller is engaged or disengaged, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed to form the control quantity, or the output of the proportional-integral controller is used as the control quantity.

2. The method according to claim 1, characterized in that, The step of acquiring the current error signal of the current loop control circuit includes: Collect the phase current of the motor; The phase current is transformed to a rotating coordinate system to obtain the d-axis current feedback value and the q-axis current feedback value. The difference between the d-axis current reference value and the d-axis current feedback value is used as the d-axis current error signal, and the difference between the q-axis current reference value and the q-axis current feedback value is used as the q-axis current error signal. The d-axis current error signal or the q-axis current error signal is used as the current error signal.

3. The method according to claim 1, characterized in that, The step of extracting the amplitude of the target frequency ripple component based on the current error signal includes: Extract the target frequency ripple component from the current error signal; The peak-to-peak value of the target frequency ripple component is detected within a preset time window, and the peak-to-peak value is used as the amplitude; the target frequency is twice the power grid frequency.

4. The method according to claim 1, characterized in that, The step of comparing the amplitude with a preset threshold and controlling the activation and deactivation of the quasi-proportional resonant controller based on the comparison result includes: When the amplitude is greater than the activation threshold, the quasi-proportional resonant controller is activated. When the amplitude is less than the shutdown threshold, the quasi-proportional resonant controller is controlled to exit; when the activation threshold is greater than the shutdown threshold.

5. The method according to claim 1, characterized in that, The proportional gain of the quasi-proportional resonant controller is set to zero.

6. The method according to claim 1, characterized in that, The step of using the output of the proportional-integral controller and the output of the quasi-proportional resonant controller as a control quantity, based on the engagement and disengagement of the quasi-proportional resonant controller, or using the output of the proportional-integral controller as a control quantity, includes: When the quasi-proportional resonant controller is activated, the output of the proportional-integral controller and the output of the quasi-proportional resonant controller are superimposed to obtain the control quantity; When the quasi-proportional resonant controller exits, the output of the proportional-integral controller is used as the control quantity.

7. The method according to claim 1, characterized in that, The method further includes: When the quasi-proportional resonant controller switches from the off state to the on state, the historical state variables of the quasi-proportional resonant controller are initialized to the steady-state output value corresponding to the current current error signal.

8. The method according to claim 1, characterized in that, The method further includes: When the quasi-proportional resonant controller switches from the active state to the deactivated state, the output value of the quasi-proportional resonant controller is reduced to zero using a linear decay method.

9. A motor current harmonic suppression system, characterized in that, The system includes: A current sensor is used to collect the phase current of the motor and output the phase current signal; A controller is configured with a current loop control circuit, the current loop control circuit including a proportional-integral controller and a quasi-proportional-resonant controller connected in parallel; the controller is used to execute the motor current harmonic suppression method according to any one of claims 1 to 8.

10. A motor current harmonic suppression device, characterized in that, An application in a current loop control circuit, the current loop control circuit including a proportional-integral controller and a quasi-proportional-resonant controller connected in parallel, the device comprising: The signal acquisition module is used to acquire the current error signal of the current loop control circuit; A ripple extraction module is used to extract the amplitude of the target frequency ripple component based on the current error signal; A switch control module is used to compare the amplitude with a preset threshold and control the activation and deactivation of the quasi-proportional resonant controller based on the comparison result. The output selection module is used to, based on the engagement and disengagement of the quasi-proportional resonant controller, superimpose the output of the proportional-integral controller and the output of the quasi-proportional resonant controller as the control quantity, or use the output of the proportional-integral controller as the control quantity.