Single resistor current sampling method and device

By adjusting the three-phase duty cycle and output voltage, the single-resistance current sampling method solves the accuracy problem of three-phase current signal sampling under a single resistor and achieves high-precision three-phase current sampling and motor control.

CN113687126BActive Publication Date: 2024-08-23SHANGHAI STEP ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110828811.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2024-08-23
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

The single-resistance current sampling method is difficult to accurately obtain the three-phase current signal without multiple sampling resistors, and because it cannot sample at the voltage zero vector, the accuracy of the current signal is reduced.

Method used

By adjusting the three-phase duty cycle, the adjusted three-phase duty cycle is calculated, and current sampling is performed based on these duty cycle output voltages to reconstruct the three-phase current signal. Specific steps include sorting and adjusting the three-phase duty cycles calculated by the motor control algorithm, calculating temporary variables to determine the final duty cycle value, and then determining the current sampling moment and output voltage, thereby achieving three-phase operation with a single sampling resistor. Current sampling.

Benefits of technology

It achieves high-precision three-phase current sampling under single-resistance conditions, ensures effective control and protection of three-phase motors, and improves sampling accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113687126B
    Figure CN113687126B
Patent Text Reader

Abstract

The present invention discloses a single resistor current sampling method and device thereof, the method comprising the following steps: a. adjusting the three-phase duty ratio calculated by the motor control algorithm to obtain the adjusted three-phase duty ratio; b. calculating the current sampling time according to the adjusted three-phase duty ratio; c. outputting the three-phase voltage according to the adjusted three-phase duty ratio; d. performing current sampling at the current sampling time, and reconstructing the three-phase current according to the current sampling result. The present invention can realize single resistor current sampling and ensure sampling accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a single resistor current sampling technology. Background Art

[0002] The inverter generally has three-phase output and is used to control three-phase AC motors. The inverter generally requires a three-phase current signal to realize motor control. At the same time, the inverter and motor must be protected according to the three-phase current signal. There are many ways to obtain three-phase current signals. Obtaining current signals through sampling resistors is a common current sampling method. According to the number of sampling resistors, the current sampling method can be divided into three-resistance current sampling, two-resistance current sampling and single-resistance current sampling. Among them, the hardware cost of single-resistance current sampling is the lowest. When the system cost requirements are high, single-resistance current sampling is a better choice.

[0003] Single resistor current sampling collects bus current. In order to obtain the current of each phase, it is necessary to sample at different times within a sampling cycle, and then obtain the three-phase current by reconstruction. In order to ensure that the three-phase current can be accurately obtained, the single resistor current sampling method has certain requirements for the sampling window and sampling time. To meet these requirements, the output voltage of the inverter needs to be adjusted. In addition, since it is impossible to sample the current at the voltage zero vector when sampling the single resistor current, this causes the current sampled by the general single resistor current sampling method to contain current ripple signals, thereby reducing the accuracy of the sampled current signal. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a single-resistance current sampling method, by which a three-phase current signal can be obtained with only one sampling resistor.

[0005] Another technical problem to be solved by the present invention is to provide a single resistor current sampling device.

[0006] The technical solution adopted by the present invention is:

[0007] A single resistor current sampling method is provided, which samples bus current through a sampling resistor arranged on a bus of a three-phase inverter circuit; the method comprises the following steps:

[0008] a. Adjust the three-phase duty ratios D[a], D[b], and D[c] calculated by the motor control algorithm to obtain the adjusted three-phase duty ratios D1[a], D1[b], D1[c], and D2[a], D2[b], and D2[c]; wherein D1[a], D1[b], and D1[c] are the three-phase duty ratios of one of the first half period or the second half period of the carrier cycle, and D2[a], D2[b], and D2[c] are the three-phase duty ratios of the other of the first half period or the second half period of the carrier cycle;

[0009] b. Calculate the current sampling time according to the adjusted three-phase duty cycle;

[0010] c. Output three-phase voltage according to the adjusted three-phase duty cycle;

[0011] d. Perform current sampling at the current sampling time and reconstruct the three-phase current based on the current sampling results.

[0012] In the above single resistor current sampling method, step a comprises:

[0013] a1. Sort the three-phase duty ratios D[a], D[b], and D[c] calculated by the PWM control algorithm in order of magnitude to obtain the maximum value D max , middle value D mid , minimum value D min , and record the maximum value D max , middle value D mid and minimum value D min The corresponding phase is phase a, phase b or phase c, let Max represent the serial number of the phase corresponding to the maximum duty cycle, Mid represent the serial number of the phase corresponding to the middle duty cycle, and Min represent the serial number of the phase corresponding to the minimum duty cycle; when the duty cycles of the three phases are equal, first specify the duty cycle of any phase as the maximum value, then specify the duty cycle of any phase in the remaining two phases as the middle value, and the duty cycle of the remaining phase as the minimum value; when the duty cycles of two phases are equal, specify the duty cycle of any phase in the two equal phases as the larger value, and the duty cycle of the other phase as the smaller value;

[0014] a2. Calculate D max With D mid The difference D xd , and D mid With D min The difference D dn :

[0015]

[0016] Among them, D max , D mid and D min are the maximum, middle and minimum values ​​of the three-phase duty cycles D[a], D[b] and D[c] respectively;

[0017] a3. According to D xd and D dn Get the first temporary calculation variable D xd1 , the second temporary calculation variable D dn1 , the third temporary calculation variable D xd2 , and the fourth temporary calculation variable D dn2 :

[0018]

[0019]

[0020] D xd2 =2D xd -D xd1

[0021] D dn2 =2D dn -D dn1

[0022] Among them, D Ts =T s *2 / T, T is the carrier period, Ts is the preset minimum sampling window; for D calculated by the above formula xd1 , D dn1 , D xd2 , D dn2 According to the following restriction rules, the final D is obtained. xd1 , D dn1 , D xd2 , D dn2 :

[0023] If D xd1 With D dn1 The sum is greater than 1, D xd1 With D dn1 The smaller one among them remains unchanged, D xd1 With D dn1 The larger of becomes 1 minus the smaller;

[0024] If D xd2 With D dn2 The sum is greater than 1, D xd2 With D dn2 The smaller one among them remains unchanged, D xd2 With D dn2 The larger of becomes 1 minus the smaller;

[0025] a4. According to D xd1 , D dn1 and D xd2 , D dn2 Calculate D1[a], D1[b], D1[c] and D2[a], D2[b], D2[c]:

[0026]

[0027]

[0028] Among them, D z1 The value range is [0, 1-D xd1 -Ddn1 ]; D z2 The value range is [0, 1-D xd2 -D dn2 ]; the definitions of function sign1() and function sign2() are as follows:

[0029]

[0030]

[0031] The present invention also provides a single resistor current sampling device, comprising: a memory for storing a program; and a processor for loading the program to execute the above-mentioned single resistor current sampling method.

[0032] The single-resistance current sampling method and device according to the embodiments of the present invention can realize single-resistance current sampling and ensure sampling accuracy, thereby realizing control of a three-phase motor and protecting a motor drive device (such as a frequency converter, etc.) and a motor. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic flow chart of a single resistor current sampling method according to an embodiment of the present invention is shown.

[0034] Figure 2 FIG. 4 is a schematic diagram showing two sampling moments according to the first embodiment of the present invention.

[0035] Figure 3 A schematic diagram showing a single-phase voltage output according to an adjusted duty cycle according to the first embodiment of the present invention is shown.

[0036] Figure 4 A schematic diagram showing four sampling moments according to the second embodiment of the present invention is shown.

[0037] Figure 5 A schematic diagram showing a single-phase voltage output according to an adjusted duty cycle according to a second embodiment of the present invention is shown. DETAILED DESCRIPTION

[0038] Please refer to Figure 1 The single resistor current sampling method according to an embodiment of the present invention comprises the following steps:

[0039] a. Adjust the three-phase duty ratios D[a], D[b], and D[c] calculated by the motor control algorithm to obtain the adjusted three-phase duty ratios D1[a], D1[b], D1[c], and D2[a], D2[b], and D2[c]; wherein D1[a], D1[b], and D1[c] are the three-phase duty ratios of one of the first half period or the second half period of the carrier cycle, and D2[a], D2[b], and D2[c] are the three-phase duty ratios of the other of the first half period or the second half period of the carrier cycle;

[0040] b. Calculate the current sampling time according to the adjusted three-phase duty cycle;

[0041] c. Output three-phase voltage according to the adjusted three-phase duty cycle;

[0042] d. Perform current sampling at the current sampling time and reconstruct the three-phase current based on the current sampling results.

[0043] The working process of the single resistor current sampling method of the present invention is further described below in conjunction with two specific embodiments.

[0044] First embodiment

[0045] This embodiment first adjusts the three-phase duty cycle calculated by the PWM control algorithm, then calculates the time of two samplings, and finally reconstructs the three-phase current according to the bus current obtained by sampling. The single resistor current sampling method of this embodiment is applied to the inverter, the carrier period of the inverter is T, and the minimum sampling window is T s The PWM control algorithm and the sampling algorithm are executed once per carrier cycle, and the PWM control algorithm is used to control the operation of the motor. The specific steps of the first embodiment are as follows:

[0046] Step a, adjusting the three-phase duty ratios D[a], D[b], and D[c] calculated by the PWM control algorithm to obtain the adjusted three-phase duty ratios D1[a], D1[b], D1[c], and D2[a], D2[b], and D2[c]; Step a further includes:

[0047] a1. First, sort the three-phase duty ratios D[a], D[b], and D[c] calculated by the PWM control algorithm in order of size to obtain the maximum value D max , middle value D mid , minimum value D min, and record whether the phase corresponding to the maximum value, the middle value and the minimum value is phase a, phase b or phase c. Let Max represent the serial number of the phase corresponding to the maximum duty cycle, Mid represent the serial number of the phase corresponding to the middle value of the duty cycle, Min represent the serial number of the phase corresponding to the minimum duty cycle, and the values ​​of Max, Mid and Min are all a, b or c, and a, b, c are the serial numbers of phase a, phase b, and phase c respectively. In this embodiment, before adjustment, the duty cycle of phase a is the largest, the duty cycle of phase b is the second largest, and the duty cycle of phase c is the smallest, so it can be obtained: D max =D[a],D mid =D[b],D min =D[c], Max=a, Mid=b, Min=c. It should be noted that Max=a means that the duty cycle of phase a is the largest before adjustment, and Max saves the serial number of the phase corresponding to the maximum duty cycle before adjustment, but the duty cycle of phase a after adjustment (i.e., D1[a] and D2[a] to be described below) may no longer be the maximum value. The meanings of Mid=b and Min=c are similar.

[0048] a2. Calculate D max and D mid The difference D xd , and D mid and D min The difference D dn , D xd and D dn Calculated according to the following formula:

[0049] a3. According to D xd and D dn Get the first temporary calculation variable D xd1 , the second temporary calculation variable D dn1 , the third temporary calculation variable D xd2 , the fourth temporary calculation variable D dn2 ;D xd1 , D dn1 and D xd2 , D dn2 Use the following formula to calculate:

[0050]

[0051]

[0052] D xd2 =2D xd -D xd1

[0053] D dn2 =2D dn -D dn1

[0054] Among them, D Ts =T s *2 / T, T is the carrier period, Ts is the preset minimum sampling window; for D calculated by the above formula xd1 , D dn1 , D xd2 , D dn2 According to the following restriction rules, the final D is obtained. xd1 , D dn1 , D xd2 , D dn2 :

[0055] If D xd1 With D dn1 If the sum is greater than 1, then D xd1 With D dn1 The smaller one among them remains unchanged, D xd1 With D dn1 The larger of becomes 1 minus the smaller (larger = 1-smaller);

[0056] If D xd2 With D dn2 If the sum is greater than 1, then D xd2 With D dn2 The smaller one among them remains unchanged, D xd2 With D dn2 The larger of becomes 1 minus the smaller (larger = 1 - smaller).

[0057] a4. According to D xd1 , D dn1 and D xd2 , D dn2 Calculate D1[a], D1[b], D1[c] and D2[a], D2[b], D2[c]; D1[a], D1[b], D1[c] are obtained by the following formula:

[0058]

[0059] In the above formula, D z1 The value range is [0, 1-D xd1 -D dn1 ], that is, D z1 0, 1-D xd1 -D dn1 or 0 and 1-D xd1 -D dn1 Any value between . The definitions of the functions sign1() and sign2() are as follows

[0060]

[0061]

[0062] D2[a], D2[b], D2[c] are obtained by the following formula:

[0063]

[0064] In the above formula, D z2 The value range is [0, 1-D xd2 -D dn2 ], that is, D z2 0, 1-D xd2 -D dn2 Or 0 and 1-D xd2 -D dn2 Any value in between.

[0065] Step b: Calculate the current sampling time according to the adjusted three-phase duty cycle. In this embodiment, the current sampling time t2 of the current carrier cycle is calculated. s1 and t s2 , t s1 and t s2 The calculation formula is as follows:

[0066]

[0067] Figure 2 FIG. 4 is a schematic diagram showing two sampling moments according to a first embodiment of the present invention, Figure 2 The 0 in represents the start time of the carrier cycle.

[0068] Step c: output the three-phase voltage according to the adjusted three-phase duty cycle. In the first half of the current carrier cycle, the three-phase voltage is output according to D1[a], D1[b], and D1[c], and in the second half of the current carrier cycle, the three-phase voltage is output according to D2[a], D2[b], and D2[c].

[0069] To simplify the description, x represents a, b, c, D1[x] represents D1[a], D1[b] and D1[c], and D2[x] represents D2[a], D2[b] and D2[c]. In the first half of the current carrier cycle, when time t is less than (1-D1[x])*T / 2, the x phase outputs a low level, otherwise it outputs a high level; in the second half of the current carrier cycle, when time t is less than (1+D2[x])*T / 2+, the x phase outputs a high level, otherwise it outputs a low level. Figure 3 A schematic diagram showing a single-phase voltage output according to an adjusted duty cycle according to the first embodiment of the present invention is shown. Figure 3 The 0 in represents the start time of the carrier cycle. In this embodiment, the sampling algorithm cycle is the same as the carrier cycle, and 0 is also the start time of the sampling algorithm cycle. The above time t is the time within the current sampling algorithm cycle.

[0070] Step d: at the sampling time t of the current carrier cycle s1 and t s2 Sampling is performed to obtain the bus current I dc1 and I dc2 , the three-phase current is reconstructed based on the sampled bus current.

[0071] Let the three-phase currents be I[a], I[b] and I[c] respectively, then the three-phase currents can be obtained by the following formula:

[0072]

[0073] It should be noted that I[Max] is not necessarily the maximum value of the three-phase current, but the corresponding current with the largest duty cycle before the duty cycle is adjusted.

[0074] Second embodiment

[0075] This embodiment first adjusts the three-phase duty cycle calculated by the PWM control algorithm, then calculates the time of four samplings, and finally reconstructs the three-phase current based on the bus current obtained by sampling. The single resistor current sampling method of this embodiment is applied to the inverter, the carrier period of the inverter is T, and the minimum sampling window is T s , the PWM control algorithm and the sampling algorithm are executed once every two carrier cycles, that is, the sampling algorithm cycle is equal to two carrier cycles, and the PWM control algorithm is used to control the operation of the motor. The specific steps of the second embodiment are as follows:

[0076] Step a, adjusting the three-phase duty ratios D[a], D[b], and D[c] calculated by the PWM control algorithm to obtain the adjusted three-phase duty ratios D1[a], D1[b], D1[c], and D2[a], D2[b], and D2[c]; Step a further includes:

[0077] a1. First, sort the three-phase duty ratios D[a], D[b], and D[c] calculated by the PWM control algorithm in order of size to obtain the maximum value D max , middle value D mid , minimum value D min , and record whether the phase corresponding to the maximum value, the middle value and the minimum value is phase a, phase b or phase c. Let Max represent the serial number of the phase corresponding to the maximum duty cycle, Mid represent the serial number of the phase corresponding to the middle value of the duty cycle, Min represent the serial number of the phase corresponding to the minimum duty cycle, and the values ​​of Max, Mid and Min are all a, b or c, where a, b, c are the serial numbers of phase a, phase b and phase c respectively. In this embodiment, before adjustment, the duty cycle of phase a is the largest, the duty cycle of phase b is the second largest, and the duty cycle of phase c is the smallest. Therefore, D max =D[a],D mid =D[b],D min=D[c], Max=a, Mid=b, Min=c. It should be noted that Max=a means that the duty cycle of phase a is the largest before adjustment, and Max saves the serial number of the phase corresponding to the maximum duty cycle before adjustment, but the duty cycle of phase a after adjustment (i.e., D1[a] and D2[a] to be described below) may no longer be the maximum value. The meanings of Mid=b and Min=c are similar.

[0078] a2. Calculate D max and D mid The difference D xd , and D mid and D min The difference D dn , D xd and D dn Calculated according to the following formula:

[0079]

[0080] a3, and according to D xd and D dn Get the first temporary calculation variable D xd1 , the second temporary calculation variable D dn1 , the third temporary calculation variable D xd2 , the fourth temporary calculation variable D dn2 ;D xd1 , D dn1 and D xd2 , D dn2 Use the following formula to calculate:

[0081]

[0082]

[0083] D xd2 =2D xd -D xd1

[0084] D dn2 =2D dn -D dn1

[0085] Among them, D Ts =T s *2 / T, T is the carrier period, Ts is the preset minimum sampling window; for D calculated by the above formula xd1 , D dn1 , D xd2 , D dn2 According to the following restriction rules, the final D is obtained. xd1 , D dn1 , D xd2 , Ddn2 :

[0086] If D xd1 With D dn1 If the sum is greater than 1, then D xd1 With D dn1 The smaller one among them remains unchanged, D xd1 With D dn1 The larger of becomes 1 minus the smaller;

[0087] If D xd2 With D dn2 If the sum is greater than 1, then D xd2 With D dn2 The smaller one among them remains unchanged, D xd2 With D dn2 The larger of becomes 1 minus the smaller.

[0088] a4. According to D xd1 , D dn1 and D xd2 , D dn2 Calculate D1[a], D1[b], D1[c] and D2[a], D2[b], D2[c]; D1[a], D1[b], D1[c] are obtained by the following formula:

[0089]

[0090] In the above formula, D z1 The value range is [0, 1-D xd1 -D dn1 ]. The definitions of functions sign1() and sign2() are as follows

[0091]

[0092]

[0093] D2[a], D2[b], D2[c] are obtained by the following formula:

[0094]

[0095] In the above formula, D z2 The value range is [0, 1-D xd2 -D dn2 ].

[0096] Step b: Calculate the current sampling time according to the adjusted three-phase duty cycle. In this embodiment, the current sampling time t2 of the current carrier cycle is calculated. s1 ,t s2 And the two current sampling times t of the next carrier cycle s3 ,ts4 , t s1 ,t s2 ,t s3 and t s4 The calculation formula is as follows:

[0097]

[0098] Figure 4 FIG. 4 is a schematic diagram showing four current sampling moments according to a second embodiment of the present invention, Figure 3 The 0 in represents the starting time of the current carrier cycle, that is, the starting time of the sampling algorithm cycle.

[0099] Step c, output the three-phase voltage according to the adjusted three-phase duty cycle, output the voltage according to D1[a], D1[b], and D1[c] in the first half of the current carrier cycle, output the voltage according to D2[a], D2[b], and D2[c] in the second half of the current carrier cycle, output the voltage according to D2[a], D2[b], and D2[c] in the first half of the next carrier cycle, and output the voltage according to D1[a], D1[b], and D1[c] in the second half of the next carrier cycle.

[0100] To simplify the description, x represents a, b, c, D1[x] represents D1[a], D1[b], D1[c], and D2[x] represents D2[a], D2[b], D2[c]. In the first half of the current carrier cycle (i.e., the first carrier cycle of the sampling algorithm cycle), when time t is less than (1-D1[x])*T / 2, the x phase outputs a low level, otherwise it outputs a high level; in the second half of the current carrier cycle, when time t is less than (1+D2[x])*T / 2, the x phase outputs a high level, otherwise it outputs a low level; in the first half of the next carrier cycle (i.e., the second carrier cycle of the sampling algorithm cycle), when time t is less than (3-D2[x])*T / 2, the x phase outputs a low level, otherwise it outputs a high level; in the second half of the next carrier cycle, when time t is less than (3+D1[x])*T / 2, the x phase outputs a high level, otherwise it outputs a low level. Figure 5 FIG. 4 is a schematic diagram showing a single-phase voltage output according to an adjusted duty cycle according to a second embodiment of the present invention. Figure 5 The 0 in represents the start time of the current carrier cycle. In this embodiment, the sampling algorithm cycle is equal to two carrier cycles, and 0 is also the start time of the sampling algorithm cycle. The above time t is the time within the current sampling algorithm cycle.

[0101] Step d: at the sampling time t of the current carrier cycle s1 ,t s2 and the sampling time t of the next carrier cycle s3 ,t s4Sampling is performed to obtain the bus current I dc1 ,I dc2 ,I dc3 and I dc4 , the three-phase current is reconstructed based on the sampled bus current.

[0102] Let the three-phase currents be I[a], I[b] and I[c] respectively, then the three-phase currents can be obtained by the following formula:

[0103]

[0104] In the second embodiment, the reconstructed three-phase current is obtained by the average value of two groups of current sampling values, which can reduce the influence of ripple current during single resistor current sampling, thereby improving the current sampling accuracy.

[0105] In the first and second embodiments of the present invention, the duty cycle of the first half cycle and the duty cycle of the second half cycle of each carrier cycle can be swapped. After the swap, the sampling time and the calculation formula of current reconstruction are modified accordingly to realize single-resistance current sampling. The specific formula is not given here.

[0106] In the first and second embodiments of the present invention, when outputting voltage, the level polarity can also be changed. If the high level is changed to the low level and the low level is changed to the high level, it is only necessary to adjust the original duty cycle (change the original duty cycle value to 1 minus the value) to ensure the same output voltage. At this time, the sampling time and the calculation formula of current reconstruction are modified accordingly to realize single resistor current sampling, and the specific formula is not given here.

[0107] Another embodiment of the present invention further provides a single resistor current sampling device, comprising a memory and a processor. The memory is used to store a program; the processor is used to load the program to execute the above-mentioned single resistor current sampling method.

[0108] The single-resistance current sampling method and device according to the embodiments of the present invention can realize single-resistance current sampling and ensure sampling accuracy, thereby realizing control of a three-phase motor and protecting a motor drive device (such as a frequency converter, etc.) and a motor.

Claims

1. A single resistor current sampling method, sampling the bus current through a sampling resistor set on the bus of a three-phase inverter circuit; It is characterized in that The following steps are involved: a. Adjust the three-phase duty ratios D[a], D[b], and D[c] calculated by the PWM control algorithm to obtain the adjusted three-phase duty ratio D 1 [a], D 1 [b], D 1 [c], and D 2 [a], D 2 [b], D 2 [c]; where D 1 [a], D 1 [b], D 1 [c] is the three-phase duty cycle of one of the first half or the second half of the carrier cycle, D 2 [a], D 2 [b], D 2 [c] is the three-phase duty cycle of the first half cycle or the second half cycle of the carrier cycle; b. Calculate the current sampling time according to the adjusted three-phase duty cycle; c. Output three-phase voltage according to the adjusted three-phase duty cycle; d. Perform current sampling at the current sampling time and reconstruct the three-phase current based on the current sampling results. Step a includes: a1. Sort the three-phase duty ratios D[a], D[b], and D[c] calculated by the PWM control algorithm in order of magnitude to obtain the maximum value D max , middle value D mid , minimum value D min , and record the maximum value D max , middle value D mid and minimum value D min The corresponding phase is phase a, phase b or phase c, let Max represent the serial number of the phase corresponding to the maximum duty cycle, Mid represent the serial number of the phase corresponding to the middle duty cycle, and Min represent the serial number of the phase corresponding to the minimum duty cycle; when the duty cycles of the three phases are equal, first specify the duty cycle of any phase as the maximum value, then specify the duty cycle of any phase in the remaining two phases as the middle value, and the duty cycle of the remaining phase as the minimum value; when the duty cycles of two phases are equal, specify the duty cycle of any phase in the two equal phases as the larger value, and the duty cycle of the other phase as the smaller value; a2. Calculate D max With D mid The difference D xd , and D mid With D min The difference D dn : Among them, D max , D mid and D min are the maximum, middle and minimum values ​​of the three-phase duty cycles D[a], D[b] and D[c] respectively; a3. According to D xd and D dn Get the first temporary calculation variable D xd1 , the second temporary calculation variable D dn1 , the third temporary calculation variable D xd2 , and the fourth temporary calculation variable D dn2 : D xd2 =2D xd -D xd1 D dn2 =2D dn -D dn1 Among them, D Ts =T s *2 / T, T is the carrier period, Ts is the preset minimum sampling window; for D calculated by the above formula xd1 , D dn1 , D xd2 , D dn2 According to the following restriction rules, the final D is obtained. xd1 , D dn1 , D xd2 , D dn2 : If D xd1 With D dn1 The sum is greater than 1, D xd1 With D dn1 The smaller one among them remains unchanged, D xd1 With D dn1 The larger of becomes 1 minus the smaller; If D xd2 With D dn2 The sum is greater than 1, D xd2 With D dn2 The smaller one among them remains unchanged, D xd2 With D dn2 The larger of becomes 1 minus the smaller; a4. According to D xd1 , D dn1 and D xd2 , D dn2 Calculate D 1 [a], D 1 [b], D 1 [c] and D 2 [a], D 2 [b], D 2 [c]: Among them, D z1 The value range is [0, 1-D xd1 -D dn1 ]; D z2 The value range is [0, 1-D xd2 -D dn2 ]; the definitions of function sign1() and function sign2() are as follows:

2. The single resistor current sampling method according to claim 1, It is characterized in that In step b, two current sampling times t of the current carrier cycle are calculated. s1 and t s2 , t s1 and t s2 The calculation formula is as follows:

3. The single resistor current sampling method according to claim 2, It is characterized in that In step c, in the first half of the current carrier cycle, according to D 1 [a], D 1 [b], D 1 [c] Output three-phase voltage, in the second half of the current carrier cycle according to D 2 [a], D 2 [b], D 2 [c] Output three-phase voltage.

4. The single resistor current sampling method as claimed in claim 3, It is characterized in that In the first half of the current carrier cycle, when time t is less than (1-D 1 [x])*T / 2, the x phase outputs a low level, otherwise it outputs a high level; in the second half of the current carrier cycle, when time t is less than (1+D 2 [x])*T / 2, the x phase outputs a high level, otherwise it outputs a low level; D 1 [x] represents D 1 [a], D 1 [b] and D 1 [c],D 2 [x] represents D 2 [a], D 2 [b] and D 2 [c].

5. The single resistor current sampling method according to claim 1, It is characterized in that In step b, two current sampling times t of the current carrier cycle are calculated. s1 ,t s2 And the two current sampling times t of the next carrier cycle s3 ,t s4 , t s1 ,t s2 ,t s3 and t s4 The calculation formula is as follows:

6. The single resistor current sampling method according to claim 5, It is characterized in that In step c, in the first half of the current carrier cycle, according to D 1 [a], D 1 [b], D 1 [c] Output three-phase voltage, in the second half of the current carrier cycle according to D 2 [a], D 2 [b], D 2 [c] Output three-phase voltage, in the first half of the next carrier cycle according to D 2 [a], D 2 [b], D 2 [c] Output three-phase voltage, in the second half of the next carrier cycle according to D 1 [a], D 1 [b], D 1 [c] Output three-phase voltage.

7. The single resistor current sampling method as claimed in claim 6, It is characterized in that In the first half of the current carrier cycle, when time t is less than (1-D 1 [x])*T / 2, the x phase outputs a low level, otherwise it outputs a high level. In the second half of the current carrier cycle, when time t is less than (1+D 2 [x])*T / 2, the x phase outputs a high level, otherwise it outputs a low level; in the first half of the next carrier cycle, when time t is less than (3-D 2 [x])*T / 2, the x phase outputs a low level, otherwise it outputs a high level; in the second half of the next carrier cycle, when time t is less than (3+D 1 [x])*T / 2, the x phase outputs a high level, otherwise it outputs a low level; D 1 [x] represents D 1 [a], D 1 [b] and D 1 [c],D 2 [x] represents D 2 [a], D 2 [b] and D 2 [c].

8. The single resistor current sampling method according to claim 5, It is characterized in that The formula for reconstructing the three-phase current is as follows: I dc1 ,I dc2 ,I dc3 and I dc4 Respectively at t s1 ,t s2 ,t s3 and t s4 The bus current sampled at every moment.

9. A single resistor current sampling device, It is characterized in that include: Memory, used to store programs; A processor, configured to load the program to execute the single resistor current sampling method according to any one of claims 1 to 8.