A current sampling method and system

By using a three-phase current sampling circuit to calculate the current ratio using MOSFETs and resistors to calibrate the current, the problems of sampling deviation caused by changes in the internal resistance of MOSFETs and high cost of three-resistor sampling are solved, achieving accurate current acquisition and saving hardware costs.

CN116859105BActive Publication Date: 2026-11-20SHENZHEN ZHAOWEI MACHINERY&ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310656177.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-02
Publication Date
2026-11-20
Estimated Expiration
2043-06-02

AI Technical Summary

Technical Problem

In existing current sampling methods, the internal resistance of the MOSFET changes with temperature, causing sampling deviations. Furthermore, three-resistor sampling is costly, and single-resistor sampling requires complex algorithm calibration.

Method used

A three-phase current sampling circuit is used to collect current through MOSFETs and resistors, and the current ratio is calculated as a calibration value. The first sampling current is then calibrated to obtain a standard sampling current.

Benefits of technology

It achieves accurate current acquisition and simplifies the algorithm without increasing hardware costs, thus reducing hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116859105B_ABST
    Figure CN116859105B_ABST
Patent Text Reader

Abstract

The application provides a current sampling method and system, and the method comprises the following steps: a three-phase current sampling circuit collects a first sampling current of a three-phase motor through a sampling MOS tube, and a sampling resistor collects a second sampling current of a bus circuit; the amplitudes of the first sampling current and the second sampling current are obtained, the ratio of the amplitudes of the first sampling current and the second sampling current is calculated, and the ratio is taken as a calibration value of the sampling MOS tube; the first sampling current is calibrated according to the calibration value, and a standard sampling current is obtained. The method mainly uses the MOS tube current sampling and the sampling resistor current sampling as the supplement, the current can be accurately collected, the algorithm is simple, and the hardware cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of motor drive control, and in particular to a current sampling method and system. Background Technology

[0002] Existing current sampling methods generally include single-resistor sampling, dual-resistor sampling, and triple-resistor sampling. Single-resistor sampling has low cost, but obtaining accurate current values ​​requires complex algorithms and calibration of the sampled current. Dual-resistor and triple-resistor sampling algorithms are simpler, but their costs are relatively high. Given the high cost of triple-resistor sampling, in some cases, MOSFET internal resistance current sampling is used instead of triple-resistor sampling. Under normal circumstances, this method can collect accurate current, but because the internal resistance of the MOSFET changes with temperature, the current sampling will be inaccurate as the MOSFET temperature rises. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to overcome the shortcomings of the prior art and provide a current sampling method and system.

[0004] This invention provides the following technical solution:

[0005] In a first aspect, this application provides a current sampling method applied to a current sampling system, the current sampling system comprising: a three-phase motor, a three-phase current sampling circuit, a bus circuit, and a sampling resistor, wherein the three-phase motor is connected to the three-phase current sampling circuit, the three-phase current sampling circuit is connected to the bus circuit, the bus circuit is connected to the sampling resistor, and the three-phase current sampling circuit includes a sampling MOS transistor;

[0006] The three-phase current sampling circuit acquires the first sampling current of the three-phase motor through the sampling MOS transistor, and the sampling resistor acquires the second sampling current of the three-phase motor;

[0007] Obtain the first sampling current amplitude and the second sampling current amplitude, calculate the ratio of the first sampling current amplitude to the second sampling current amplitude, and use the ratio as the calibration value of the sampling MOS transistor;

[0008] The first sampling current is calibrated according to the calibration value to obtain the standard sampling current.

[0009] In one embodiment, the first sampling current is a three-phase current, and the step of collecting the first sampling current of the three-phase motor includes:

[0010] Based on the amplitudes of the three-phase currents, determine the functional relationship between the three-phase currents and the quadrature-axis current;

[0011] The first sampling current is calculated based on the aforementioned functional relationship.

[0012] In one embodiment, the functional relationship between the three-phase current and the quadrature-axis current includes:

[0013] i a =-i q *sinθ

[0014]

[0015]

[0016] Among them, i q For quadrature-axis current, i a i b and i c θ represents the three-phase current, and θ is the rotor angle of the three-phase motor.

[0017] In one implementation, the calculation of the first sampling current includes:

[0018] Based on the functional relationship between the three-phase current and the quadrature-axis current, determine the corresponding multiple angle values ​​of the motor rotor when the three-phase current takes the amplitude value;

[0019] Calculate the first sampled current value corresponding to each angle value, and take the average of the multiple first sampled current values ​​as the amplitude of the first sampled current.

[0020] In one embodiment, determining the multiple angle values ​​of the motor rotor corresponding to the amplitude of the three-phase current includes:

[0021] Based on the functional relationship between the three-phase current and the quadrature-axis current, the angle value of the motor rotor is determined when the three-phase current takes its amplitude within one cycle:

[0022] When θ is and At that time, i a Take the amplitude;

[0023] When θ is and At that time, i b Take the amplitude;

[0024] When θ is and At that time, i c Take the amplitude value.

[0025] In one embodiment, obtaining the first sampling current amplitude and the second sampling current amplitude includes:

[0026] Based on the amplitude values ​​of the three-phase current, the corresponding multiple angle values ​​of the motor rotor are used to determine multiple sampling values.

[0027] The average sampling current amplitude is calculated based on the multiple sampled values.

[0028] In one embodiment, calculating the average sampling current amplitude based on a plurality of the sampled values ​​includes:

[0029] According to i a i b , and i c When taking the amplitude, the motor rotor angle θ is used to obtain the corresponding sampled values ​​as follows: and

[0030] The formula for calculating the average sampling current amplitude is based on the corresponding sampling machine.

[0031]

[0032] Among them, i max This represents the average sampling current amplitude.

[0033] In one embodiment, obtaining the first sampling current amplitude and the second sampling current amplitude, and calculating the ratio of the first sampling current amplitude to the second sampling current amplitude, includes:

[0034] Calculate the amplitude i of the first sampling current according to the formula for calculating the average sampling current amplitude. max_mos Second sampling current amplitude i max_bus ;

[0035] The ratio P of the first sampled current amplitude to the second sampled current amplitude is calculated as follows:

[0036] P = i max_bus / i max_mos .

[0037] In one embodiment, calibrating the first sampling current according to the calibration value to obtain a standard sampling current includes:

[0038] The formula for calculating the standard sampling current is: i (abc) =P×i mos(abc) .

[0039] Among them, i (abc) For the standard sampling current, i mos(abc) This is the first sampling current.

[0040] Secondly, this application provides a current sampling system, including: a three-phase motor, a three-phase current sampling circuit, a bus circuit, and a sampling resistor, wherein the three-phase motor is connected to the three-phase current sampling circuit, the three-phase current sampling circuit is connected to the bus circuit, the bus circuit is connected to the sampling resistor, and the three-phase current sampling circuit includes a sampling MOS transistor;

[0041] The three-phase current sampling circuit is used to acquire the first sampled current of the three-phase motor through the sampling MOS transistor;

[0042] The sampling resistor is used to collect the second sampling current of the three-phase motor;

[0043] The three-phase current sampling circuit is used to obtain the amplitude of the first sampling current and the amplitude of the second sampling current, calculate the ratio of the amplitude of the first sampling current to the amplitude of the second sampling current, and use the ratio as the calibration value of the sampling MOS transistor.

[0044] The three-phase current sampling circuit is used to calibrate the first sampling current according to the calibration value to obtain a standard sampling current.

[0045] The embodiments of the present invention have the following beneficial effects:

[0046] The current sampling method provided by this invention mainly uses MOS transistor internal resistance current sampling and supplements it with single resistor current sampling. While accurately acquiring the current, the algorithm is simple and saves hardware costs.

[0047] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0048] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 A framework diagram of a current sampling system is shown;

[0050] Figure 2 A flowchart of a current sampling method is shown;

[0051] Figure 3 A flowchart of a method for calculating the first sampling current is shown.

[0052] Explanation of key component symbols:

[0053] 101. Three-phase motor; 102. Three-phase current sampling current; 103. Bus circuit; 104. Sampling resistor. Detailed Implementation

[0054] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0055] It should be noted that when an element is said to be "fixed" to another element, it can be directly on the other element or there may be an intervening element. When an element is said to be "connected" to another element, it can be directly connected to the other element or there may be an intervening element. Conversely, when an element is said to be "directly" on another element, there is no intervening element. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.

[0056] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0057] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the template description is for the purpose of describing particular embodiments only and is not intended to limit the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0059] Example 1

[0060] See Figure 1 , Figure 1 This embodiment provides a framework structure diagram of a current sampling system, which includes:

[0061] The system comprises a three-phase motor, a three-phase current sampling circuit, a bus circuit, and a sampling resistor. The three-phase motor is connected to the three-phase current sampling circuit, which is connected to the bus circuit. The bus circuit is connected to the sampling resistor. The three-phase current sampling circuit includes a sampling MOS transistor.

[0062] See Figure 2 , Figure 2 A flowchart of a current sampling method provided in this application embodiment is shown. The method includes:

[0063] S201. The three-phase current sampling circuit collects the first sampling current of the three-phase motor through the sampling MOS transistor, and the sampling resistor collects the second sampling current of the three-phase motor.

[0064] The first sampling current is the three-phase current. Since the sampling MOSFET has an internal resistor, the current of the three-phase motor can be sampled through its internal resistor.

[0065] S202. Obtain the first sampling current amplitude and the second sampling current amplitude, calculate the ratio of the first sampling current amplitude to the second sampling current amplitude, and use the ratio as the calibration value of the sampling MOS transistor.

[0066] The three-phase current sampling circuit also includes a microcontroller for processing the current values.

[0067] See Figure 3 Step S202 further includes:

[0068] S2021. Determine the functional relationship between the three-phase current and the quadrature-axis current based on the amplitude of the three-phase current.

[0069] The functional relationship between the three-phase current and the quadrature-axis current includes:

[0070] i a =-i q *sinθ

[0071]

[0072]

[0073] Among them, i q For quadrature-axis current, i a i b and i c θ represents the three-phase current, and θ is the rotor angle of the three-phase motor.

[0074] S2022. The first sampling current is calculated based on the functional relationship.

[0075] Based on the functional relationship between the three-phase current and the quadrature-axis current, determine the corresponding multiple angle values ​​of the motor rotor when the three-phase current takes the amplitude value;

[0076] Calculate the first sampled current value corresponding to each angle value, and take the average of the multiple first sampled current values ​​as the amplitude of the first sampled current.

[0077] In one embodiment, determining multiple angle values ​​of the motor rotor corresponding to the amplitude of the three-phase current includes:

[0078] Based on the functional relationship between the three-phase current and the quadrature-axis current, the angle value of the motor rotor is determined when the three-phase current takes its amplitude within one cycle:

[0079] When θ is and At that time, i a Take the amplitude;

[0080] When θ is and At that time, i b Take the amplitude;

[0081] When θ is and At that time, i c Take the amplitude value.

[0082] In one embodiment, obtaining the first sampling current amplitude and the second sampling current amplitude includes:

[0083] Based on the amplitude values ​​of the three-phase current, the corresponding multiple angle values ​​of the motor rotor are used to determine multiple sampling values.

[0084] The average sampling current amplitude is calculated based on the multiple sampled values.

[0085] Among them, according to i a i b , and i c When taking the amplitude, the motor rotor angle θ can be used to obtain the corresponding sampled values ​​as follows: and

[0086] The formula for calculating the average sampling current amplitude is based on the corresponding sampling machine.

[0087]

[0088] Among them, i maxThis represents the average sampling current amplitude.

[0089] In one implementation, obtaining the first sampling current amplitude and the second sampling current amplitude, and calculating the ratio of the first sampling current amplitude to the second sampling current amplitude, includes:

[0090] Calculate the amplitude i of the first sampling current according to the formula for calculating the average sampling current amplitude. max_mos Second sampling current amplitude i max_bus ;

[0091] The ratio P of the first sampled current amplitude to the second sampled current amplitude is calculated as follows:

[0092] P = i max_bus / i max_mos .

[0093] S203. The first sampling current is calibrated according to the calibration value to obtain the standard sampling current.

[0094] Using the ratio P of the first sampling current amplitude to the second sampling current amplitude as the calibration ratio of the first sampling current, the formula for calculating the standard sampling current can be obtained as follows:

[0095] i (abc) =P×i mos(abc) ,

[0096] Among them, i (abc) For the standard sampling current, i mos(abc) This is the first sampling current.

[0097] This application primarily uses MOSFET current sampling, supplemented by resistor current sampling. While accurately acquiring the current, the algorithm is simple and saves hardware costs.

[0098] Example 2

[0099] See Figure 1 This application also provides a current sampling system 100, comprising:

[0100] A three-phase motor 101, a three-phase current sampling circuit 102, a bus circuit 103, and a sampling resistor 104 are provided. The three-phase motor is connected to the three-phase current sampling circuit, the three-phase current sampling circuit is connected to the bus circuit, and the bus circuit is connected to the sampling resistor. The three-phase current sampling circuit includes a sampling MOS transistor.

[0101] The three-phase current sampling circuit is used to acquire the first sampled current of the three-phase motor through the sampling MOS transistor;

[0102] The sampling resistor is used to collect the second sampling current of the bus circuit;

[0103] The three-phase current sampling circuit is used to obtain the amplitude of the first sampling current and the amplitude of the second sampling current, calculate the ratio of the amplitude of the first sampling current to the amplitude of the second sampling current, and use the ratio as the calibration value of the sampling MOS transistor.

[0104] The three-phase current sampling circuit is used to calibrate the first sampling current according to the calibration value to obtain a standard sampling current.

[0105] In one embodiment, the three-phase current sampling circuit further includes a microcontroller for performing current value calculations.

[0106] It is understood that the implementation methods of the current sampling method in the above embodiments are also applicable to this embodiment, so they will not be described again here.

[0107] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not as limitations; therefore, other examples of exemplary embodiments may have different values.

[0108] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0109] The above-described embodiments are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention.

Claims

1. A current sampling method, applied to a current sampling system, the current sampling system comprising: The system comprises a three-phase motor, a three-phase current sampling circuit, a bus circuit, and a sampling resistor. The three-phase motor is connected to the three-phase current sampling circuit, the three-phase current sampling circuit is connected to the bus circuit, and the bus circuit is connected to the sampling resistor. The three-phase current sampling circuit includes a sampling MOS transistor. The method is characterized by comprising: The three-phase current sampling circuit acquires the first sampling current of the three-phase motor through the sampling MOS transistor, and the sampling resistor acquires the second sampling current of the three-phase motor; Obtain the first sampling current amplitude and the second sampling current amplitude, calculate the ratio of the first sampling current amplitude to the second sampling current amplitude, and use the ratio as the calibration value of the sampling MOS transistor; The first sampling current is calibrated according to the calibration value to obtain a standard sampling current; The first sampling current is a three-phase current, and the acquisition of the first sampling current of the three-phase motor includes: Based on the amplitudes of the three-phase currents, determine the functional relationship between the three-phase currents and the quadrature-axis current; The first sampling current is calculated based on the aforementioned functional relationship.

2. The current sampling method according to claim 1, characterized in that, The functional relationship between the three-phase current and the quadrature-axis current includes: in, For quadrature axis current, , and It is a three-phase current. This refers to the rotor angle of a three-phase motor.

3. The current sampling method according to claim 2, characterized in that, The calculation of the first sampled current includes: Based on the functional relationship between the three-phase current and the quadrature-axis current, determine the corresponding multiple angle values ​​of the motor rotor when the three-phase current takes the amplitude value; Calculate the first sampled current value corresponding to each angle value, and take the average of the multiple first sampled current values ​​as the amplitude of the first sampled current.

4. The current sampling method according to claim 3, characterized in that, The determination of multiple angle values ​​of the motor rotor corresponding to the amplitude of the three-phase current includes: Based on the functional relationship between the three-phase current and the quadrature-axis current, the angle value of the motor rotor is determined when the three-phase current takes its amplitude within one cycle: when for and hour, Take the amplitude; when for and hour, Take the amplitude; when for and hour, Take the amplitude value.

5. The current sampling method according to claim 4, characterized in that, The step of obtaining the first sampled current amplitude and the second sampled current amplitude includes: Based on the amplitude values ​​of the three-phase current, the corresponding multiple angle values ​​of the motor rotor are used to determine multiple sampling values. The average sampling current amplitude is calculated based on the multiple sampled values.

6. The current sampling method according to claim 5, characterized in that, The step of calculating the average sampling current amplitude based on multiple sampled values ​​includes: according to , ,and The motor rotor angle when taking the amplitude value The corresponding sampled values ​​are obtained as follows: , , , , and ; The formula for calculating the average sampling current amplitude is based on the corresponding sampling machine. , in, This represents the average sampling current amplitude.

7. The current sampling method according to claim 6, characterized in that, The step of obtaining the first sampling current amplitude and the second sampling current amplitude, and calculating the ratio of the first sampling current amplitude to the second sampling current amplitude, includes: The amplitude of the first sampling current is calculated according to the formula for calculating the average sampling current amplitude. Second sampling current amplitude ; The ratio P of the first sampled current amplitude to the second sampled current amplitude is calculated as follows: 。 8. The current sampling method according to claim 7, characterized in that, The step of calibrating the first sampling current according to the calibration value to obtain a standard sampling current includes: The formula for calculating the standard sampling current is: , in, For standard sampling current, This is the first sampling current.

9. A current sampling system, characterized in that, include: The system comprises a three-phase motor, a three-phase current sampling circuit, a bus circuit, and a sampling resistor. The three-phase motor is connected to the three-phase current sampling circuit, the three-phase current sampling circuit is connected to the bus circuit, and the bus circuit is connected to the sampling resistor. The three-phase current sampling circuit includes a sampling MOS transistor. The three-phase current sampling circuit is used to collect the first sampling current of the three-phase motor through the sampling MOS transistor. The first sampling current is the three-phase current. The collection of the first sampling current of the three-phase motor includes: determining the functional relationship between the three-phase current and the quadrature-axis current based on the amplitude of the three-phase current; and calculating the first sampling current based on the functional relationship. The sampling resistor is used to collect the second sampling current of the three-phase motor; The three-phase current sampling circuit is used to obtain the first sampling current amplitude and the second sampling current amplitude, calculate the ratio of the first sampling current amplitude to the second sampling current amplitude, and use the ratio as the calibration value of the sampling MOS transistor. The three-phase current sampling circuit is used to calibrate the first sampling current according to the calibration value to obtain a standard sampling current.

Citation Information

Patent Citations

  • Motor phase current sampling method, device and equipment and storage medium

    CN114123918A