Motor control method and device based on current reconstruction and motor system
Through the motor control method based on current reconstruction, the problems of single-resistance sampling dead zone and complex current phase shift algorithm in three-phase permanent magnet synchronous motor control are solved, and high-precision and low-cost motor control is achieved, which is suitable for a variety of motors. Sampling situation.
Patent Information
- Application Number
- CN202411149371.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-08-21
AI Technical Summary
In the existing three-phase permanent magnet synchronous motor control method, single-resistance sampling has the problems of phase current sampling dead zone and phase current reconstruction failure in low-speed areas. Moreover, the control algorithm based on current phase shift is complex, relies on multiple motor parameters, and has system errors. and the problem of reduced control accuracy.
Using a motor control method based on current reconstruction, by collecting only one phase current and two phase voltages, reconstructing the other two phase currents, dynamically adjusting the back electromotive force compensation amount, improving the accuracy and reliability of the current estimate, and performing current loop processing in real time and speed loop closed-loop control.
It achieves high precision and low cost of motor control, simplifies the algorithm, reduces the hardware current sampling circuit, is suitable for one-phase current sampling circuit fault conditions, and improves the robustness and application scope of motor control.
Smart Images

Figure CN118659702A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motor technology, and in particular to a motor control method, device and motor system based on current reconstruction. Background Art
[0002] In traditional three-phase permanent magnet synchronous motor control, current sampling includes single resistor sampling, dual resistor sampling and three resistor sampling. Among them, dual resistor sampling is to place the sampling resistor in any two phases at the low end of the phase line of the three-phase inverter bridge. Dual resistor sampling requires sufficient sampling windows to be reserved and the final duty cycle of PWM needs to be limited; three resistor sampling is to place the sampling resistor at the low end of the phase line of the three-phase inverter bridge. Three resistor sampling requires three amplification sampling circuits and requires the use of an MCU with three ADC modules that can be converted simultaneously, which has high hardware costs. Single resistor sampling is to place the sampling resistor on the bus current, and estimate the currents of the other two phases through phase current reconstruction. This method is low-cost but has problems such as phase current sampling dead zone and failure of phase current reconstruction in low-speed areas.
[0003] To solve this problem, Chinese patent application number 2020113804302 discloses a single current sensor control method for a permanent magnet synchronous motor based on current phase shifting. This method estimates the currents of the other two phases based on motor parameters through one phase current and replaces the actual values of the other two phase currents to improve the robustness and reliability of motor control. However, the algorithm has at least the following shortcomings: (1) The algorithm is relatively complex and depends on many motor parameters. The introduction of multiple parameters increases the system error accordingly. (2) This method calculates the reference values of the currents of the other two phases based on the phase and amplitude of one-phase current. The current feedback value is calculated based on the voltage and motor parameters. The current calculation value is not dynamically corrected. When the motor parameters are biased or the actual voltage and current collected are subject to noise interference, problems such as inaccurate calculation and reduced control accuracy may occur.
[0004] The disclosure of the above background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of the present application, nor does it necessarily provide technical guidance. In the absence of clear evidence that the above content has been disclosed before the filing date of the present application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0005] The purpose of the present invention is to provide a motor control method, device and motor system based on current reconstruction. The present invention determines the compensation amount of dynamically adjusting the back electromotive force by reconstructing the current and estimating the current, and has high control accuracy, low cost, easy implementation and wide application range for the permanent magnet synchronous motor.
[0006] To achieve the above object, the technical solution adopted by the present invention is as follows: A motor control method based on current reconstruction comprises the following steps: Get k Phase A current of the permanent magnet synchronous motor at time i a ( k ), A phase voltage V a ( k ), B phase voltage V b ( k ) and the electrical angle of the rotor i ( k ); According to the A phase current i a ( k ) and the rotor electrical angle i ( k ) Reconstruction of phase B current i b_rec ( k ); The A phase current i a ( k ) and B phase current i b_rec ( k ) is converted to a stationary coordinate system α , β Shaft current i α ( k ), i β ( k ) and as feedback current, and the voltage V a ( k ), V b ( k ) is converted to a stationary coordinate system α , β Shaft voltage V α ( k ), V β ( k ) and serves as feedback voltage; according to k Estimated current value at time , , k Estimated current value at time , Obtained from the previous moment, the feedback voltage Vα ( k ), V β ( k ) and the stationary coordinate system α , β Axis back EMF and Sure k +1 time stationary coordinate system α , β Estimated axis current , ;in, k Back EMF at time and Obtained through: according to k Estimated current value at time , and k Feedback current at -1 moment i α ( k -1) i β ( k -1) OK k Back EMF compensation amount at time △ E α ( k ) and △ E β ( k ),in, , , F is the adjustment coefficient; Get k Time-stationary coordinate system α , β Feedback back EMF of the axis E α ( k ), E β ( k ),according to k Feedback back EMF at the moment E α ( k ), E β ( k ) and back EMF compensation △ E α ( k ) and △ E β ( k )Sure k Back EMF at time and .
[0007] Further, any one of the above-mentioned technical solutions or a combination of multiple technical solutions further includes converting the current estimated value , Convert to dynamic coordinate system d Shaft current component i d and q Shaft current component i q , d Shaft current component i d and q Shaft current component i q Configured as the input quantity for the feedback control of the field oriented control current loop.
[0008] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the control of the permanent magnet synchronous motor further includes speed loop feedback control, including: Determined by real-time acquisition of the rotor electrical angle k The electrical angular velocity of the rotor at the moment oh e ( k ); According to the rotor k Electrical angular velocity at time oh e ( k ) and target electrical angular velocity oh ref Determine the speed compensation value △ oh e ( k ),△ oh e ( k )= oh ref -oh e ( k ); Using the rotor speed error △ oh e ( k ) controls and adjusts the current rotor speed control quantity to make the rotor speed the target speed.
[0009] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, k +1 time stationary coordinate system α , β Estimated axis current , Calculated by the following formula: , in, L is the stator inductance of the permanent magnet synchronous motor, R is the stator resistance of the permanent magnet synchronous motor, T is the sampling period.
[0010] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, k Back EMF at time and Calculated by the following formula:
[0011] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, k The coordinate system of the stationary α , β Axis feedback back EMF E α ( k ), E β ( k ) is calculated by the following formula: ; in, is the permanent magnet flux.
[0012] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, k The electrical angular velocity of the rotor of the permanent magnet synchronous motor at the moment oh e ( k ) can be obtained by: oh e ( k )=[ i ( k )- i ( k -1)] / T ω ,in, i ( k -1) k -1 The rotor electrical angle of the permanent magnet synchronous motor at time, T ω Calculate the period for the electrical angular velocity.
[0013] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, according to the A phase current i a ( k ) and the rotor electrical angle i ( k ) Reconstruction of phase B current i b_rec ( k ), including the following steps: according to k Phase A current of permanent magnet synchronous motor at time i a ( k ) and the rotor electrical angle i ( k ) Calculate the amplitude of the three-phase current of the permanent magnet synchronous motor I s ( k ), I s ( k ) is calculated as: , in, I s ( k -1) is the three-phase current amplitude of the previous control cycle; Calculate the phase B current i b_rec ( k ), and its calculation formula is i b_rec ( k )= I s ( k ) cos ( i ( k )-π / 6).
[0014] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, a Clark transformation module is used to transform the A phase current i a ( k ) and B phase current i b_rec ( k ) is converted to a stationary coordinate system α , β Shaft current i α ( k ), current i β ( k ); or, use the following formula to convert the phase A current i a ( k ) and B phase current i b_rec ( k ) is converted to a stationary coordinate systemα , β Shaft current i α ( k ), current i β ( k ): i α ( k )= i a ( k ); .
[0015] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, a Clark conversion module is used to convert the voltage V a ( k ), V b ( k ) is converted to a stationary coordinate system α , β Shaft voltage V α ( k ), V β ( k ); or, convert the voltage V a ( k ), V b ( k ) is converted to a stationary coordinate system α , β Shaft voltage V α ( k ), V β ( k ): V α ( k )= V a ( k ); .
[0016] According to another aspect of the present invention, the present invention provides a motor control device based on current reconstruction, comprising a current detection module, a voltage detection module, an electrical angle detection module, a phase current amplitude calculation module, a current reconstruction module, a Clark transformation module, a current observer, a speed calculation module and a motor control module; The current detection module is configured to detect the first phase current of the permanent magnet synchronous motor in real time and output it to the phase current amplitude calculation module and the Clark transformation module, wherein the first phase is any one of the three phases of the permanent magnet synchronous motor; The voltage detection module is configured to detect the first phase voltage and the second phase voltage of the permanent magnet synchronous motor in real time and output them to the Clark transformation module; The electrical angle detection module is configured to detect the electrical angle of the rotor of the permanent magnet synchronous motor in real time and output it to the current reconstruction module and the speed calculation module; The phase current amplitude calculation module is configured to calculate the amplitudes of the three-phase currents according to the current phase current detection values and output them to the current reconstruction module; The current reconstruction module is configured to reconstruct the second phase current of the permanent magnet synchronous motor according to the current amplitude of the three-phase current and the electrical angle of the rotor and output it to the Clark transformation module; The Clark transformation module is configured to transform the current first phase current and the second phase current into the stationary coordinate system. α Shaft current and β The shaft current is used as the feedback current and the first phase voltage and the second phase voltage are converted into the stationary coordinate system. α Shaft voltage and β The shaft voltage is used as feedback voltage; The speed calculation module is configured to calculate the electrical angular velocity of the rotor at the current moment according to the rotor electrical angle at the current moment and the rotor electrical angle at the previous moment, and output the calculated electrical angular velocity to the current observer; The current observer is configured to α , β The current estimate of the axis, the feedback voltage and the back EMF determine the next moment α , β The estimated current value of the axis, and the α , β The error between the estimated current value of the axis and the feedback current at the current moment determines the back EMF at the next moment; The motor control module is configured to control the permanent magnet synchronous motor according to an α-axis current estimation value and a β-axis current estimation value at a current moment.
[0017] Further, any one of the above-mentioned technical solutions or a combination of multiple technical solutions further includes a Park conversion module, the input end of the Park conversion module is electrically connected to the output end of the current observer, the output end of the Park conversion module is electrically connected to the input end of the motor control module, and the Park conversion module is configured to convert the compensated current at the next moment into the current observer. α The shaft current estimate and βThe shaft current estimate is converted to the dynamic coordinate system d The shaft current components and q The shaft current component is output to the motor control module; The motor control module is configured to receive d The shaft current components and q shaft current component and controls d The axis target current component is zero and the control q The permanent magnet synchronous motor is controlled with the shaft current component as the target value.
[0018] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, the motor control module is also configured to receive the electrical angular velocity of the rotor output by the speed calculation module, and control the electrical angular velocity of the rotor of the permanent magnet synchronous motor according to the target electrical angular velocity of the rotor and the electrical angular velocity of the rotor at the current moment.
[0019] According to another aspect of the present invention, the present invention provides a motor system, including a permanent magnet synchronous motor and a motor control device as described in any one of the above technical solutions or a combination of multiple technical solutions, wherein the motor control device is configured to control the working state of the permanent magnet synchronous motor in real time.
[0020] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, the motor control device is configured to control the working state of the permanent magnet synchronous motor in real time according to the motor control method based on current reconstruction as described in any one of the technical solutions or a combination of multiple technical solutions.
[0021] The beneficial effects brought by the technical solution provided by the present invention are as follows: a. The present invention reduces the hardware current sampling circuit by collecting only one-phase current, reconstructs one of the other two-phase currents through the measured current collected by the normally working one-phase current collection circuit, uses the one-phase measured phase current and the one-phase reconstructed phase current as feedback current, dynamically adjusts the back electromotive force according to the error between the current estimation value and the feedback current, and uses it to calculate the current estimation value at the next moment, thereby improving the accuracy and reliability of the current estimation value, and can accurately perform closed-loop control of the motor current loop. The current estimation value is one control cycle ahead of the collected feedback current, so that the current control response is fast, and the current and estimated current are reconstructed by software, which is low in cost, easy to implement and has a wide range of application scenarios; b. The motor control method based on current reconstruction provided by the present invention is applicable to the case where only one phase current sampling circuit is normal and the other phase current sampling circuits are faulty, and can be used as a fault-tolerant method in motor control based on two-phase current sampling or three-phase current sampling; c. The present invention also includes a closed-loop control of the dynamic current loop of the permanent magnet synchronous motor, and determines the dynamic coordinate system according to the estimated value of the two-phase current at the next moment of the stationary coordinate system. d The shaft current components and q The shaft current component, d The shaft current components and q The shaft current component is used as the feedback current of the current loop to realize the magnetic field oriented control of the permanent magnet synchronous motor, which can further improve the accuracy and reliability of the motor control; d. The present invention determines the rotor speed compensation amount according to the target rotor speed and the current rotor speed and uses it for feedback control of the speed loop, further improving the accuracy and reliability of motor control. The motor control method proposed in the present invention dynamically adjusts the two closed loops of the motor's current loop and speed loop in real time, relies on fewer motor parameters, has a simple algorithm, and a fast response speed, effectively reducing system errors and being able to improve the control accuracy of the motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A module schematic diagram of a permanent magnet synchronous motor control device provided for an exemplary embodiment of the present invention; Figure 2 A signal sampling principle block diagram of a permanent magnet synchronous motor provided by an exemplary embodiment of the present invention; Figure 3 A flowchart of a permanent magnet synchronous motor control method provided for an exemplary embodiment of the present invention; Figure 4 A spatial relationship diagram of a stationary coordinate system and a dynamic coordinate system provided for an exemplary embodiment of the present invention; Figure 5 An exemplary embodiment of the present invention provides a method for controlling the three-phase current vector d The spatial relationship diagram of the stationary coordinate system and the dynamic coordinate system when the axis projection is 0; Figure 6 A block diagram of a current observer according to an exemplary embodiment of the present invention; Figure 7 A diagram showing the relationship between current sampling and rotor angle reading and SVPWM modulated switching waveform provided for an exemplary embodiment of the present invention; Figure 8A phase current is provided for an exemplary embodiment of the present invention. i a And the three-phase current amplitude I s The simulation result interface diagram; Figure 9 An interface diagram of simulation results for comparing a reconstructed B-phase current with an actual B-phase current provided for an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0026] In one embodiment of the present invention, a motor control method based on current reconstruction is provided. Figure 1 to Figure 3 , including the following steps: Real-time acquisition of the permanent magnet synchronous motor's A-phase current, A-phase and B-phase voltages, and rotor electrical angle to obtain k Phase A current of the permanent magnet synchronous motor at time i a ( k ), A phase voltage V a ( k ), B phase voltage V b ( k ), rotor electrical angle i ( k ) and the electrical angular velocity of the rotor oh e ( k); According to the A phase current i a ( k ) and the rotor electrical angle i ( k ) Reconstruction of phase B current i b_rec ( k ); The A phase current i a ( k ) and B phase current i b_rec ( k ) is converted to a stationary coordinate system α , β Shaft current i α ( k ), i β ( k ) and as feedback current, and the voltage V a ( k ), V b ( k ) is converted to a stationary coordinate system α , β Shaft voltage V α ( k ), V β ( k ) and serves as feedback voltage; according to k Estimated current value at time , , feedback voltage V α ( k ), V β ( k ) and the stationary coordinate system α , β Axis back EMF and Sure k +1 time stationary coordinate system α , β Estimated axis current , ; in, k Back EMF at time and Obtained through: according to kEstimated current value at time , and k Feedback current at -1 moment i α ( k -1) i β ( k -1) OK k Back EMF compensation amount at time △ E α ( k ) and △ E β ( k ),in, , , F is the adjustment coefficient; Get k Time-stationary coordinate system α , β Feedback back EMF of the axis E α ( k ), E β ( k ),according to k Feedback back EMF at the moment E α ( k ), E β ( k ) and back EMF compensation △ E α ( k ) and △ E β ( k )Sure k Back EMF at time and .
[0027] The motor control method based on current reconstruction provided by the present invention only needs to collect one-phase current, two-phase voltage and the electrical angle of the motor rotor, reconstruct one of the other two-phase currents according to the one-phase current, use the two-phase current of the stationary coordinate system as the feedback current, use the two-phase voltage of the stationary coordinate system as the feedback voltage, and use the current estimation value, feedback voltage and electrical angular velocity of the motor at the previous moment to determine the current estimation value at the current moment. Different from the prior art that directly estimates the current based on the feedback current and other related parameters, the present application introduces the compensated back electromotive force to more accurately obtain the current estimation value at the next moment. See Figure 6, according to the current estimation value and feedback current at the current moment, the back EMF compensation amount at the next moment is determined, and a corrected back EMF, that is, the compensated back EMF, can be obtained at each moment, thereby realizing dynamic adjustment of the back EMF, thereby ensuring the accuracy and reliability of the current estimation value, and more accurately performing closed-loop control of the motor; and reconstructing the current and estimating the current through software, which is low-cost, easy to implement and has a wide range of application scenarios. In addition, this method can be applied to the situation where only one phase current acquisition circuit is normal and the other phase current sampling circuits are faulty, and can be used as a software fault-tolerant method.
[0028] In order to further improve the control accuracy of permanent magnet synchronous motor, see Figure 1 and Figure 3 , this method performs the following dynamic control operations on the current loop and speed loop of the permanent magnet synchronous motor.
[0029] like Figure 1 As shown, the motor control method based on current reconstruction also includes converting the current estimation value into a dynamic coordinate system d Shaft current component i d and q Shaft current component i q , d Shaft current component i d and q Shaft current component i q It is configured as the input quantity of the feedback control of the field oriented control current loop. Specifically, in the process of controlling the motor, d The axis target current component is zero, q The axis target current component is the output of the speed loop controller. d、q Axis target current and d、q The error of the shaft feedback current passes through the current loop controller to achieve magnetic field oriented control of the permanent magnet synchronous motor.
[0030] The dynamic adjustment of the speed loop of the permanent magnet synchronous motor includes: oh ref and the current rotor speed oh e ( k ) Determine the rotor speed compensation △ oh e ( k ),△ oh e ( k )= oh ref -oh e (k ), the rotor speed compensation is also one of the adjustment quantities of the permanent magnet synchronous motor, and the rotor speed error △ oh e ( k ) controls and adjusts the current rotor speed control quantity to make the rotor speed the target speed.
[0031] The motor control method based on current reconstruction proposed in the present invention takes the A-phase current as a reference, reconstructs the B-phase current, dynamically adjusts the back-EMF compensation value to eliminate the error between the current estimation value and the actual current feedback value, determines the current estimation value at the next moment in advance, and adjusts the closed-loop control of the speed loop according to the current electrical angular velocity of the rotor; the two closed-loops of the motor's current loop and speed loop are dynamically adjusted in real time, rely on fewer motor parameters, have a simple algorithm, and a fast response speed, which effectively reduces the system error and can improve the control accuracy of the motor.
[0032] In one embodiment of the present invention, Figure 2 As shown, the A phase current of the permanent magnet synchronous motor is collected at the current moment. i a ( k ), A phase voltage V a ( k ), B phase voltage V b ( k ), rotor electrical angle i ( k ). The following specifically describes the reconstruction of another phase current based on the measured phase current of one phase and the calculation of the current estimation value in the stationary coordinate system proposed by the present invention.
[0033] For permanent magnet synchronous motor, its stator phase current i a , i b , i c is a three-phase balanced sinusoidal current, and the three-phase current synthesizes the phase current vector , are the magnitudes of the phase currents respectively, and the amplitudes of the three-phase currents are , the three-phase current vectors are 120° electrical angle apart. Therefore, the following formula is satisfied:
[0034] See also Figure 4 and Figure 5 ,in, is the current vector With stationary axis α The angle between is the current vector With dynamic axes d The angle between the axes, i The electrical angle of the motor rotor, i.e. the dynamic coordinate axis d Axis and stationary axis α The angle between the axes.
[0035] When field oriented control is adopted i d =0 control strategy, the current vector In the dynamic coordinate axis d The component on the axis is i d , dynamic coordinate axis q The component on the axis is i q ,in: ; because i d =0, then i q = I s ,and .
[0036] Furthermore, the following formula can be obtained:
[0037] ,when , I s The value from the previous control cycle is adopted.
[0038] Based on the above relationship, the B phase current is reconstructed i b_rec .
[0039] In one embodiment of the present invention, according to the A phase current i a ( k ) and the rotor electrical angle i ( k ) Reconstruction of phase B current i b_rec ( k ), including the following steps: according to k Phase A current of permanent magnet synchronous motor at time i a ( k ) and the rotor electrical angle i ( k ) Calculate the amplitude of the three-phase current of the permanent magnet synchronous motor I s (k ), I s ( k ) is calculated as: , in, I s ( k -1) is the three-phase current amplitude of the previous control cycle; Calculate the phase B current i b_rec ( k ), and its calculation formula is i b_rec ( k )= I s ( k ) cos ( i ( k )-π / 6).
[0040] In this embodiment, the A phase current is calculated by the following formula: i a ( k ) and B phase current i b_rec ( k ) is converted to a stationary coordinate system α , β Shaft current i α ( k ), current i β ( k ), current i α ( k ), current i β ( k )for k Feedback current at the moment: i α ( k )= i a ( k ); .
[0041] The voltage is converted into V a ( k ), V b ( k ) is converted to a stationary coordinate system α , βShaft voltage V α ( k ), V β ( k ),Voltage V α ( k ) and voltage V β ( k )for k Feedback voltage at the moment: V α ( k )= V a ( k ); .
[0042] In this embodiment, the rotor electrical angle of the motor is i Differentiation can be used to obtain the electrical angular velocity of the motor's rotor oh e ,Right now oh e = dth / dt ,in, t For time. Therefore, k The electrical angular velocity of the rotor of the permanent magnet synchronous motor at the moment oh e ( k ) is calculated as: oh e ( k )=[ i ( k )- i ( k -1)] / T ω ,in, i ( k -1) k -1 The rotor electrical angle of the permanent magnet synchronous motor at time, T ω is the electrical angular velocity calculation period, which is usually a multiple of the sampling period. Specifically, the speed calculation period can be 5-10 times the sampling period. oh e ( k ) can also be obtained through other means such as measurement.
[0043] The feedback back EMF in the stationary coordinate system is calculated based on the rotor electrical angle and the rotor electrical angular velocity. Eα , E β , specifically, k The coordinate system of the stationary α , β Feedback back EMF of the axis E α ( k )and E β ( k ) is calculated by the following formula: ; in, is the permanent magnet flux.
[0044] It should be noted that in this application, the feedback back EMF E α , E β It refers to the stationary coordinate system obtained when the back EMF is not compensated. α , β The back electromotive force of the axis can be calculated using the above formula in the present application, or can be obtained through other calculation formulas or a back electromotive force observer.
[0045] In the prior art, other phase currents are directly reconstructed based on one phase current, and the current estimation value is further calculated. The current estimation value may have a large error with the actual feedback current of the motor, which leads to low control accuracy of the motor. In order to more accurately determine the current estimation value and make the current estimation value closer to the actual feedback current, the present application uses the compensated back EMF to calculate the current estimation value. and Calculate the estimated current value at the next moment.
[0046] Specifically, the current estimated value at the current moment in the stationary coordinate system is , ,Voltage V α , V β , back EMF and , stator inductance L And electronic resistance R The stationary coordinate system at the next moment can be estimated α , β Estimated axis current , current estimate Satisfies the following formula: ; therefore, k +1 time stationary coordinate system α ,β Estimated axis current i α ( k +1), i β ( k +1) is calculated by the following formula: , in, L is the stator inductance of the permanent magnet synchronous motor, R is the stator resistance of the permanent magnet synchronous motor, T is the sampling period.
[0047] in, k Back EMF at time and Calculated by the following formula:
[0048] Among them, △ E α ( k ) and △ E β ( k )yes k -1 moment, the calculation formulas are as follows: in, F is the adjustment coefficient.
[0049] It should be noted that the back EMF compensation amount needs to be calculated at each moment, and the back EMF compensation amount at the current moment is used to compensate and correct the back EMF at the next moment, and the back EMF at the next moment is used to calculate the current estimation value at the next moment at the next moment.
[0050] exist k Time calculation k Back EMF compensation amount at +1 time△ E α ( k +1) and △ E β ( k +1),△ E α ( k +1)According to k Determined at the moment k +1 current estimate at time and k Feedback current at the moment i α ( k ) error determination, △ E β (k +1)According to k Determined at the moment k +1 current estimate at time and k Feedback current at the moment i β ( k ) is determined by the error.
[0051] use k Back EMF compensation amount at +1 time△ E α ( k +1) and △ E β ( k +1) Calculation k The back electromotive force and the back electromotive force at the +1 moment are calculated as follows:
[0052] in, E α ( k +1) and E β ( k +1) is k +1 moment according to the motor k +1 is determined by the electrical angular velocity and electrical angle at the moment, k Back EMF at time +1 and Used to determine the current estimate at time k+2.
[0053] By dynamically adjusting the input variable of the back electromotive force as described above, the error between the current estimation value and the feedback current value based on the current of phase A can be eliminated. That is, the current estimation value obtained in the present application is closer to the real feedback current.
[0054] The estimated current and Input the Park conversion module to convert and obtain and output the dynamic coordinate system d Shaft current component i d ( k +1) and q Shaft current component i q ( k +1), as the feedback value for the dynamic adjustment of the motor control current loop. Based on this feedback value, according to the calculation of the field-oriented control and the space vector pulse width modulation (SVPWM), the switching time of the voltage vector is calculated, which is used to load the PWM module output to the three-phase inverter in the next control cycle.
[0055] The present invention estimates the current on a stationary coordinate system, and the current estimation value leads the collected current by one control cycle, so that the current control response is fast; the error between the current estimation value and the actual collected current value is used to dynamically adjust the back electromotive force to ensure the accuracy and reliability of the current estimation value. The method is based on software to reconstruct the current and estimate the current, has low application cost, is easy to implement and has a wide range of application scenarios.
[0056] In one embodiment of the present invention, a motor control device based on current reconstruction is provided, such as Figure 1 As shown, the motor control device includes a current detection module, a voltage detection module, an electrical angle detection module, a phase current amplitude calculation module, a current reconstruction module, a Clark transformation module, a current observer, a Park transformation module, a speed calculation module and a motor control module.
[0057] The current detection module is configured to detect the first phase current of the permanent magnet synchronous motor in real time and output it to the phase current amplitude calculation module and the Clark transformation module, wherein the first phase is any one of the three phases of the permanent magnet synchronous motor. The voltage detection module is configured to detect the first phase voltage and the second phase voltage of the permanent magnet synchronous motor in real time and output them to the Clark transformation module. The electrical angle detection module is configured to detect the electrical angle of the rotor of the permanent magnet synchronous motor in real time and output it to the current reconstruction module and the speed calculation module.
[0058] In a specific embodiment, Figure 2 As shown, the acquisition circuit includes a single-phase current sampling circuit, a two-phase voltage sampling circuit and a motor position sensor installed on the motor controller.
[0059] Optionally, the current sampling circuit adopts a sampling resistor, and the sampling resistor is placed at the low end of the lower bridge arm of any phase of the three-phase inverter. The voltage across the sampling resistor is amplified by the sampling amplifier circuit and input to the ADC sampling port of the single-chip microcomputer MCU. After the motor phase voltage is divided by a resistor, it is input to the ADC sampling port of the single-chip microcomputer MCU. The software reads the current value of one phase by reading the ADC register. Of course, in other embodiments, the two-phase current can also be directly collected, and the two-phase current measured value is directly used in the motor control of the direct collection of the two-phase current, and there is no need to estimate the current of another phase according to the one-phase current. The A and B phase voltages are collected to be input to the ADC sampling port of the single-chip microcomputer after the resistor voltage is divided, and the software reads the A and B phase voltages by reading the ADC register.
[0060] Optionally, the motor position sensor installed on the motor controller uses an angle sensor MPS, and the single-chip microcomputer MCU is connected to the motor position angle sensor MPS through an SPI communication line, and the MCU reads the electrical angle value of the rotor detected by the angle sensor MPS through SPI communication. The acquisition of the rotor position angle can also be performed on the position sensor, and the position sensor can be a magnetic resistance sensor.
[0061] In this embodiment, the closed-loop control principle of the motor is as follows: Figure 1 and Figure 6 As shown, the phase current amplitude calculation module calculates the amplitude of the three-phase current according to the current phase current detection value I s And output to the current reconstruction module. Phase current amplitude of three-phase current I s The calculation method of is as described in the above-mentioned motor control method embodiment based on current reconstruction.
[0062] according to k Phase A current of permanent magnet synchronous motor at time i a ( k ) and the rotor electrical angle i ( k ) Calculate the amplitude of the three-phase current of the permanent magnet synchronous motor I s ( k ), I s ( k ) is calculated as: , in, I s ( k -1) is the three-phase current amplitude of the previous control cycle.
[0063] The current reconstruction module reconstructs the second phase current of the permanent magnet synchronous motor according to the current amplitude of the three-phase current and the electrical angle of the rotor and outputs it to the Clark transformation module; The Clark transformation module converts the current first phase current i a and the second phase current i b_rec Converted to the stationary coordinate system α Shaft current i α and β Shaft current i β and the first phase voltage V a and the second phase voltageV b Converted to the stationary coordinate system α Shaft voltage V α and β Shaft voltage V β And output to the current observer.
[0064] According to the Clark transformation module in the field-oriented control, Clark transformation can be performed by inputting only two-phase currents. i a and the reconstructed phase current i b_rec As the input of the Clark transformation module, we can get α Current on the shaft i α and β Current on the shaft i β .
[0065] In addition, the first phase voltage V a and the second phase voltage V b As the input of the Clark transformation module, we can get α Voltage on the shaft V α and β Voltage on the shaft V β .
[0066] The speed calculation module is configured to calculate the electrical angular velocity of the rotor at the current moment based on the rotor electrical angle at the current moment and the rotor electrical angle at the previous moment and output it to the current observer. The calculation method is specifically as described in the above-mentioned motor control method embodiment based on current reconstruction and will not be repeated here.
[0067] The current observer is configured to α , β Estimated shaft current, α Shaft voltage, β The shaft voltage and back EMF determine the next moment α , β The estimated current value of the axis, and the α , β The back EMF at the next moment is determined by the error between the current estimation value of the axis and the feedback current at the current moment; wherein the back EMF at the current moment is determined according to the feedback back EMF at the current moment and the back EMF compensation amount obtained at the previous moment, that is, Figure 6As shown, the current observer outputs the current estimation value and the back-EMF compensation amount of the next moment at each moment. The back-EMF compensation amount of the next moment is used to compensate for the feedback back-EMF of the next moment, and the compensated back-EMF of the next moment is used to calculate the current estimation value of the next moment.
[0068] The Park transformation module converts the next moment α The shaft current estimate and β The shaft current estimate is converted to the dynamic coordinate system d The shaft current components and q axis current component and output it to the motor control module; the motor control module is configured to d The shaft current components and q Shaft current components and targets d The shaft current component is zero to compensate for the dynamic current of the permanent magnet synchronous motor, so as to realize closed-loop control of the dynamic current loop of the motor.
[0069] like Figure 1 As shown, the motor control module includes a speed loop controller, a current loop controller, a PARK inverter, a SVWMP module and an inverter circuit which are electrically connected in sequence. The motor control module is configured as d The axis target current component is zero, q The axis target current component is the output of the speed loop controller. d The shaft current components and q The shaft current component is used as the feedback current of the current loop. d、q Axis target current and d、q The error of the shaft feedback current passes through the current loop controller to achieve magnetic field oriented control of the permanent magnet synchronous motor.
[0070] In addition, the motor control module is also configured to receive the electrical angular velocity of the rotor output by the speed calculation module, and control the electrical angular velocity of the rotor of the permanent magnet synchronous motor according to the target electrical angular velocity of the rotor and the electrical angular velocity of the rotor at the current moment, so as to realize closed-loop control of the speed loop of the motor.
[0071] The present invention can effectively improve the reliability and accuracy of motor control by closed-loop controlling both the current loop and the speed loop of the motor.
[0072] In one embodiment of the present invention, the control effect of the motor control method and device based on current reconstruction provided by the present invention on the permanent magnet synchronous motor is verified through simulation. Figure 7 to Figure 9 ,in Figure 7This is a relationship diagram between current sampling and rotor angle reading and SVPWM modulated switching waveform in this embodiment; current sampling and motor rotor angle reading are synchronized, and the phase current is collected and the motor rotor position angle is read at the middle position when the lower bridge arm of phase A is opened. Figure 8 The first phase current is A phase current i a and phase current amplitude I s Simulink simulation result diagram and simulation result interface diagram. Figure 9 is the reconstructed value of phase B current of the current observer i b_rec Simulation result interface diagram comparing with the actual current of phase B, reconstructed phase current i b_rec Compared with the actual current of phase B in the motor, the amplitude and phase are basically consistent, which is in line with expectations. It can be seen that the motor control method and device based on current reconstruction provided by the present invention have an ideal control effect on the permanent magnet synchronous motor.
[0073] In one embodiment of the present invention, a motor system is provided, comprising a permanent magnet synchronous motor and a motor control device as described in any one of the above embodiments, wherein the motor control device is configured to control the operating state of the permanent magnet synchronous motor in real time. The motor control device is configured to control the operating state of the permanent magnet synchronous motor in real time according to the method described in any one of the above motor control method embodiments based on current reconstruction.
[0074] It should be noted that the above-mentioned motor system, motor control device embodiment based on current reconstruction and motor control method embodiment based on current reconstruction belong to the same inventive concept, and the entire content of the motor control method embodiment based on current reconstruction is incorporated into the motor system and motor control device embodiment based on current reconstruction by reference.
[0075] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0076] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A motor control method based on current reconstruction, characterized in that: The following steps are involved: Get k Phase A current of permanent magnet synchronous motor at time i a ( k ), A phase voltage V a ( k ), B phase voltage V b ( k ) and the electrical angle of the rotor θ ( k ); According to the A phase current i a ( k ) and the rotor electrical angle θ ( k ) Reconstruction of phase B current i b_rec ( k ); The A phase current i a ( k ) and B phase current i b_rec ( k ) is converted to a stationary coordinate system α , β Shaft current i α ( k ), i β ( k ) and as feedback current, and the voltage V a ( k ), V b ( k ) is converted to a stationary coordinate system α , β Shaft voltage V α ( k ), V β ( k ) and used as feedback voltage; according to k Estimated current value at time , , feedback voltage V α ( k ), V β ( k ) and the stationary coordinate system α , β Axis back EMF and Sure k +1 time stationary coordinate system α , β Estimated axis current , ;in, k Back EMF at time and Obtained through: according to k Estimated current value at time , and k Feedback current at -1 moment i α ( k -1) i β ( k -1) OK k Back EMF compensation at time and ,in, , , F is the adjustment coefficient; Get k Time-stationary coordinate system α , β Feedback back EMF of the axis E α ( k ), E β ( k ),according to k Feedback back EMF at the moment E α ( k ), E β ( k ) and back EMF compensation and Sure k Back EMF at time and .
2. The motor control method based on current reconstruction according to claim 1, characterized in that: It also includes the current estimate , Convert to dynamic coordinate system d Shaft current component i d and q Shaft current component i q , d Shaft current component i d and q Shaft current component i q Configured as the input quantity for the feedback control of the field oriented control current loop.
3. The motor control method based on current reconstruction according to claim 1, characterized in that: The control of the permanent magnet synchronous motor also includes speed loop feedback control, including: Determined by real-time acquisition of the rotor electrical angle k The electrical angular velocity of the rotor at the moment ω e ( k ); according to k The electrical angular velocity of the rotor at the moment ω e ( k ) and target electrical angular velocity ω ref Determine the speed compensation amount , ; Using the rotor speed error The current rotor speed control amount is controlled and adjusted to make the rotor speed the target speed.
4. The motor control method based on current reconstruction according to claim 1, characterized in that: k +1 time stationary coordinate system α , β Estimated axis current , Calculated by the following formula: , in, L is the stator inductance of the permanent magnet synchronous motor, R is the stator resistance of the permanent magnet synchronous motor, T is the sampling period.
5. The motor control method based on current reconstruction according to claim 4, characterized in that: k Back EMF at time and Calculated by the following formula: , 。 6. The motor control method based on current reconstruction according to claim 5, characterized in that: k The coordinate system of the stationary α , β Axis feedback back EMF E α ( k ), E β ( k ) is calculated by the following formula: ; in, is the permanent magnet flux, ω e ( k )for k The electrical angular velocity of the rotor at time .
7. The motor control method based on current reconstruction according to claim 6, characterized in that: k The electrical angular velocity of the rotor of the permanent magnet synchronous motor at the moment ω e ( k ) can be obtained by: ω e ( k )=[ θ ( k )- θ ( k -1)] / T ω ,in, θ ( k -1) k -1 The rotor electrical angle of the permanent magnet synchronous motor at time, T ω Calculate the period for the electrical angular velocity.
8. The motor control method based on current reconstruction according to claim 1, characterized in that: According to the A phase current i a ( k ) and the rotor electrical angle θ ( k ) Reconstruction of phase B current i b_rec ( k ), including the following steps: according to k Phase A current of permanent magnet synchronous motor at time i a ( k ) and the rotor electrical angle θ ( k ) Calculate the amplitude of the three-phase current of the permanent magnet synchronous motor I s ( k ), I s ( k ) is calculated as: , in, I s ( k -1) is the three-phase current amplitude of the previous control cycle; Calculate the phase B current i b_rec ( k ), and its calculation formula is i b_rec ( k )= I s ( k ) cos ( θ ( k )-π / 6).
9. The motor control method based on current reconstruction according to claim 1, characterized in that: The A phase current can be calculated by the following formula i a ( k ) and B phase current i b_rec ( k ) is converted to a stationary coordinate system α , β Shaft current i α ( k ), current i β ( k ): i α ( k )= i a ( k ); 。 10. The motor control method based on current reconstruction according to claim 1, characterized in that: The voltage is converted into V a ( k ), V b ( k ) is converted to a stationary coordinate system α , β Shaft voltage V α ( k ), V β ( k ): V α ( k )= V a ( k ); 。 11. A motor control device based on current reconstruction, characterized in that: It includes a current detection module, a voltage detection module, an electrical angle detection module, a phase current amplitude calculation module, a current reconstruction module, a Clark transformation module, a current observer, a speed calculation module and a motor control module; The current detection module is configured to detect the first phase current of the permanent magnet synchronous motor in real time and output it to the phase current amplitude calculation module and the Clark transformation module, wherein the first phase is any one of the three phases of the permanent magnet synchronous motor; The voltage detection module is configured to detect the first phase voltage and the second phase voltage of the permanent magnet synchronous motor in real time and output them to the Clark transformation module; The electrical angle detection module is configured to detect the rotor electrical angle of the permanent magnet synchronous motor in real time and output it to the current reconstruction module and the speed calculation module; The phase current amplitude calculation module is configured to calculate the amplitudes of the three-phase currents according to the current phase current detection values and output them to the current reconstruction module; The current reconstruction module is configured to reconstruct the second phase current of the permanent magnet synchronous motor according to the current amplitude of the three-phase current and the rotor electrical angle and output it to the Clark transformation module; The Clark transformation module is configured to transform the current first phase current and the second phase current into the stationary coordinate system. α Shaft current and β The shaft current is used as the feedback current and the first phase voltage and the second phase voltage are converted into the stationary coordinate system. α Shaft voltage and β The shaft voltage is used as feedback voltage; The speed calculation module is configured to calculate the electrical angular velocity of the rotor at the current moment according to the rotor electrical angle at the current moment and the rotor electrical angle at the previous moment, and output the calculated electrical angular velocity to the current observer; The current observer is configured to α , β The current estimate of the axis, the feedback voltage and the back EMF determine the next moment α , β The estimated current value of the axis, and the α , β The error between the estimated current value of the axis and the feedback current at the current moment determines the back EMF at the next moment; The motor control module is configured to control the permanent magnet synchronous motor according to an α-axis current estimation value and a β-axis current estimation value at a current moment.
12. The motor control device based on current reconstruction according to claim 11, characterized in that: The system further comprises a Park transformation module, wherein the input end of the Park transformation module is electrically connected to the output end of the current observer, the output end of the Park transformation module is electrically connected to the input end of the motor control module, and the Park transformation module is configured to convert the compensated current at the next moment into the current observer. α The shaft current estimate and β The shaft current estimate is converted to the dynamic coordinate system d The shaft current components and q The shaft current component is output to the motor control module; The motor control module is configured to receive d The shaft current components and q shaft current component and controls d The axis target current component is zero and the control q The permanent magnet synchronous motor is controlled with the shaft current component as the target value.
13. The motor control device based on current reconstruction according to claim 11, characterized in that: The motor control module is also configured to receive the electrical angular velocity of the rotor output by the speed calculation module, and control the electrical angular velocity of the rotor of the permanent magnet synchronous motor according to the target electrical angular velocity of the rotor and the electrical angular velocity of the rotor at a current moment.
14. A motor system, characterized in that: It comprises a permanent magnet synchronous motor and a motor control device as described in any one of claims 11 to 13, wherein the motor control device is configured to control the working state of the permanent magnet synchronous motor in real time.
15. The motor system according to claim 14, characterized in that The motor control device is configured to control the working state of the permanent magnet synchronous motor in real time according to the motor control method based on current reconstruction according to any one of claims 1 to 10.
Citation Information
Patent Citations
Permanent magnet synchronous motor single current sensor control method based on current phase shift
CN112468045A
Vector control device for induction motor
CN101931361A
Wave power generation system position detecting method in micro-grid establishing
CN103986399A
Current space vector error projection correction-based fault-tolerant method for current sensor of position sensorless driving system
CN110022107A
Three-phase current reconstruction method and device, equipment and storage medium
CN113872483A
