Frequency-doubling single resistor current sampling method and device
By adjusting the three-phase duty cycle calculated by the PWM control algorithm, a method of sampling two sets of current signals within the carrier cycle is implemented, which solves the problem of low single-resistor current sampling accuracy, improves the sampling frequency and accuracy, and enhances the accuracy of the three-phase current signals. Phase motor control and protection accuracy.
Patent Information
- Application Number
- CN202110828954.1
- 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
The existing single-resistance current sampling method can only collect one set of current signals within one carrier cycle, resulting in low current signal sampling accuracy.
By adjusting the three-phase duty cycle calculated by the PWM control algorithm, the new current sampling moment is calculated, and two sets of current signals are sampled within the carrier cycle to reconstruct the three-phase average current of the carrier cycle.
It realizes the sampling of two sets of current signals within one carrier cycle, improves the current sampling frequency and accuracy, and enhances the accuracy of three-phase motor control and protection.
Smart Images

Figure CN113671241B
Abstract
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] The single resistor current sampling collects the bus current, and then obtains 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. In order to meet these requirements, in the prior art, only one set of current signals is generally collected in one carrier cycle, that is, the current sampling frequency is the same as the carrier frequency, which also leads to low sampling accuracy of the current signal. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a frequency-doubled single-resistor current sampling method, by which two groups of current signals can be sampled within one carrier cycle, thereby improving the current sampling frequency and current sampling accuracy.
[0005] Another technical problem to be solved by the present invention is to provide a frequency-doubled single-resistor current sampling device.
[0006] A frequency-doubling single resistor current sampling method according to an embodiment of the present invention comprises the following steps:
[0007] 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 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;
[0008] b. Calculate the current sampling time t according to the adjusted three-phase duty cycle s1 ,t s2 ,t s3 and t s4 ;
[0009] c. Output three-phase voltage according to the adjusted three-phase duty cycle;
[0010] d. At the current sampling time t s1 ,t s2 ,t s3 and t s4 Current sampling is performed respectively, and the three-phase currents of the first half cycle and the second half cycle of the carrier cycle are reconstructed according to the current sampling results, so as to obtain the three-phase average current of the carrier cycle.
[0011] The present invention also provides a frequency-doubled single-resistor current sampling device, comprising: a memory for storing a program; and a processor for loading the program to execute the above-mentioned frequency-doubled single-resistor current sampling method.
[0012] The frequency-doubled single-resistance current sampling method and device according to the embodiment of the present invention can implement sampling of two groups of current signals within one carrier cycle, and further obtain the three-phase average current of the carrier cycle, thereby improving the current sampling accuracy of the single-resistance current sampling method. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A schematic flow chart of a frequency-doubling single-resistor current sampling method according to an embodiment of the present invention is shown.
[0014] Figure 2 A schematic diagram showing four sampling moments according to an embodiment of the present invention is shown.
[0015] Figure 3 A schematic diagram showing a single-phase voltage output according to an adjusted duty cycle according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0016] Please refer to Figure 1 According to the frequency-doubling single resistor current sampling method of the embodiment of the present invention, sampling the bus current through the sampling resistor arranged on the bus of the three-phase inverter circuit includes the following steps:
[0017] 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 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;
[0018] b. Calculate the current sampling time t according to the adjusted three-phase duty cycle s1 ,ts2 ,t s3 and t s4 ;
[0019] c. Output three-phase voltage according to the adjusted three-phase duty cycle;
[0020] d. At the current sampling time t s1 ,t s2 ,t s3 and t s4 Current sampling is performed respectively, and the three-phase currents of the first half cycle and the second half cycle of the carrier cycle are reconstructed according to the current sampling results, so as to obtain the three-phase average current of the carrier cycle.
[0021] In the above-mentioned frequency-doubled single resistor current sampling method, step a comprises:
[0022] 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;
[0023] a2. Calculate D max With D mid The difference D xd , and D mid With D min The difference D dn :
[0024]
[0025] 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;
[0026] a3. According to D xd and D dnGet 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 :
[0027]
[0028] In the above formula, ΔD xd and ΔD dn D xd and D dn Adjustment amount, ΔD xd and ΔD dn The value of is as follows: in the following six groups of ΔD xd and ΔD dn The six groups of ΔD obtained by solving the calculation formula xd and ΔD dn In the xd and ΔD dn The set of solutions with the smallest sum is used as the ΔD actually used. xd and ΔD dn ;
[0029] The six groups of formulas are respectively as follows:
[0030]
[0031]
[0032] Among them, D Ts =T s *2 / T, T is the carrier period, Ts is the preset minimum sampling window; the definitions of functions fun1() and fun2() are as follows:
[0033]
[0034] The D calculated by the above formula xd1 , D dn1 , D xd2 , D dn2 The following restriction rules must be followed to obtain the final D xd1 , D dn1 , D xd2 , D dn2 :
[0035] 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 dn1The larger of becomes 1 minus the smaller;
[0036] 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;
[0037] 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]:
[0038]
[0039]
[0040] 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:
[0041]
[0042] The working process of the frequency-doubled single-resistor current sampling method of the present invention is further described below in conjunction with a specific embodiment.
[0043] This embodiment first adjusts the three-phase duty cycle calculated by the PWM control algorithm, then calculates the time of four current samplings, and finally reconstructs the three-phase currents of the first half of the carrier cycle and the second half of the carrier cycle according to the sampled bus current, thereby obtaining the three-phase average current of the carrier cycle. The frequency-multiplied single-resistance current sampling method of this embodiment is applied to the inverter, the carrier cycle 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. In this specific embodiment, the duty ratios of phase a, phase b, and phase c are all zero. The specific steps of this embodiment are as follows:
[0044] 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:
[0045] 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, since the duty cycles of phase a, phase b and phase c are all zero, D max =0, D mid =0, D min =0, and set 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 meaning of Mid=b, Min=c is similar to this.
[0046] 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:
[0047]
[0048] 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:
[0049]
[0050] In the above formula, ΔD xd and ΔD dn D xd and D dn The adjustment amount. ΔD xd and ΔD dn There are six possible values, as follows:
[0051]
[0052] Among them, D Ts =T s *2 / T, T is the carrier period, Ts is the preset minimum sampling window; the definitions of functions fun1() and fun2() are as follows:
[0053]
[0054] According to the above six sets of formulas, six sets of ΔD can be solved xd and ΔD dn , select ΔD xd and ΔD dn The set of solutions with the smallest sum is used as the ΔD actually used. xd and ΔD dn , which is the last group, thus getting D xd1 , D dn1 and D xd2 , D dn2 .
[0055]
[0056] Calculate D xd1 , D dn1 and D xd2 , D dn2 After that, we need to xd1 , D dn1 and D xd2 , D dn2 According to the following restriction rules, the final D is obtained. xd1 , D dn1 , D xd2 , D dn2 :
[0057] 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 dn1The larger of becomes 1 minus the smaller (larger = 1-smaller);
[0058] 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).
[0059] 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:
[0060]
[0061] 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 in between.
[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 t according to the adjusted three-phase duty cycle s1 ,t s2 , t s3 and t s4 :
[0066] First calculate the current sampling time t of the first half of the carrier cycle s1 and t s2 :
[0067] Sort the three-phase duty ratios D1[a], D1[b], and D1[c] of the first half of the carrier cycle in order of magnitude to obtain the maximum value D max1 , middle value D mid1 , minimum value D min1 , and record the maximum value D max1 , middle value D mid1 and minimum value D min1 The corresponding phase is phase a, phase b or phase c. Let Max1 represent the serial number of the phase corresponding to the maximum duty cycle, Mid1 represent the serial number of the phase corresponding to the middle duty cycle, and Min1 represent the serial number of the phase corresponding to the minimum duty cycle; Max1, Mid1 and Min1 are a, b or c, where a, b, c are the serial numbers of phase a, phase b, and phase c respectively. We can get D max1 =D1[a], D mid1 =D1[b], D min1 =D1[c], Max1=a, Mid1=b, Min1=c.
[0068] t s1 and t s2 It can be calculated by the following formula.
[0069]
[0070] Then calculate the current sampling time t of the second half of the carrier cycle s3 and t s4 :
[0071] Sort the three-phase duty ratios D2[a], D2[b], and D2[c] of the second half of the carrier cycle in order of magnitude to obtain the maximum value D max2 , middle value D mid2 , minimum value D min2 , and record the maximum value D max2 , middle value D mid2 and minimum value D min2 The corresponding phase is phase a, phase b or phase c. Let Max2 represent the serial number of the phase corresponding to the maximum duty cycle, Mid2 represent the serial number of the phase corresponding to the middle duty cycle, Min2 represent the serial number of the phase corresponding to the minimum duty cycle, and Max2, Mid2 and Min2 are a, b or c, where a, b, c are the serial numbers of phase a, phase b, and phase c respectively. We can get D max2 =D2[c], D mid2 =D2[b], D min2 =D2[a], Max2=c, Mid2=b, Min2=a. Current sampling time t s3 and t s4 Calculated by the following formula.
[0072]
[0073] Figure 2 FIG. 4 is a schematic diagram showing four sampling times according to an embodiment of the present invention, Figure 2 The 0 in represents the start time of the carrier cycle.
[0074] Step c: output the three-phase voltage according to the adjusted three-phase duty cycle. In the first half of the carrier cycle, the three-phase voltage is output according to D1[a], D1[b], and D1[c], and in the second half of the carrier cycle, the three-phase voltage is output according to D2[a], D2[b], and D2[c].
[0075] 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 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 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 an 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.
[0076] Step d: current sampling time t in the carrier cycle s1 ,t s2 ,t s3 and t s4 Sampling is performed separately to obtain the bus current I dc1 ,I dc2 ,I dc3 and I dc4 , the three-phase currents of the first half and the second half of the carrier cycle are reconstructed according to the sampled bus current, and then the three-phase average current of the carrier cycle is obtained.
[0077] The three-phase currents of the first half of the recording wave cycle are I1[a], I1[b] and I1[c] respectively. I1[a], I1[b] and I1[c] are obtained by the following formula:
[0078]
[0079] The three-phase currents of the second half of the wave cycle are recorded as I2[a], I2[b] and I2[c] respectively. I2[a], I2[b] and I2[c] are obtained by the following formula.
[0080]
[0081] The three-phase average currents I[a], I[b] and I[c] of this carrier period are obtained by the following formula.
[0082]
[0083] The embodiment of the present invention first adjusts the three-phase duty cycle calculated by the PWM control algorithm, then calculates the time of four current samplings, and finally reconstructs the three-phase currents of the first and second half carrier cycles respectively according to the bus currents obtained by sampling, thereby obtaining the three-phase average current of the carrier cycle. In the embodiment 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 the current reconstruction are modified accordingly to realize the single resistor current sampling, and the specific formula is not given here.
[0084] In the embodiment 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.
[0085] Another embodiment of the present invention further provides a frequency-doubled 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 frequency-doubled single resistor current sampling method.
[0086] According to the frequency-doubled single-resistor current sampling method and device of the embodiments of the present invention, two sets of current signal sampling can be realized within one carrier cycle, and then the three-phase average current of the carrier cycle can be obtained, thereby improving the current sampling accuracy of the single-resistor current sampling method, and then realizing the control of the three-phase motor and the protection of the motor drive device (such as a frequency converter, etc.) and the motor.
Claims
1. A frequency-doubled single resistor current sampling method, 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 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; b. Calculate the current sampling time t according to the adjusted three-phase duty cycle s1 ,t s2 ,t s3 and t s4 ; c. Output three-phase voltage according to the adjusted three-phase duty cycle; d. At the current sampling time t s1 ,t s2 ,t s3 and t s4 Current sampling is performed respectively, and the three-phase currents of the first half cycle and the second half cycle of the carrier cycle are reconstructed according to the current sampling results, so as to obtain the three-phase average current of the carrier cycle. 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 : In the above formula, ΔD xd and ΔD dn D xd and D dn Adjustment amount, ΔD xd and ΔD dn The value of is as follows: in the following six groups of ΔD xd and ΔD dn The six groups of ΔD obtained by solving the calculation formula xd and ΔD dn In the xd and ΔD dn The set of solutions with the smallest sum is used as the ΔD actually used. xd and ΔD dn ; The six groups of formulas are respectively as follows: Among them, D Ts =T s *2 / T, T is the carrier period, Ts is the preset minimum sampling window; the definitions of functions fun1() and fun2() are as follows: The D calculated by the above formula xd1 , D dn1 , D xd2 , D dn2 The following restriction rules must be followed to obtain the final D 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 D1[a], D1[b], D1[c] and D2[a], D2[b], D2[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 frequency-doubled single resistor current sampling method according to claim 1, characterized in that: D1[a], D1[b], D1[c] are the three-phase duty cycles of the first half of the carrier cycle, and D2[a], D2[b], D2[c] are the three-phase duty cycles of the second half of the carrier cycle.
3. The frequency-doubled single resistor current sampling method according to claim 2, characterized in that: In step b, the current sampling time t is calculated according to the adjusted three-phase duty cycle. s1 ,t s2 , t s3 and t s4 The process is as follows: b1. Calculate the current sampling time t of the first half of the carrier cycle s1 and t s2 : Sort the three-phase duty ratios D1[a], D1[b], and D1[c] of the first half of the carrier cycle in order of magnitude to obtain the maximum value D max1 , middle value D mid1 , minimum value D min1 , and record the maximum value D max1 , middle value D mid1 and minimum value D min1 The corresponding phase is phase a, phase b or phase c. Let Max1 represent the phase number corresponding to the maximum duty cycle, Mid1 represent the phase number corresponding to the middle duty cycle, and Min1 represent the phase number corresponding to the minimum duty cycle; the current sampling time t s1 and t s2 Calculated by the following formula: b2. Calculate the current sampling time t of the second half of the carrier cycle s3 and t s4 : Sort the three-phase duty ratios D2[a], D2[b], and D2[c] of the second half of the carrier cycle in order of magnitude to obtain the maximum value D max2 , middle value D mid2 , minimum value D min2 , and record the maximum value D max2 , middle value D mid2 and minimum value D min2 The corresponding phase is phase a, phase b or phase c, let Max2 represent the phase number corresponding to the maximum duty cycle, Mid2 represent the phase number corresponding to the middle duty cycle, Min2 represent the phase number corresponding to the minimum duty cycle; current sampling time t s3 and t s4 Calculated by the following formula:
4. The frequency-doubled single resistor current sampling method according to claim 2 or 3, characterized in that: In the first half of the 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 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; D1[x] represents D1[a], D1[b] and D1[c], and D2[x] represents D2[a], D2[b] and D2[c].
5. The frequency-doubled single resistor current sampling method according to claim 1, characterized in that: In the step d, reconstructing the three-phase currents of the first half cycle and the second half cycle of the carrier cycle respectively according to the current sampling results, and then obtaining the three-phase average current of the carrier cycle includes the following steps: Calculate the three-phase currents I1[a], I1[b], and I1[c] in the first half of the carrier cycle: Calculate the three-phase currents I2[a], I2[b], and I2[c] in the second half of the carrier cycle: Calculate the three-phase average current I[a], I[b] and I[c] of the carrier period: Among them, 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.
6. A frequency-doubled single-resistance current sampling device, characterized in that: include: Memory, used to store programs; A processor, used for loading the program to execute the frequency-multiplied single-resistance current sampling method as claimed in any one of claims 1 to 5.
