Method and device for determining current of permanent magnet synchronous motor

By obtaining the A-phase, C-phase, and B-phase sampling currents of the permanent magnet synchronous motor and calculating the compensation proportion coefficient for coordinate conversion and error compensation, the sampling error problem in the DC bus single-resistance sampling technology is solved, and the current reconstruction accuracy and accuracy are improved. Robust, suitable for scenarios where motor parameters are inaccurate or unmeasurable, reducing hardware costs.

CN118554832APending Publication Date: 2024-08-27BEIJING CHEHEJIA AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310212449.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing DC bus single-resistance sampling technology in permanent magnet synchronous motors has sampling phase errors and sampling offset errors, resulting in low current reconstruction accuracy, strong dependence on motor parameters, poor robustness, and limited scope of application.

Method used

By obtaining the A-phase, C-phase, and B-phase sampling currents of the bridge arm of the permanent magnet synchronous motor, and calculating the compensation proportion coefficient, coordinate conversion and error compensation are performed, the d-axis and q-axis compensation currents are determined, the sampling error is suppressed, and the current reconstruction is improved. Accuracy.

Benefits of technology

It effectively suppresses sampling phase error and offset error, improves current reconstruction accuracy, reduces dependence on motor parameters, enhances robustness, has a wider applicable range, and reduces hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention relates to a permanent magnet synchronous motor current determination method and device. The method comprises the following steps: acquiring an A-phase sampling current, a C-phase sampling current and a B-phase sampling current of a permanent magnet synchronous motor bridge arm; acquiring a compensation proportionality coefficient; the A-phase sampling current, the C-phase sampling current and the B-phase sampling current are converted, compensation is carried out through a compensation proportionality coefficient, and d-axis compensation current and q-axis compensation current of the permanent magnet synchronous motor are determined; the compensation proportionality coefficient is used for compensating errors existing in sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current. According to the method, the d-axis compensation current and the q-axis compensation current in the permanent magnet synchronous motor can be accurately calculated, the current reconstruction precision is improved, and the control quality of the motor is 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 technology, and in particular to a method and device for determining the current of a permanent magnet synchronous motor. Background Art

[0002] Permanent Magnetic Synchronous Machin (PMSM) has been widely used due to its high reliability, high power density, high efficiency and other advantages. To achieve precise control of the speed and torque of the PMSM, accurate three-phase current information is required to determine the accurate d-axis current and q-axis current, and to accurately control the PMSM; the d-axis current is the current parallel to the centerline of the PMSM rotor pole, and the q-axis current is the current perpendicular to the centerline of the PMSM rotor pole.

[0003] Traditional solutions are to install a sampling resistor on each phase bridge arm to collect current information for each phase, or install sampling resistors on any two phase bridge arms. After collecting the current of the two phases, Kirchhoff's current synthesis law is used to calculate the current information of the remaining phase. However, the use of multiple sampling resistors requires additional sampling and filtering circuits, configuration of control chip related pins, etc., which not only increases the hardware cost, but also makes the control circuit more complicated.

[0004] The existing scheme also has a single resistor scheme based on DC bus sampling, but this scheme will introduce two inherent errors. First, the use of a single resistor sampling means that only a certain phase current information can be collected at any time. To obtain different phase current information within a control cycle, multiple samplings are required in sequence. The time delay between multiple samplings will introduce sampling phase errors. Secondly, the traditional multi-resistance sampling scheme often sets the current sampling point of each phase at the middle moment of each control cycle. In other words, the sampling point is located on the average current straight line, and the obtained sampling value can well reflect the magnitude of a certain phase current in the current control cycle. However, based on the DC bus sampling method of the classic permanent magnet synchronous motor, the two sampling points in each control cycle are not located in the middle, beginning or end of the control cycle, so the current information obtained by sampling deviates from the average current of the control cycle.

[0005] In order to eliminate the above two sampling errors, the current technical solutions are mostly based on the "current change rate" method. The basic idea of ​​this type of method is: by using the mathematical model of the motor, the current change rate within the duration of each voltage vector is calculated, and then the total current change value within the entire control cycle is calculated according to the duration of each vector. Finally, the error between two samples can be compensated at the beginning or end of each control cycle according to the total current change value. However, this method also has the following disadvantages: 1. In order to calculate the current change rate k under each voltage vector, it is inevitable to use the motor mathematical model and motor parameters such as winding inductance, resistance, and flux. In scenarios where motor parameters cannot be measured, motor parameters change due to certain harsh working conditions, and motor parameters change due to long use time or natural aging, the error compensation accuracy will be greatly reduced. Therefore, the strong dependence on motor parameters makes this type of method less robust and its usage scenarios are limited. 2. In order to calculate the average current in each cycle, the above method needs to accurately obtain the actual duration of each voltage vector, but its compensation accuracy will be reduced due to the actual on / off delay time of the switching device, dead time and other inverter nonlinear factors, control circuit structure and certain dynamic processes. 3. Application scenarios such as water pumps have strict control over the overall hardware cost of the controller, and the computing power of the microcontroller used is often low. The above method will use auxiliary means such as state observers, which have complex algorithms and large calculations. It requires high computing power for the microcontroller, which is not conducive to reducing hardware costs.

[0006] Therefore, it is necessary to propose a new scheme to suppress the sampling phase error and sampling offset error inherent in the DC bus single resistor sampling technology, improve the current reconstruction accuracy, and determine the accurate d-axis current and q-axis current. Summary of the invention

[0007] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a method and device for determining the current of a permanent magnet synchronous motor.

[0008] In a first aspect, the present disclosure provides a method for determining a current of a permanent magnet synchronous motor, the method comprising:

[0009] Obtain the A-phase sampling current, C-phase sampling current and B-phase sampling current of the permanent magnet synchronous motor bridge arm;

[0010] Get the compensation ratio coefficient;

[0011] The A-phase sampling current, the C-phase sampling current and the B-phase sampling current are converted, and compensated by the compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor;

[0012] The compensation proportional coefficient is used to compensate for errors existing in sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current.

[0013] Optionally, obtaining the A-phase sampling current, the C-phase sampling current and the B-phase sampling current of the permanent magnet synchronous motor bridge arm includes:

[0014] Obtaining a first sampling time, a second sampling time, and a target sampling time within a target control period;

[0015] Determine the A-phase target current and the C-phase target current based on the target sampling time;

[0016] The first sampling error is determined according to the following formula (1):

[0017] Δi A = -I × Δθ A ×sinθ A (1)

[0018] The second sampling error is determined according to the following formula (2):

[0019] Δi C = -I × Δθ C ×sinθ C (2)

[0020] The A-phase sampling current, the C-phase sampling current and the B-phase sampling current are determined according to the following formula (3):

[0021]

[0022] Wherein, I is the current amplitude of the A-phase current, B-phase current and C-phase current of the bridge arm of the permanent magnet synchronous motor, that is, the amplitudes of the A-phase current, the B-phase current and the C-phase current are the same, all of which are I, Δθ A is the A-phase delay phase between the target sampling time and the first sampling time, Δθ C is the C-phase delay phase between the target sampling time and the second sampling time, θ A is the A-phase current phase corresponding to the first sampling moment, θ C is the C-phase current phase corresponding to the first sampling moment, i A (t1) is the A phase sampling current, i B_REC is the B phase sampling current, i C (t2) is the C phase sampling current, the i A (t M ) is the target current of phase A, i B (t M ) is the target current of phase B, i C (tM ) is the C phase target current, the first sampling error is the error between the A phase target current and the A phase sampling current, the second sampling error is the error between the C phase target current and the C phase sampling current; the first sampling moment, the second sampling moment and the target sampling moment are all different.

[0023] Optionally, the coordinate transformation of the A-phase sampled current, the C-phase sampled current, and the B-phase sampled current, and compensation by the compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor includes:

[0024] Get DQ synchronous rotation coordinate axis;

[0025] Converting the A-phase sampled current, the B-phase sampled current and the C-phase sampled current to the DQ synchronous rotating coordinate axis to determine the D-axis current and the Q-axis current;

[0026] Compensating the D-axis current and the Q-axis current based on the compensation proportional coefficient, and determining a compensated D-axis compensation current and a Q-axis compensation current;

[0027] Converting the D-axis compensation current to determine a d-axis compensation current and a q-axis compensation current;

[0028] Among them, the d-axis compensation current is a current parallel to the center line direction of the permanent magnet synchronous motor rotor pole, the q-axis compensation current is a current perpendicular to the center line direction of the permanent magnet synchronous motor rotor pole, the D-axis direction in the DQ synchronous rotating coordinate axis coincides with the reference current direction, the Q-axis direction in the DQ synchronous rotating coordinate axis leads the D-axis by 90°, and there is a fixed angle between the d-axis and the D-axis.

[0029] Optionally, converting the A-phase sampled current, the B-phase sampled current, and the C-phase sampled current to the DQ synchronous rotating coordinate axis to determine the D-axis current and the Q-axis current includes:

[0030] The D-axis current and the Q-axis current are determined according to the following formula (4):

[0031]

[0032] in, is the D-axis current, is the Q axis current, i D is the ideal current component of the D axis, Δi D is the D-axis current error component, i Q is the ideal current component of the Q axis, Δi Q is the Q-axis current error component, and ΔiD and Δi Q It is expressed as the following formula (5):

[0033]

[0034] Optionally, after determining the D-axis current and the Q-axis current, the method further includes:

[0035] Eliminate the second harmonic component in the D-axis current and the second harmonic component in the Q-axis current, and determine the corrected D-axis current error component and the corrected Q-axis current error component, which are the following formula (6):

[0036]

[0037] Among them, Δi D′ is the corrected D-axis current error component, Δi Q′ is the corrected Q-axis current error component, T f (s) is a notch filter.

[0038] Optionally, obtaining the compensation proportional coefficient includes:

[0039] Obtain the first sampling delay time Δt corresponding to the first sampling moment A , and obtain the second sampling delay time Δt corresponding to the second sampling moment C ;

[0040] Based on the first sampling delay time Δt A and the second sampling delay time Δt C And the A phase delay phase and the C phase delay phase are determined according to the following formula (7):

[0041]

[0042] Determining the compensation proportional coefficient based on the A-phase delay phase and the C-phase delay phase;

[0043] in, t M is the target sampling time, t1 is the first sampling time, t2 is the second sampling time, ω is the current frequency of the A-phase current, B-phase current and C-phase current of the permanent magnet synchronous motor bridge arm, that is, the current frequencies of the A-phase current, the B-phase current and the C-phase current are the same, which are all ω.

[0044] Optionally, determining the compensation proportional coefficient based on the A-phase delay phase and the C-phase delay phase includes:

[0045] Based on equation (7) and equation (6), the compensation proportional coefficient is determined according to the following equation (8):

[0046] Δi D′ =ηΔi Q′ (8)

[0047] Wherein, η is the compensation proportional coefficient.

[0048] Optionally, determining the compensated D-axis compensation current and Q-axis compensation current includes:

[0049] The D-axis compensation current and the Q-axis compensation current are determined according to the following formula (9):

[0050]

[0051] Among them, Δi Q" is the Q-axis compensation current, Δi D" is the D-axis compensation current.

[0052] Optionally, converting the D-axis compensation current to determine the d-axis compensation current and the q-axis compensation current includes:

[0053] The d-axis compensation current and the q-axis compensation current are determined according to the following formula (10):

[0054]

[0055] Among them, i d is the d-axis compensation current, i q is the q-axis compensation current, is the angle between the d-axis and the D-axis.

[0056] In a second aspect, the present disclosure further provides a permanent magnet synchronous motor current determination device, the device comprising:

[0057] The first acquisition module is used to acquire the A-phase sampling current, the C-phase sampling current and the B-phase sampling current of the permanent magnet synchronous motor bridge arm;

[0058] A second acquisition module is used to acquire a compensation proportional coefficient;

[0059] A determination module, used for converting the A-phase sampling current, the C-phase sampling current and the B-phase sampling current, and performing compensation by the compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor;

[0060] The compensation proportional coefficient is used to compensate for errors existing in sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current.

[0061] The present disclosure provides a method and device for determining the current of a permanent magnet synchronous motor, the method comprising: obtaining the A-phase sampling current, the C-phase sampling current and the B-phase sampling current of the bridge arm of the permanent magnet synchronous motor; obtaining the compensation proportional coefficient; converting the A-phase sampling current, the C-phase sampling current and the B-phase sampling current, and compensating them through the compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor; the compensation proportional coefficient is used to compensate for the errors existing in the sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current. That is, through the above method, the present disclosure can accurately calculate the d-axis compensation current and the q-axis compensation current in the permanent magnet synchronous motor, improve the current reconstruction accuracy, and help improve the motor control quality; the present scheme effectively suppresses the sampling phase error and sampling offset error inherent in the DC bus single resistor sampling technology itself by compensating through the compensation proportional coefficient; compared with the traditional scheme, the present scheme gets rid of the dependence on motor parameters, is more suitable for scenarios where motor parameters are inaccurate or unmeasurable, has stronger robustness and a wider range of application; the present scheme only relies on coordinate transformation, and the algorithm is greatly simplified compared with the traditional scheme, and the computing power requirements of the microcontroller unit are lower, which is conducive to reducing hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A schematic diagram of a flow chart of a method for determining current of a permanent magnet synchronous motor provided in an embodiment of the present disclosure;

[0063] Figure 2 A schematic diagram of AC phase current variation in each control cycle provided by an embodiment of the present disclosure;

[0064] Figure 3 A schematic diagram of a DQ synchronous rotating coordinate axis provided in an embodiment of the present disclosure;

[0065] Figure 4 A schematic diagram of the structure of a permanent magnet synchronous motor current determination device provided in an embodiment of the present disclosure;

[0066] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0067] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0068] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0069] The permanent magnet synchronous motor current determination method provided by the embodiment of the present disclosure is exemplarily described below with reference to the accompanying drawings.

[0070] Figure 1 A flow chart of a method for determining a current of a permanent magnet synchronous motor provided in an embodiment of the present disclosure, the method comprising:

[0071] S101, obtaining a phase A sampling current, a phase C sampling current, and a phase B sampling current of a bridge arm of a permanent magnet synchronous motor;

[0072] S102, obtaining a compensation ratio coefficient;

[0073] S103, converting the A-phase sampling current, the C-phase sampling current and the B-phase sampling current, and performing compensation by using a compensation proportional coefficient to determine a d-axis compensation current and a q-axis compensation current of the permanent magnet synchronous motor;

[0074] The compensation proportional coefficient is used to compensate for the errors existing in the sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current.

[0075] Specifically, the permanent magnet synchronous motor may include six sectors, or may include other possible numbers of sectors. The embodiment of the present disclosure takes a six-sector permanent magnet synchronous motor as an example, and the above-mentioned S101-103 method can be used to determine the motor current for any sector.

[0076] Through the above method, the present disclosure can accurately calculate the d-axis compensation current and q-axis compensation current in the permanent magnet synchronous motor, improve the current reconstruction accuracy, and help improve the motor control quality; this scheme effectively suppresses the sampling phase error and sampling offset error inherent in the DC bus single resistor sampling technology itself by compensating through the compensation proportional coefficient; compared with the traditional scheme, this scheme gets rid of the dependence on motor parameters, is more suitable for scenarios where motor parameters are inaccurate or unmeasurable, has stronger robustness and a wider range of applications; this scheme only relies on coordinate transformation, and the algorithm is greatly simplified compared to the traditional scheme, and the computing power requirements of the microcontroller unit are lower, which is conducive to reducing hardware costs.

[0077] In some embodiments, S101 may include:

[0078] Obtaining a first sampling time, a second sampling time, and a target sampling time within a target control period;

[0079] Determine the target current of phase A and the target current of phase C based on the target sampling time;

[0080] The first sampling error is determined according to the following formula (1):

[0081] Δi A = -I × Δθ A ×sinθ A(1)

[0082] The second sampling error is determined according to the following formula (2):

[0083] Δi C = -I × Δθ C ×sinθ C (2)

[0084] The A phase sampling current, the C phase sampling current and the B phase sampling current are determined according to the following formula (3):

[0085]

[0086] Wherein, I is the current amplitude of the A-phase current, B-phase current and C-phase current of the permanent magnet synchronous motor bridge arm, Δθ A is the A-phase delay phase between the target sampling time and the first sampling time, Δθ C is the C-phase delay phase between the target sampling time and the second sampling time, θ A is the current phase of phase A corresponding to the first sampling moment, θ C is the C phase current phase corresponding to the first sampling moment, i A (t1) is the sampling current of phase A, i B_REC is the sampling current of phase B, i C (t2) is the sampling current of phase C, i A (t M ) is the target current of phase A, i B (t M ) is the target current of phase B, i C (t M ) is the C phase target current, the first sampling error is the error between the A phase target current and the A phase sampling current, and the second sampling error is the error between the C phase target current and the C phase sampling current; the first sampling moment, the second sampling moment and the target sampling moment are all different.

[0087] Specifically, taking the first sector of the six sectors as an example, Figure 2 A schematic diagram of AC phase current changes in each control cycle provided by an embodiment of the present disclosure. Figure 2 (a) and Figure 2 The horizontal axis in (b) can be represented as time, and the vertical axis can be represented as current. Since the duration of any voltage vector in each control cycle is very short, it can be considered that the current under this voltage vector changes linearly. The overall change curve is as follows: Figure 2 As shown by the broken line L1 in (a) and the broken line L2 in (b), the average current change in this cycle can be Figure 2As shown by the dotted line L3 in (a) and the dotted line L4 in (b). Assuming that the time of the two sampling points is t1 and t2 respectively, the sampling at the above two times can obtain the A and C phase currents i A (t1) and i C (t2), t1 and t2 can be random sampling times within the target cycle. In order to achieve the effect of no sampling phase delay between multi-phase currents in the traditional multi-resistance sampling scheme, and to ensure that the sampled current can more accurately reflect the current changes in the current control cycle, it is necessary to set the middle moment of the control cycle as the current reconstruction point and obtain the A and C phase currents at that moment, which are recorded as i A (t M ) and i C (t M ). For a three-phase sinusoidal-wave driven PMSM, the three-phase current can be expressed as the following equation (11) or equation (12):

[0088]

[0089]

[0090] Where I is the phase current amplitude, ω is the phase current angular frequency, that is, the following current frequency, θ A ,θ B and θ C They are the three-phase current phases of A, B and C at the current moment respectively.

[0091] The first sampling error between the first sampling time and the target sampling time can be calculated according to formula (11) or formula (12), and the target sampling time is the middle time of the control cycle, and the following formula (13) is obtained:

[0092] Δi A =i A (t M )-i A (t1)=I×cosωt M -I×cosωt1

[0093] =I×[(1-cosΔθ A )×cosθ A -sinΔθ A ×sinθ A ] (13)

[0095] It can be concluded that the first sampling error can be expressed as the following formula (14):

[0096] Δi A =I ′ ×cos(θ A +σ) (14)

[0097] in,

[0098] Since each voltage vector lasts very short, Δθ A is very small, so the above formula (14) can be simplified to the above formula (1), and the expression of formula (1) will not be repeated here.

[0099] Similarly, the second sampling error can be determined, which is the above formula (2).

[0100] According to the above equations (1) and (2), equation (3) can be obtained.

[0101] The A-phase sampling current, the C-phase sampling current and the B-phase sampling current can be determined by the above method.

[0102] In some embodiments, S103 may include:

[0103] Get DQ synchronous rotation coordinate axis;

[0104] The A-phase sampling current, the B-phase sampling current and the C-phase sampling current are converted to the DQ synchronous rotating coordinate axes to determine the D-axis current and the Q-axis current;

[0105] The D-axis current and the Q-axis current are compensated based on the compensation proportional coefficient, and the compensated D-axis compensation current and the Q-axis compensation current are determined;

[0106] The D-axis compensation current is converted to determine the d-axis compensation current and the q-axis compensation current;

[0107] Among them, the d-axis compensation current is the current parallel to the center line direction of the permanent magnet synchronous motor rotor pole, the q-axis compensation current is the current perpendicular to the center line direction of the permanent magnet synchronous motor rotor pole, the D-axis direction in the DQ synchronous rotating coordinate axis coincides with the reference current direction, the Q-axis direction in the DQ synchronous rotating coordinate axis leads the D-axis by 90°, and there is a fixed angle between the d-axis and the D-axis.

[0108] The current of the permanent magnet synchronous motor can be determined by the above method.

[0109] In some embodiments, the A-phase sampled current, the B-phase sampled current, and the C-phase sampled current are converted to the DQ synchronous rotating coordinate axes to determine the D-axis current and the Q-axis current, including:

[0110] The D-axis current and Q-axis current are determined according to the following formula (4):

[0111]

[0112] in, is the D-axis current, is the Q axis current, i Dis the ideal current component of the D axis, Δi D is the D-axis current error component, i Q is the ideal current component of the Q axis, Δi Q is the Q-axis current error component, and Δi D and Δi Q It is expressed as the following formula (5):

[0113]

[0114] Specifically, continuing to refer to the above embodiment, a DQ synchronous rotation coordinate axis can be established. Figure 3 Schematic diagram of the DQ synchronous rotating coordinate axis provided in an embodiment of the present disclosure.

[0115] Among them, θ r The electrical angle of the motor rotor can be obtained by a position sensor such as an encoder or a resolver, or by using a position estimation algorithm; is the reference current vector i ref The angle difference between the d-axis and the Can be θ is the electrical angle of the reference current vector under the DQ synchronous rotating coordinate axis; in this embodiment, the D axis is set to coincide with the reference current vector and rotate at the fundamental electrical angular velocity ω, while the Q axis is set to lead the D axis by 90° electrical angle.

[0116] After establishing the DQ synchronous rotating coordinate axis, the DQ coordinate transformation can be performed based on equation (3) to obtain the D-axis current and Q-axis current, as shown in equation (4). and The D-axis current and Q-axis current determined based on the A-phase sampling current, the B-phase sampling current, and the C-phase sampling current can also be referred to as the sampling D-axis current and the sampling Q-axis current in terms of their representative meanings. D and i Q is the D-axis current and Q-axis current under ideal conditions, that is, the current when the A-phase sampling current, the B-phase sampling current, and the C-phase sampling current are under ideal conditions and there is no sampling error, Δi D and Δi Q That is, it is the error component caused by the sampling error of the A-phase sampling current, the B-phase sampling current and the C-phase sampling current.

[0117] In some embodiments, after determining the D-axis current and the Q-axis current, the method further includes:

[0118] Eliminate the second harmonic component in the D-axis current and the second harmonic component in the Q-axis current, and determine the corrected D-axis current error component and the corrected Q-axis current error component, which are the following formula (6):

[0119]

[0120] Among them, Δi D′ To correct the D-axis current error component, Δi Q′ To correct the Q-axis current error component, T f (s) is a notch filter.

[0121] Specifically, the notch filter can be used to eliminate the second harmonic components in the D-axis current and the Q-axis current components, that is, The above formula (6) is obtained.

[0122] In this embodiment, the notch filter may be a second-order notch filter, which can be expressed as Among them, ω c =2×ω, s is the input frequency of the notch filter, ζ n and d is the damping coefficient or notch coefficient, 0<ζ n <ζ d <1.

[0123] By using the above method, the second harmonic components in the D-axis current and the Q-axis current components can be eliminated.

[0124] In some embodiments, obtaining the compensation proportional coefficient includes:

[0125] Get the first sampling delay time Δt corresponding to the first sampling moment C , and obtain the second sampling delay time Δt corresponding to the second sampling moment C ;

[0126] Based on the first sampling delay time Δt C and the second sampling delay time Δt C And the delay phase of phase A and phase C is determined according to the following formula (7):

[0127]

[0128] Determine a compensation proportional coefficient based on the A-phase delay phase and the C-phase delay phase;

[0129] in, t M is the target sampling moment, t1 is the first sampling moment, t2 is the second sampling moment, and ω is the current frequency of the A-phase current, the B-phase current and the C-phase current of the permanent magnet synchronous motor bridge arm.

[0130] Specifically, the sampling delay time of the A-phase and C-phase currents, namely the first sampling delay time and the second sampling delay time, can be calculated according to the microcontroller unit (MCU) pulse generation module to determine the A-phase delay phase and the C-phase delay phase.

[0131] Through the above method, the A-phase delay phase and the C-phase delay phase can be determined.

[0132] In some embodiments, determining a compensation proportional coefficient based on the A-phase delay phase and the C-phase delay phase includes:

[0133] Based on equation (7) and equation (6), the compensation proportional coefficient is determined according to the following equation (8):

[0134] Δi D′ =ηΔi Q ′ (8)

[0135] Among them, η is the compensation proportional coefficient.

[0136] Specifically, we can substitute equation (7) into equation (6) to obtain Δi D′ With Δi Q′ The relationship between is as follows (15):

[0137]

[0138] Right now

[0139] By the above method, the compensation proportional coefficient can be determined. It should be noted that, as in the above embodiment, this embodiment only takes the first sector as an example, so the calculated η is only the compensation proportional coefficient corresponding to the first sector, and the compensation proportional coefficients of other sectors may be the same as the first sector, or may be different, but the principle of determining the compensation proportional coefficient is the same as that of this embodiment.

[0140] In some embodiments, converting the D-axis compensation current and the Q-axis compensation current to determine the d-axis compensation current and the q-axis compensation current includes:

[0141] The D-axis compensation current and the Q-axis compensation current are determined according to the following formula (9):

[0142]

[0143] Among them, Δi Q" is the Q-axis compensation current, Δi D" is the D-axis compensation current.

[0144] Specifically, the D and Q axis components after error compensation can be determined by the above formula (9), that is, Δi Q" and ΔiD" .

[0145] In some embodiments, converting the D-axis compensation current to determine the d-axis compensation current and the q-axis compensation current includes:

[0146] The d-axis compensation current and the q-axis compensation current are determined according to the following formula (10):

[0147]

[0148] Among them, i d is the d-axis compensation current, i q is the q-axis compensation current, is the angle between the d-axis and the D-axis.

[0149] Specifically, please refer to Figure 3 , the angle between the d-axis and the D-axis is Therefore, the d-axis and q-axis components can be obtained from the above formula (10) as i d and i q , after getting i d and i q After that, the subsequent motor closed-loop control can be carried out.

[0150] It is emphasized again that the permanent magnet synchronous motor may include multiple sectors, and the first sector is taken as an example in this embodiment. At the same time, this embodiment can also be applied to any sector. Therefore, when it is necessary to determine the current of all sectors, the above embodiment can be repeatedly executed to obtain the current of each sector, so as to more accurately control the permanent magnet synchronous motor. The method for determining the current of each sector is similar to that in the above embodiment and will not be repeated here.

[0151] The disclosed embodiment can effectively suppress the sampling phase error and sampling offset error inherent in the DC bus single resistor sampling technology itself, improve the current reconstruction accuracy, and thus help improve the motor control quality. Compared with the traditional solution, the disclosed embodiment completely gets rid of the dependence on motor parameters, is more suitable for scenarios where motor parameters are inaccurate or unmeasurable, has stronger robustness and a wider range of applications. The implementation method of the disclosed embodiment only relies on coordinate transformation and digital filtering, which greatly simplifies the algorithm compared to the traditional solution, requires lower MCU computing power, and is conducive to reducing hardware costs. In addition, although the disclosed embodiment is based on the traditional DC bus single resistor sampling method, it is also applicable to multi-branch sampling, single-branch sampling and other methods.

[0152] Figure 4 A schematic diagram of a permanent magnet synchronous motor current determination device provided in an embodiment of the present disclosure, the device comprising:

[0153] The first acquisition module 41 is used to acquire the A-phase sampling current, the C-phase sampling current and the B-phase sampling current of the bridge arm of the permanent magnet synchronous motor;

[0154] A second acquisition module 42 is used to acquire a compensation proportional coefficient;

[0155] A determination module 43 is used to convert the A-phase sampling current, the C-phase sampling current and the B-phase sampling current, and compensate them through a compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor;

[0156] The compensation proportional coefficient is used to compensate for errors existing in sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current.

[0157] A permanent magnet synchronous motor current determination device provided in an embodiment of the present disclosure corresponds to the above-mentioned permanent magnet synchronous motor current determination method, and therefore can also achieve the same or at least similar technical effects as the above-mentioned permanent magnet synchronous motor current determination method, which will not be repeated here.

[0158] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores a program or instruction, and the program or instruction enables a computer to execute the steps of any method provided in the above embodiments.

[0159] In some embodiments, the computer executable instructions, when executed by a computer processor, can also be used to execute the technical solution of the above-mentioned method for determining the current of a permanent magnet synchronous motor provided in the embodiment of the present disclosure, to achieve corresponding beneficial effects.

[0160] The embodiment of the present disclosure also provides an electronic device, including: a processor and a memory; the processor calls the program or instruction stored in the memory to execute the steps of any method provided in the above implementation mode to achieve corresponding beneficial effects.

[0161] Figure 5 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 As shown, the electronic device includes one or more processors 501 and a memory 502 .

[0162] The processor 501 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0163] The memory 502 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 501 may run the program instructions to implement the method of the embodiment of the present disclosure described above, and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0164] In one example, the electronic device may further include: an input device 503 and an output device 504, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0165] In addition, the input device 503 may also include, for example, a keyboard, a mouse, and the like.

[0166] The output device 504 can output various information to the outside, including the determined distance information, direction information, etc. The output device 504 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0167] Of course, to simplify, Figure 5 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.

[0168] It should be noted that the above-mentioned electronic equipment can be set in the vehicle, specifically in the vehicle-mounted system, such as the battery management system; it can also be other terminal devices outside the vehicle, such as mobile phones, computers, smart wearable devices and other electronic devices, which are not limited here.

[0169] It should be noted that, in this article, relational terms such as "first" and "second" 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 term "comprises" or any other variant thereof is 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.

[0170] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A method for determining the current of a permanent magnet synchronous motor, characterized in that: The method comprises: Obtain the A-phase sampling current, C-phase sampling current and B-phase sampling current of the permanent magnet synchronous motor bridge arm; Get the compensation ratio coefficient; The A-phase sampled current, the C-phase sampled current and the B-phase sampled current are subjected to coordinate transformation, and compensation is performed using the compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor; The compensation proportional coefficient is used to compensate for errors existing in sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current.

2. The method according to claim 1, characterized in that The method of obtaining the A-phase sampling current, the C-phase sampling current and the B-phase sampling current of the bridge arm of the permanent magnet synchronous motor includes: Obtaining a first sampling time, a second sampling time, and a target sampling time within a target control period; Determine the A-phase target current and the C-phase target current based on the target sampling time; The first sampling error is determined according to the following formula (1): Δi A =-I×Δθ A ×sinθ A (1) The second sampling error is determined according to the following formula (2): Δi C =-I×Δθ C ×sinθ C (2) The A-phase sampling current, the C-phase sampling current and the B-phase sampling current are determined according to the following formula (3): Wherein, I is the current amplitude of the A-phase current, B-phase current and C-phase current of the permanent magnet synchronous motor bridge arm, Δθ A is the A-phase delay phase between the target sampling time and the first sampling time, Δθ C is the C-phase delay phase between the target sampling time and the second sampling time, θ A is the A-phase current phase corresponding to the first sampling moment, θ C is the C-phase current phase corresponding to the first sampling moment, i A (t1) is the A phase sampling current, i B_EC is the B phase sampling current, i C (t2) is the C phase sampling current, the i A (t M ) is the target current of phase A, i B (t M ) is the target current of phase B, i C (t M ) is the C phase target current, the first sampling error is the error between the A phase target current and the A phase sampling current, the second sampling error is the error between the C phase target current and the C phase sampling current; the first sampling moment, the second sampling moment and the target sampling moment are all different.

3. The method according to claim 2, characterized in that The coordinate transformation of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current is performed, and compensation is performed by the compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor, including: Get DQ synchronous rotation coordinate axis; Converting the A-phase sampled current, the B-phase sampled current and the C-phase sampled current to the DQ synchronous rotating coordinate axis to determine the D-axis current and the Q-axis current; Compensating the D-axis current and the Q-axis current based on the compensation proportional coefficient, and determining a compensated D-axis compensation current and a Q-axis compensation current; Converting the D-axis compensation current to determine the d-axis compensation current and the q-axis compensation current; Among them, the d-axis compensation current is a current parallel to the center line direction of the permanent magnet synchronous motor rotor pole, the q-axis compensation current is a current perpendicular to the center line direction of the permanent magnet synchronous motor rotor pole, the D-axis direction in the DQ synchronous rotating coordinate axis coincides with the reference current direction, the Q-axis direction in the DQ synchronous rotating coordinate axis leads the D-axis by 90°, and there is a fixed angle between the d-axis and the D-axis.

4. The method according to claim 3, characterized in that The converting the A-phase sampled current, the B-phase sampled current, and the C-phase sampled current to the DQ synchronous rotating coordinate axis to determine the D-axis current and the Q-axis current includes: The D-axis current and the Q-axis current are determined according to the following formula (4): Among them, i Dmea is the D-axis current, i Qmea is the Q axis current, i D is the ideal current component of the D axis, Δi D is the D-axis current error component, i Q is the ideal current component of the Q axis, Δi Q is the Q-axis current error component, and Δi D and Δi Q It is expressed as the following formula (5):

5. The method according to claim 4, characterized in that After the D-axis current and the Q-axis current are determined, the method further includes: Eliminate the second harmonic component in the D-axis current and the second harmonic component in the Q-axis current, and determine the corrected D-axis current error component and the corrected Q-axis current error component, which are the following formula (6): Among them, Δi D′ is the corrected D-axis current error component, Δi Q′ is the corrected Q-axis current error component, T f (s) is a notch filter.

6. The method according to claim 5, characterized in that The obtaining of the compensation proportional coefficient comprises: Obtain the first sampling delay time Δt corresponding to the first sampling moment A , and obtain the second sampling delay time Δt corresponding to the second sampling moment C ; Based on the first sampling delay time Δt A and the second sampling delay time Δt C And the A phase delay phase and the C phase delay phase are determined according to the following formula (7): Determining the compensation proportional coefficient based on the A-phase delay phase and the C-phase delay phase; in, t M is the target sampling time, t1 is the first sampling time, t2 is the second sampling time, and ω is the current frequency of the A-phase current, the B-phase current and the C-phase current of the permanent magnet synchronous motor bridge arm.

7. The method according to claim 6, characterized in that The determining the compensation proportional coefficient based on the A-phase delay phase and the C-phase delay phase comprises: Based on equation (7) and equation (6), the compensation proportional coefficient is determined according to the following equation (8): Δi D′ =ηΔi Q′ (8) Wherein, η is the compensation proportional coefficient.

8. The method according to claim 7, characterized in that The determining of the compensated D-axis compensation current and Q-axis compensation current includes: The D-axis compensation current and the Q-axis compensation current are determined according to the following formula (9): Among them, Δi Q" is the Q-axis compensation current, Δi D" is the D-axis compensation current.

9. The method according to claim 8, characterized in that The converting the D-axis compensation current to determine the d-axis compensation current and the q-axis compensation current includes: The d-axis compensation current and the q-axis compensation current are determined according to the following formula (10): Among them, i d is the d-axis compensation current, i q is the q-axis compensation current, is the fixed angle between the d-axis and the D-axis.

10. A device for determining current of a permanent magnet synchronous motor, characterized in that: The device comprises: The first acquisition module is used to acquire the A-phase sampling current, the C-phase sampling current and the B-phase sampling current of the permanent magnet synchronous motor bridge arm; A second acquisition module is used to acquire a compensation proportional coefficient; A determination module, used for performing coordinate transformation on the A-phase sampling current, the C-phase sampling current and the B-phase sampling current, and performing compensation by the compensation proportional coefficient to determine the d-axis compensation current and the q-axis compensation current of the permanent magnet synchronous motor; The compensation proportional coefficient is used to compensate for errors existing in sampling of the A-phase sampling current, the C-phase sampling current and the B-phase sampling current.