Motor position angle compensation verification method and system

By using the changes in the direct-axis current and the quadrature-axis current to determine the direct-axis voltage in the vehicle motor control system, the accuracy of the motor position angle compensation can be quickly and accurately determined, which solves the problem of out-of-control control caused by the position angle sampling delay and simplifies The calibration process improves the accuracy and stability of motor position angle compensation.

CN118659700AActive Publication Date: 2024-09-17CHERY AUTOMOBILE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410698277.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In the vector control system of automotive motors, the position angle sampling and current sampling delays cause the initial position angle to shift, affecting the accuracy of Park transformation and Park inverse transformation, which in turn leads to incorrect control voltage and control loss. Existing compensation The method is highly complex and difficult to quickly and accurately determine the compensation accuracy.

Method used

In the motor position angle compensation calibration method, the changes of the direct axis current and the quadrature axis current at different speeds are used to determine whether the position angle compensation is accurate based on the direct axis voltage. You only need to observe the change trend of the direct axis voltage to quickly and accurately judge , without the need to observe multiple parameters or complex control processes.

Benefits of technology

It simplifies the motor position angle compensation verification process, improves convenience, and ensures that the component changes of the direct-axis current and rotor flux linkage are consistent with the changes of the direct-axis voltage at different speeds, avoiding control loss and improving the motor position angle compensation. accuracy and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659700A
    Figure CN118659700A
Patent Text Reader

Abstract

The invention provides a motor position angle compensation verification method and system, and relates to the technical field of motor control, and the method comprises the steps: compensating a motor position angle; dragging the compensated motor to rotate, giving direct-axis current and quadrature-axis current according to the rotating speed of the motor, and judging whether position angle compensation is accurate or not according to direct-axis voltage; when the rotating speed of the motor does not exceed the flux weakening starting rotating speed, the given direct-axis current and the given quadrature-axis current are zero, and if the direct-axis voltage fluctuates at the zero position, compensation is accurate. According to the invention, the convenience of motor position angle compensation verification can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of motor control technology, and in particular to a motor position angle compensation calibration method and system. Background Art

[0002] At present, vector control is widely used in the control system of automotive motors. Its basic idea is to imitate the magnetic field orientation of DC motors: the direction of the rotor flux is used as the reference direction of the rotating coordinate system. According to this coordinate system, the stator current is decomposed into the stator current excitation component in the same direction as the rotor flux and the stator current torque component orthogonal to the flux direction. This process is also called Park transformation. The controller is used to control the stator current torque component and the current excitation component respectively, and the control voltage is output. Then, the three-phase voltage in the stationary coordinate system is output through Park inverse transformation and pulse width modulation. In this process, the phase synchronization of the rotating coordinate system and the rotor rotation, as well as the synchronization of current sampling and position sampling are very important, which directly affects the size of the stator current torque component and the current excitation component. Since the control of the motor is generally controlled by a digital single-chip microcomputer, various delays are included in the position sampling and current sampling processes. These delays will cause the initial position angle to shift as the speed increases. If they are not compensated, the feedback current component will be calculated inaccurately in the Park transformation, and the control voltage will be incorrect in the Park inverse transformation, which may even lead to loss of control. There are many methods for checking the correctness after compensation, such as checking whether the back electromotive force and the three-phase voltage fundamental wave differ by a fixed deviation, but it usually requires observing multiple parameters and is highly complex. Summary of the invention

[0003] The embodiment of the present disclosure provides a motor position angle compensation calibration method and system, which can improve the convenience of motor position angle compensation calibration. Specifically, it includes the following technical solutions:

[0004] According to a first aspect of an embodiment of the present disclosure, a method for calibrating motor position angle compensation is provided, comprising:

[0005] Compensate the motor position angle;

[0006] The motor rotates after drag compensation, and the direct-axis current and quadrature-axis current are given according to the motor speed. The accuracy of the position angle compensation is determined according to the direct-axis voltage. When the motor speed does not exceed the starting weak magnetic speed, the given direct-axis current and quadrature-axis current are both zero. If the direct-axis voltage fluctuates at zero, the compensation is accurate.

[0007] According to a second aspect of the embodiments of the present disclosure, a motor position angle compensation calibration system is provided, comprising:

[0008] A position angle compensation module is configured to compensate for the motor position angle;

[0009] The compensation verification module is configured to drive the compensated motor to rotate, give the direct-axis current and quadrature-axis current according to the motor speed, and judge whether the position angle compensation is accurate according to the direct-axis voltage; when the motor speed does not exceed the starting weak magnetic speed, the given direct-axis current and quadrature-axis current are both zero, and if the direct-axis voltage fluctuates at zero position, the compensation is accurate.

[0010] A third aspect of the embodiments of the present disclosure provides a motor position angle compensation calibration device, including a dynamometer stand and a control system;

[0011] The dynamometer stand is connected to the motor and is used to drive the motor to rotate so as to verify the accuracy of the motor position angle compensation;

[0012] The control system is connected to the motor and is used to provide the motor with direct-axis current and quadrature-axis current, and obtain the direct-axis voltage of the motor, and judge whether the compensation is accurate according to the direct-axis voltage; when the motor speed does not exceed the starting weak magnetic speed, the given direct-axis current and quadrature-axis current are both zero, and if the direct-axis voltage fluctuates at zero position, the compensation is accurate.

[0013] The technical solution provided by the embodiments of the present disclosure has the following beneficial effects:

[0014] In the disclosed embodiment, different direct-axis currents and quadrature-axis currents are given to the motor at different speeds, and the accuracy of the motor position angle compensation is determined by measuring the direct-axis voltage. In the sinusoidal steady state, if the compensation or the initial angle of the resolver is incorrect, the direct-axis current will generate components on the direct axis and the quadrature axis, and the rotor flux will generate components on the direct axis and the quadrature axis, respectively. At this time, when the direct-axis current and the quadrature-axis current are given, the direct-axis voltage will change with the speed; if the compensation is accurate, the direct-axis current and the rotor flux will not generate additional components, and the direct-axis voltage will not change with the speed. It is only necessary to observe the changing trend of the direct-axis voltage to quickly and accurately determine whether the position angle compensation is accurate, without the need to observe multiple parameters, and without the need for complex control or calculation processes, thereby improving the convenience of motor position angle compensation verification.

[0015] Advantages of additional aspects of the present disclosure will be given in part in the following description and in part will become apparent from the following description or will be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1is a flow chart of a motor position angle compensation calibration method provided by an embodiment of the present disclosure;

[0018] Figure 2 is a flow chart of a compensation calibration process in a motor position angle compensation calibration method provided by an embodiment of the present disclosure;

[0019] Figure 3 It is a sampling execution timing diagram of motor position angle compensation in a motor position angle compensation verification method provided by an embodiment of the present disclosure;

[0020] Figure 4 is a schematic diagram of a motor position angle compensation calibration system provided by an embodiment of the present disclosure;

[0021] Figure 5 It is a schematic diagram of a motor position angle compensation calibration device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0023] Figure 1 is a flow chart of a motor position angle compensation calibration method provided by an embodiment of the present disclosure, Figure 2 is a flowchart of a compensation calibration process in a motor position angle compensation calibration method provided by an embodiment of the present disclosure, see Figure 1 , the method comprising:

[0024] Step 101, compensating the motor position angle;

[0025] Step 102 , the motor rotates after drag compensation, the direct-axis current and the quadrature-axis current are given according to the motor speed, and whether the position angle compensation is accurate is determined according to the direct-axis voltage.

[0026] In step 101, considering that in Park transformation and Park inverse transformation, if the angle used is incorrect, it will lead to loss of current loop control accuracy, unstable torque output, and eventually even lead to loss of control, so this embodiment first compensates for the angle used for coordinate transformation.

[0027] The calibrated motor resolver initial position angle used in the present disclosure is calibrated by detecting the rising zero point of the UV back electromotive force under a fixed speed by open-circuiting the three-phase motor. The resolver decoding adopts hardware chip decoding, and the decoded position information is transmitted to the main control chip through the SPI communication protocol. The single position information sampling and the motor three-phase current sampling use the same trigger source, and the trigger source uses a 50% duty cycle falling edge trigger. The sampling period is synchronized with the six-channel PWM output period. The main control interrupt handler uses the current sampling result to complete the interrupt. The execution time of the interrupt service program exceeds half a sampling period. Figure 1 shown.

[0028] The position angle compensation disclosed in the present invention is applied in the electric vehicle wheel hub motor controller platform, which adopts the Infineon TC275 series as the main control chip and the AD2S1210 as the resolver decoding chip. The compensation of the position angle is carried out after the resolver initial position angle has been accurately calibrated. The initial position angle is calibrated by the method of detecting the rising zero point of the UV back electromotive force by a three-phase open-circuit drag motor. The vector control program, that is, a series of current loop control programs such as Clarke transformation, Park transformation, PID regulation, Park inverse transformation, PWM generation, etc. after three-phase current sampling, is executed in the three-phase current sampling result interrupt program, and the interrupt service program execution time exceeds the current sampling cycle, and is completed before the next sampling result interrupt is generated, and the entire execution time does not exceed the PWM cycle. The PWM cycle of the interrupt trigger source is synchronized with the six-way PWM of the control power device, with the same cycle size and the same phase. The interrupt trigger source uses the falling edge of 50% duty cycle as the trigger signal to excite the three-phase ADC sampling and the resolver decoding chip sampling.

[0029] In the prior art, the analysis of compensation delay usually only considers the delay of current sampling, but does not consider the influence of angle sampling delay. This embodiment combines the comprehensive analysis of angle sampling delay and current sampling delay to ensure the synchronization of angle sampling and current, so as to achieve the accuracy of compensation.

[0030] The angle compensation in Park transformation is mainly to compensate for the angle difference that changes with the speed due to the time difference between position sampling and phase current sampling. The key point of compensation is to consider the components of the time difference. To make the position sampling and current sampling simultaneous, it is necessary to compensate for the position offset. The specific calculation method is as follows:

[0031] Δθ Park =ΔT park *ω

[0032] Among them, Δθ Park Indicates the position angle compensation in Park transformation, ΔT park represents the total delay of Park transformation, and ω represents the electrical angular velocity at the sampling moment.

[0033] The position sampling path delay is the position sampling filter circuit delay t1, so the total position sampling path delay T = t1.

[0034] The delay of the three-phase current sampling path is the current sensor delay t1′, the current sampling filter circuit delay t2′, and the main control chip sampling and holding delay t3′. Therefore, the total delay of the three-phase current sampling path is T′=t1′+t2′+t3′.

[0035] To ensure synchronization of position and angle sampling, see Figure 3 , Park transformation total delay ΔT park =

[0036] |t1′+t2′-t1|.

[0037] Thus we get Δθ Park =(t1′+t2′-t1)*ω.

[0038] The function of Park inverse transformation is to accurately apply the calculated voltage PWM duty cycle to the control loop. Since the duty cycle synchronization update is set at the end of the PWM cycle, when the execution time of the interrupt service program for calculating the voltage PWM duty cycle does not exceed half a PWM cycle, since the PWM duty cycle is updated at the end of the cycle, the angle compensation not only includes the delay in the sampling process, but also includes the 0.5 PWM cycle delay from the triggering of the sampling trigger source to the update of the calculated voltage PWM duty cycle; when the execution time of the interrupt service program for calculating the voltage PWM duty cycle exceeds half a PWM cycle, that is, the calculation is completed in the next cycle, the angle compensation not only includes the delay in the sampling process, but also includes the 1.5 PWM cycle delay from the triggering of the sampling trigger source to the update of the calculated voltage PWM duty cycle. This delay is much longer than the Park transformation angle compensation delay. The delay of 0.5 or 1.5 PWM cycles includes the sampling result conversion delay, program execution delay, position information reading delay, etc. Considering the above delays, the total delay of Park inverse transformation ΔT ipark The calculation is as follows:

[0039] ΔT ipark =T+0.5(or 1.5)*T pwm

[0040] Among them, T pwm is the PWM period.

[0041] To synchronize the position and PWM duty cycle, additional compensation is required on the current resolver sampling angle. The compensation offset is calculated as follows:

[0042] Δθ iPark =ΔTipark *ω=(t1+0.5(or 1.5)*T pwm )*ω

[0043] In summary, the angle θ used by the compensated Park transform can be obtained Park for:

[0044] θ Park =θ-(t1′+t2′-t1)*ω

[0045] The angle θ used by the inverse Park transform iPark for:

[0046] θ iPark =θ+(t1+0.5(or 1.5)*T pwm )*ω

[0047] Among them, θ is the sampling angle of the sampling trigger source triggering the resolver decoding chip. The current sensor delay t1′ is <= 6 microseconds according to the sensor data manual, the filter circuit delay t2′ is calculated to be 10.1 microseconds according to the hardware circuit, the filter circuit delay t1 is calculated to be 8.8 microseconds according to the hardware circuit, and the PWM period T pwm Depending on the current rotation speed, it is 50-200 microseconds.

[0048] In step 102, the correctness of the compensated angle is checked to confirm whether the compensation is accurate. Figure 2 , the main steps include:

[0049] Step 1021, connect the motor to the dynamometer, complete relevant preparations, and use the dynamometer to drive the motor to rotate. On the dynamometer, the dynamometer is set to 0 speed, the motor controller bus is high voltage, and the direct axis current I is set by the calibration software. d and the quadrature axis current I q are all zero, enabling the power device to turn on, gradually increasing the dynamometer speed and driving the motor under test to rotate.

[0050] Step 1022: Determine whether the current speed exceeds the starting magnetic weakening speed (speed base value ω rb ).

[0051] If the current speed does not exceed the starting field weakening speed, the direct axis current I is given by the calibration software. d and the quadrature axis current I q are all zero, and the process goes to step 1023 to determine the fluctuation state of the direct-axis current; if the current speed exceeds the starting magnetic field weakening speed, the magnetic field weakening area is entered at this time. To avoid loss of control, the direct-axis current I is given d is a set value (so that Us is a set value, such as 1 per unit), the quadrature axis current I qIf it is zero, the process goes to step 1024 to determine the fluctuation state of the direct axis current. In order to ensure the stability of the motor in the full speed range, the speed of the dynamometer needs to be gradually increased to ensure that the compensation is correct in the full speed range.

[0052] Step 1023: Determine the direct axis current U d Does it fluctuate around zero? If so, it means the compensation is correct. If not, it needs to be recalibrated to modify the compensation time value or the resolver initial angle.

[0053] Step 1024: Determine the direct axis current U d Does it fluctuate around a fixed value? If so, it means the compensation is correct. If not, it needs to be recalibrated to modify the compensation time value or the resolver initial angle.

[0054] In step 1023 and step 1024, the compensation time value is modified, and the Park transformation delay time should be modulated first.

[0055] The theoretical basis of the above steps is as follows.

[0056] The voltage equation of a permanent magnet synchronous motor is as follows:

[0057]

[0058]

[0059] The flux equation is as follows:

[0060] ψ d =L d I d +ψ f

[0061] ψ q =L q I q

[0062] The base speed values ​​are as follows:

[0063]

[0064] Among them, U d is the direct-axis voltage of the motor, U q is the quadrature axis voltage of the motor, U s is the stator voltage of the motor, I d is the direct axis current of the motor, I q is the quadrature axis current of the motor, ω is the electrical angular velocity of the motor, L d is the direct axis inductance of the motor, L q is the quadrature axis inductance of the motor, R s is the winding resistance of each phase, Ψ f is the rotor flux, |Us |max is the maximum value that the stator voltage can reach.

[0065] According to the above formula, in the sinusoidal steady state, if the compensation or resolver initial angle is incorrect, I d The current components I are generated on the d-axis and q-axis respectively. d 'and I q ',Ψ f The rotor flux components Ψ are generated on the d-axis and q-axis respectively. fd and fq According to this phenomenon, we can draw the following conclusions:

[0066] ①When I d and I q When both are zero, if the compensation and the initial angle of the resolver are correct, then U d is zero; if the compensation or resolver initial angle is incorrect, U d =-ωψ fq , U d It is not zero and changes with the speed.

[0067] ②When I d is a fixed value, I q When it is zero, if the compensation and the initial angle of the resolver are correct, then U d =R s I d is a fixed value; if the compensation or the resolver initial angle is incorrect, U d =R s I d '-ω(L q I q '+ψ fq ), and changes with the speed.

[0068] Therefore, according to U d The changing state of the compensation can be used to determine whether the compensation is accurate.

[0069] Figure 4 is a structural block diagram of a motor position angle compensation calibration system 200 provided in an embodiment of the present disclosure, such as Figure 4 As shown, the system includes: a position angle compensation module 201 and a compensation verification module 202.

[0070] The position angle compensation module 201 is configured to compensate for the motor position angle.

[0071] The compensation verification module 202 is configured to drive the compensated motor to rotate, give the direct-axis current and the quadrature-axis current according to the motor speed, and judge whether the position angle compensation is accurate according to the direct-axis voltage; when the motor speed does not exceed the starting weak magnetic speed, the given direct-axis current and the quadrature-axis current are both zero, and if the direct-axis voltage fluctuates at zero position, the compensation is accurate; when the motor speed exceeds the starting weak magnetic speed, the given direct-axis current is the set value, and the quadrature-axis current is zero, and if the direct-axis voltage fluctuates around a fixed value, the compensation is accurate.

[0072] It should be noted that: the motor position angle compensation verification system 200 provided in the above embodiment only uses the division of the above functional modules as an example when performing motor position angle compensation verification. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the motor position angle compensation verification system 200 provided in the above embodiment and the motor position angle compensation verification method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0073] Figure 5 is a structural block diagram of a motor position angle compensation calibration device 300 provided in an embodiment of the present disclosure, such as Figure 5 As shown, the device includes: a dynamometer stand 301 and a control system 302 .

[0074] The dynamometer stand 301 is connected to the motor and is used to drive the motor to rotate so as to verify the accuracy of the motor position angle compensation.

[0075] The control system 302 is connected to the motor and is used to provide the motor with direct-axis current and quadrature-axis current, obtain the direct-axis voltage of the motor, and judge whether the compensation is accurate according to the direct-axis voltage; when the motor speed does not exceed the starting magnetic weakening speed, the given direct-axis current and quadrature-axis current are both zero, and if the direct-axis voltage fluctuates at zero, the compensation is accurate; when the motor speed exceeds the starting magnetic weakening speed, the given direct-axis current is a set value, and the quadrature-axis current is zero, and if the direct-axis voltage fluctuates around a fixed value, the compensation is accurate.

[0076] The motor position angle compensation calibration device 300 provided in the above embodiment is illustrated by the division of the above hardware modules when performing the motor position angle compensation calibration. In practical applications, the above hardware modules can be replaced with other hardware modules with similar or identical functions as needed, or the functions of a certain hardware module can be assigned to different hardware modules. For example, the control system can be further divided into enabling devices, sensor devices, and computing modules. The enabling devices are used to provide direct-axis current and quadrature-axis current for the motor, the sensor devices are used to collect the direct-axis voltage of the motor, and the computing module is used to realize data processing. In addition, the device may further include a display element, which is connected to the control system and is used to display the collected direct-axis voltage of the motor, so that the change trend of the direct-axis voltage can be intuitively observed.

[0077] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A motor position angle compensation calibration method, characterized in that: include: Compensate the motor position angle; The motor rotates after drag compensation, and the direct-axis current and quadrature-axis current are given according to the motor speed. The accuracy of the position angle compensation is determined according to the direct-axis voltage. When the motor speed does not exceed the starting weak magnetic speed, the given direct-axis current and quadrature-axis current are both zero. If the direct-axis voltage fluctuates at zero, the compensation is accurate.

2. A motor position angle compensation calibration method as claimed in claim 1, characterized in that: When the motor speed does not exceed the starting flux weakening speed, the given direct-axis current and quadrature-axis current are both zero. If the direct-axis voltage is not zero and changes with the speed, the compensation is inaccurate.

3. A motor position angle compensation calibration method as claimed in claim 1, characterized in that: If the compensation is inaccurate, it also includes that when the motor speed exceeds the starting weak magnetic speed, the direct-axis current is given a set value, the quadrature-axis current is zero, and if the direct-axis voltage fluctuates around a fixed value, the compensation is accurate.

4. A motor position angle compensation calibration method as claimed in claim 3, characterized in that: When the motor speed exceeds the starting field weakening speed, the direct-axis current is given a set value and the quadrature-axis current is zero. If the direct-axis voltage does not fluctuate around a fixed value and changes with the speed, the compensation is inaccurate.

5. A motor position angle compensation calibration method as claimed in claim 1, characterized in that: The compensating the motor position angle includes compensating the position angle in Park transformation and compensating the position angle in Park inverse transformation.

6. A motor position angle compensation calibration method as claimed in claim 5, characterized in that: The position angle compensation in Park transformation is: Dth Park =(t1′+t2′-t1)*ω Among them, Δθ Park Indicates the position angle compensation in Park transformation, t1 ′ is the current sensor delay, t2 ′ is the delay of the current sampling filter circuit, t1 is the delay of the position sampling filter circuit, and ω represents the electrical angular velocity at the sampling moment.

7. A motor position angle compensation calibration method as claimed in claim 6, characterized in that: The position angle compensation in the Park inverse transform is: Δθ iPark =(t1+0.5*Tpwm)*ω or, Dth iPark k=(t1+1.5*Tpwm)*ω Among them, Δθ iPark represents the position angle compensation in the Park inverse transform, T pwm is the PWM period.

8. A motor position angle compensation calibration system, characterized in that: include: A position angle compensation module is configured to compensate for the motor position angle; The compensation verification module is configured to drive the compensated motor to rotate, give the direct-axis current and quadrature-axis current according to the motor speed, and judge whether the position angle compensation is accurate according to the direct-axis voltage; when the motor speed does not exceed the starting weak magnetic speed, the given direct-axis current and quadrature-axis current are both zero, and if the direct-axis voltage fluctuates at zero position, the compensation is accurate.

9. A motor position angle compensation calibration device, characterized in that: Including dynamometer stand and control system; The dynamometer stand is connected to the motor and is used to drive the motor to rotate so as to verify the accuracy of the motor position angle compensation; The control system is connected to the motor and is used to provide the motor with direct-axis current and quadrature-axis current, and obtain the direct-axis voltage of the motor, and judge whether the compensation is accurate according to the direct-axis voltage; when the motor speed does not exceed the starting weak magnetic speed, the given direct-axis current and quadrature-axis current are both zero, and if the direct-axis voltage fluctuates at zero position, the compensation is accurate.

10. A motor position angle compensation calibration device as claimed in claim 9, characterized in that: The utility model also comprises a display element, which is connected to the control system and is used for displaying the direct-axis voltage of the motor.

Citation Information

Patent Citations

  • Motor control method and device, electronic device and storage medium

    CN111555669A

  • Quadrature-direct axis decoupling control method and device for permanent magnet synchronous motor electric drive system

    CN113037158A

  • Motor control method, motor control device, motor system and storage medium

    CN113346822A

  • Electric motor control method, electric motor control apparatus, electric motor system and storage medium

    WO2021174736A1