High-current sampling methods, devices and storage media
By acquiring the temperature and voltage of the sampling resistor, and using the temperature and voltage acquisition units, the theoretical detection current is calculated and temperature deviation correction is performed. This solves the error problem caused by the temperature change of the sampling resistor under high current, and achieves accurate detection current.
Patent Information
- Application Number
- CN202410207639.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2044-02-26
AI Technical Summary
In existing technologies, when the current is large, the temperature change of the sampling resistor causes a change in the resistance value, resulting in a large deviation between the calculated current and the actual value, which affects the detection accuracy.
By acquiring the temperature and voltage of the sampling resistor, the theoretical detection current is calculated using the temperature acquisition unit and the voltage acquisition unit. The temperature deviation is corrected according to the relationship between the resistance temperature and the current deviation, the temperature deviation correction current is obtained, and finally the actual working current is determined.
It achieves the elimination of errors caused by temperature changes in the sampling resistor under high current conditions through temperature compensation, thus ensuring the accuracy of the detected current.
Smart Images

Figure CN117849438B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent instruments, and in particular to a high-current sampling method, device, and storage medium. Background Technology
[0002] Intelligent instruments and devices such as power supplies and battery simulators typically use a resistor ranging from a few mΩ to several hundred mΩ as a sampling resistor. After collecting the voltage across this resistor, Ohm's law is used to calculate the current flowing through it. However, as the current (especially when the current is large) flows through it, the resistor generates power consumption, and the resistor temperature rises accordingly. After the temperature rises, the resistance value inevitably changes, which causes the theoretical value of the calculated current to deviate from the actual value. In severe cases, this deviation exceeds the accuracy range, causing the product to malfunction. Summary of the Invention
[0003] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a high-current sampling method that solves the problem of errors caused by temperature changes when detecting the current in a sampling resistor.
[0004] The present invention also proposes a high-current sampling device and a computer-readable storage medium.
[0005] According to a first aspect of the present invention, a high-current sampling method is applied to a sampling system, the sampling system including a voltage acquisition unit and a temperature acquisition unit, the voltage acquisition unit being used to acquire the detection voltage of the sampling resistor, the temperature acquisition unit being used to acquire the resistance temperature of the sampling resistor, and the sampling resistor being connected in series with a working load and a working power supply;
[0006] The high-current sampling method includes:
[0007] Obtain the resistance temperature collected by the temperature acquisition unit;
[0008] The voltage detected by the voltage acquisition unit is obtained;
[0009] The theoretical detection current is obtained based on the detection voltage and the theoretical resistance of the sampling resistor;
[0010] The temperature deviation correction current is obtained based on the theoretical detection current, the resistance temperature, and the pre-obtained relationship between resistance temperature and current deviation.
[0011] The actual operating current flowing through the working load is obtained based on the temperature deviation correction current and the theoretical detection current.
[0012] The relationship between the resistance temperature and the current deviation is obtained through the following steps:
[0013] Adjust the output current of the working power supply to the first actual current, adjust the ambient temperature to the first ambient temperature, so that the resistance temperature of the sampling resistor reaches the first calibration temperature, and obtain the first calibration voltage of the sampling resistor collected by the voltage acquisition unit.
[0014] The first calibration current is determined based on the first calibration voltage and the theoretical resistance of the sampling resistor;
[0015] The first temperature compensation current is determined based on the first actual current and the first calibration current.
[0016] Adjust the output of the working power supply to the second actual current, adjust the ambient temperature to the second ambient temperature, so that the resistance temperature of the sampling resistor reaches the second calibration temperature, and obtain the second calibration voltage of the sampling resistor collected by the voltage acquisition unit;
[0017] The second calibration current is determined based on the second calibration voltage and the theoretical resistance of the sampling resistor;
[0018] The second temperature compensation current is determined based on the second actual current and the second calibration current;
[0019] The proportional coefficient and offset coefficient of the pre-obtained basic relationship are determined based on the first calibration temperature, the first calibration current, the first temperature compensation current, the second calibration temperature, the second calibration current, and the second temperature compensation current. The basic relationship represents the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature.
[0020] Substituting the proportional coefficient and the offset coefficient into the basic relationship, we obtain the relationship between the resistance temperature and the current deviation.
[0021] The high-current sampling method according to embodiments of the present invention has at least the following beneficial effects:
[0022] By pre-obtaining the relationship between resistance temperature and current deviation, the correspondence between temperature change and current change can be understood. Then, by collecting the resistance temperature of the sampling resistor and obtaining the theoretical detection current, a temperature deviation correction current can be obtained. This correction current can then be used to correct the deviation and obtain the actual operating current. This high-current sampling method of the present invention introduces the concept of temperature compensation and provides a method for determining the proportional coefficient and offset coefficient, thereby ensuring the accuracy of the final detected and calculated actual operating current and eliminating the error caused by temperature changes in the sampling resistor.
[0023] According to some embodiments of the present invention, adjusting the first actual current output by the operating power supply includes:
[0024] Adjust the output current of the power supply, and simultaneously use a current detection device to detect the output current of the power supply until the power supply outputs the first actual current.
[0025] According to some embodiments of the present invention, adjusting the output second actual current of the operating power supply includes:
[0026] Adjust the output current of the power supply while simultaneously using a current detection device to detect the output current of the power supply until the power supply outputs the second actual current.
[0027] According to some embodiments of the present invention, the theoretical detection current calculated based on 20% of the full scale of the voltage acquisition unit corresponds to the first actual current, and the theoretical detection current calculated based on 80% of the full scale of the voltage acquisition unit corresponds to the second actual current.
[0028] According to some embodiments of the present invention, the first calibration temperature is 20% of the upper threshold of the preset operating ambient temperature of the sampling resistor, and the second calibration temperature is 80% of the upper threshold of the preset operating ambient temperature of the sampling resistor.
[0029] According to some embodiments of the present invention, the relationship between the resistance temperature and the current deviation is as follows:
[0030] I T =I AD *T*{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}+{I T1 -{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}
[0031] *I AD *T1},
[0032] In the formula, I T For the temperature deviation correction current, I T1 For the first temperature compensation current, I T2 For the second temperature compensation current, I AD For the theoretical detection current, I AD1 For the first calibration current, I AD2 T is the first calibration current, T is the temperature of the resistor, T1 is the first calibration temperature, and T2 is the second calibration temperature.
[0033] According to a second aspect of the present invention, a high-current sampling system is applied to a sampling system, the sampling system including a voltage acquisition unit and a temperature acquisition unit, the voltage acquisition unit being used to acquire the detection voltage of the sampling resistor, the temperature acquisition unit being used to acquire the resistance temperature of the sampling resistor, and the sampling resistor being connected in series with a working load and a working power supply;
[0034] The high-current sampling device includes:
[0035] A temperature acquisition module is used to acquire the resistance temperature collected by the temperature acquisition unit;
[0036] A voltage acquisition module is used to acquire the detected voltage collected by the voltage acquisition unit;
[0037] The theoretical current calculation module is used to obtain the theoretical detection current based on the detection voltage and the theoretical resistance of the sampling resistor;
[0038] The corrected current acquisition module is used to obtain the temperature deviation corrected current based on the theoretical detection current, the resistance temperature, and the pre-acquired relationship between the resistance temperature and the current deviation.
[0039] The current output module is used to obtain the actual operating current flowing through the working load based on the temperature deviation correction current and the theoretical detection current.
[0040] The relationship between the resistance temperature and the current deviation is obtained through the following steps:
[0041] Adjust the output current of the working power supply to the first actual current, adjust the ambient temperature to the first ambient temperature, so that the resistance temperature of the sampling resistor reaches the first calibration temperature, and obtain the first calibration voltage of the sampling resistor collected by the voltage acquisition unit.
[0042] The first calibration current is determined based on the first calibration voltage and the theoretical resistance of the sampling resistor;
[0043] The first temperature compensation current is determined based on the first actual current and the first calibration current.
[0044] Adjust the output of the working power supply to the second actual current, adjust the ambient temperature to the second ambient temperature, so that the resistance temperature of the sampling resistor reaches the second calibration temperature, and obtain the second calibration voltage of the sampling resistor collected by the voltage acquisition unit;
[0045] The second calibration current is determined based on the second calibration voltage and the theoretical resistance of the sampling resistor;
[0046] The second temperature compensation current is determined based on the second actual current and the second calibration current;
[0047] The proportional coefficient and offset coefficient of the pre-obtained basic relationship are determined based on the first calibration temperature, the first calibration current, the first temperature compensation current, the second calibration temperature, the second calibration current, and the second temperature compensation current. The basic relationship represents the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature.
[0048] Substituting the proportional coefficient and the offset coefficient into the basic relationship, we obtain the relationship between the resistance temperature and the current deviation.
[0049] The high-current sampling device according to embodiments of the present invention has at least the following beneficial effects:
[0050] By pre-obtaining the relationship between resistance temperature and current deviation, the correspondence between temperature change and current change can be understood. Then, by collecting the resistance temperature of the sampling resistor and obtaining the theoretical detection current, a temperature deviation correction current can be obtained. This correction current can then be used to correct the deviation and obtain the actual operating current. This high-current sampling device of the present invention introduces the concept of temperature compensation and provides a method for determining the proportional coefficient and offset coefficient, thereby ensuring the accuracy of the final detected and calculated actual operating current and eliminating errors caused by temperature changes in the sampling resistor.
[0051] According to some embodiments of the present invention, the theoretical detection current calculated based on 20% of the full scale of the voltage acquisition unit corresponds to the first actual current, and the theoretical detection current calculated based on 80% of the full scale of the voltage acquisition unit corresponds to the second actual current.
[0052] According to some embodiments of the present invention, the first calibration temperature is 20% of the upper threshold of the preset operating ambient temperature of the sampling resistor, and the second calibration temperature is 80% of the upper threshold of the preset operating ambient temperature of the sampling resistor.
[0053] A computer-readable storage medium according to a third aspect embodiment of the present invention stores computer-executable instructions for performing the high-current sampling method as described in the first aspect embodiment. Since the computer-readable storage medium employs all the technical solutions of the high-current sampling method of the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments.
[0054] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. Attached Figure Description
[0055] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0056] Figure 1 This is a schematic diagram of a sampling system setup according to an embodiment of the present invention;
[0057] Figure 2 This is a flowchart of a high-current sampling method according to an embodiment of the present invention;
[0058] Figure 3 This is a flowchart illustrating the relationship between resistance temperature and current deviation according to an embodiment of the present invention.
[0059] Figure label:
[0060] Sampling system 100, workload 200, power supply 300, sampling resistor 400. Detailed Implementation
[0061] 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.
[0062] In the description of this invention, the use of terms such as "first," "second," etc., is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance, or implicitly indicating the number of technical features indicated, or implicitly indicating the order of the technical features indicated.
[0063] In the description of this invention, it should be understood that the orientation descriptions, such as up, down, etc., are based on the orientation or positional relationship shown in the drawings and are only for the convenience of describing this invention and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this invention.
[0064] In the description of this invention, it should be noted that, unless otherwise explicitly defined, terms such as "setting," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0065] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are some embodiments of the present invention, not all embodiments.
[0066] See Figure 2 As shown, Figure 2 This is a flowchart of a high-current sampling method provided in an embodiment of the present invention. The high-current sampling method includes, but is not limited to, the following steps:
[0067] Obtain the resistance temperature collected by the temperature acquisition unit;
[0068] Acquire the detected voltage collected by the voltage acquisition unit;
[0069] The theoretical detection current is obtained based on the detection voltage and the theoretical resistance of the sampling resistor 400.
[0070] The temperature deviation correction current is obtained based on the theoretical detection current, resistance temperature, and the pre-obtained relationship between resistance temperature and current deviation.
[0071] The actual operating current flowing through the 200Ω workload is obtained based on the temperature deviation correction current and the theoretical detection current.
[0072] The relationship between resistance temperature and current deviation is obtained through the following steps:
[0073] Adjust the output of the working power supply 300 to the first actual current, adjust the ambient temperature to the first ambient temperature, so that the resistance temperature of the sampling resistor 400 reaches the first calibration temperature, and obtain the first calibration voltage of the sampling resistor 400 collected by the voltage acquisition unit.
[0074] The first calibration current is determined based on the first calibration voltage and the theoretical resistance of the sampling resistor 400.
[0075] The first temperature compensation current is determined based on the first actual current and the first calibration current.
[0076] Adjust the output of the working power supply 300 to the second actual current, adjust the ambient temperature to the second ambient temperature, so that the resistance temperature of the sampling resistor 400 reaches the second calibration temperature, and obtain the second calibration voltage of the sampling resistor 400 collected by the voltage acquisition unit.
[0077] The second calibration current is determined based on the second calibration voltage and the theoretical resistance of the sampling resistor 400.
[0078] The second temperature compensation current is determined based on the second actual current and the second calibration current.
[0079] The proportional coefficient and offset coefficient of the pre-obtained basic relationship are determined based on the first calibration temperature, the first calibration current, the first temperature compensation current, the second calibration temperature, the second calibration current, and the second temperature compensation current. The basic relationship characterizes the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature.
[0080] Substituting the proportionality coefficient and offset coefficient into the basic equation, we obtain the relationship between resistance temperature and current deviation.
[0081] refer to Figure 1 The operating power supply 300, the working load 200, and the sampling resistor 400 are connected in series, thereby converting the current flowing through the working load 200 into the current flowing through the sampling resistor 400. The sampling system 100 includes a voltage acquisition unit, a temperature acquisition unit, and a data processing unit. The voltage acquisition unit can acquire the detection voltage across the sampling resistor 400 and calculate the theoretical detection current using the detection voltage and the theoretical resistance of the sampling resistor 400. This theoretical detection current does not consider the influence of temperature on the resistance value of the sampling resistor 400, and therefore has a certain error. The temperature acquisition unit can acquire the resistance temperature of the sampling resistor 400, which is convenient for subsequent current correction using the resistance temperature. In some embodiments, the temperature acquisition unit can use a surface-mount thermistor. By attaching the surface-mount thermistor to the sampling resistor 400, the resistance temperature of the sampling resistor 400 can be acquired.
[0082] Based on the above system structure, embodiments of the present invention will be described.
[0083] In this embodiment of the invention, after detecting the resistance temperature and the detection voltage of the sampling resistor 400, the theoretical detection current is calculated using the detection voltage and the theoretical resistance of the sampling resistor 400. Then, the temperature deviation correction current is obtained using the theoretical detection current and the resistance temperature based on the relationship between resistance temperature and current deviation. Finally, the actual operating current flowing through the working load 200 is determined using the temperature deviation correction current and the theoretical detection current. The key to obtaining the temperature deviation correction current in this embodiment of the invention lies in obtaining the relationship between resistance temperature and current deviation. The process of obtaining this relationship is further described below.
[0084] refer to Figure 3 Assume the actual current flowing through the sampling resistor 400Ω is I. S , then I S =I AD +I T , among which, I AD To theoretically detect the current, I T Current for temperature deviation correction;
[0085] Through actual measurements, the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature can be established as the basic relationship: I T =I AD *T*K+B, where T is the resistance temperature, K is the proportionality coefficient, and B is the offset coefficient. In the basic formula, the resistance temperature T can be measured, and I... ADI can be calculated using the detected voltage acquired by the voltage acquisition unit. T It can be done through I S with I AD The calculation yields, where I S The current flowing through the sampling resistor 400Ω can be directly obtained by using an external current detection device.
[0086] Considering that there are two undetermined coefficients, the proportional coefficient and the offset coefficient, in the basic relational formula, two different relational formulas can be obtained by adjusting the sampling resistor 400 to two different working environments. Then, the proportional coefficient and the offset coefficient can be determined by analyzing the two relational formulas. In this embodiment of the invention, the first working environment is set as follows: by adjusting the output of the working power supply 300 to the first actual current and adjusting the ambient temperature to the first ambient temperature, the resistance temperature of the sampling resistor 400 reaches the first calibration temperature. The second working environment is set as follows: by adjusting the output of the working power supply 300 to the second actual current and adjusting the ambient temperature to the second ambient temperature, the resistance temperature of the sampling resistor 400 reaches the second calibration temperature.
[0087] In the first operating environment, the detection voltage acquired by the voltage acquisition unit is obtained, and the first calibration current I is calculated using the detection voltage and the theoretical resistance of the sampling resistor 400Ω. AD1 Simultaneously, an external current detection device is used to detect the first actual current, and then the first temperature compensation current I can be calculated using the first actual current and the first calibration current. T1 The first calibration temperature T1 can be directly measured by the temperature detection unit, thus ensuring that only two undetermined coefficients, the proportional coefficient and the offset coefficient, exist in the basic relationship, resulting in the first relationship: I T1 =I AD1 *T1*K+B.
[0088] In the second operating environment, the detection voltage acquired by the voltage acquisition unit is obtained, and the second calibration current I is calculated using the detection voltage and the theoretical resistance of the sampling resistor 400Ω. AD2 Simultaneously, an external current detection device is used to detect the second actual current, and then the second temperature compensation current I can be calculated using the second actual current and the second calibration current. T2 The second calibration temperature T2 can be directly measured by the temperature detection unit, thus ensuring that only two undetermined coefficients, the proportional coefficient and the offset coefficient, exist in the basic relationship, thereby obtaining the second relationship: I T2 =I AD2 *T2*K+B.
[0089] By solving the system of equations 1 and 2 simultaneously, the proportionality coefficient and the offset coefficient can be analytically determined. The proportionality coefficient is:
[0090] {(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]},
[0091] The offset coefficient is:
[0092] {I T1 -{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}*I AD *T1},
[0093] By substituting the proportional coefficient and offset coefficient back into the basic equation, the final relationship between resistance temperature and current deviation can be obtained. Once this relationship is obtained, the temperature deviation correction current can be quickly calculated after obtaining the resistance temperature and the theoretical detection current.
[0094] The high-current sampling method of this invention pre-obtains the relationship between resistance temperature and current deviation, thus understanding the correspondence between temperature changes and current changes. By acquiring the resistance temperature of the sampling resistor 400 and obtaining the theoretical detection current, a temperature deviation correction current can be derived. This correction current is then used to correct for the actual operating current. This high-current sampling method incorporates the concept of temperature compensation and provides a method for determining the proportionality coefficient and offset coefficient, thereby ensuring the accuracy of the final detected and calculated actual operating current and eliminating errors caused by temperature changes in the sampling resistor 400.
[0095] In some embodiments, adjusting the first actual current output by the power supply 300 includes:
[0096] Adjust the output current of the power supply 300, and at the same time use a current detection device to detect the output current of the power supply 300 until the power supply 300 outputs the first actual current.
[0097] The power supply 300 itself cannot detect the current flowing through the sampling resistor 400. In order to ensure that the power supply 300 can output the first actual current, an external current detection device can be used to detect the output current of the power supply 300 in real time until the output current is the first actual current.
[0098] In some embodiments, adjusting the output second actual current of the operating power supply 300 includes:
[0099] Adjust the output current of the power supply 300, and at the same time use a current detection device to detect the output current of the power supply 300 until the power supply 300 outputs the second actual current.
[0100] The power supply 300 itself cannot detect the current flowing through the sampling resistor 400. In order to ensure that the power supply 300 can output the second actual current, an external current detection device can be used to detect the output current of the power supply 300 in real time until the output current is the second actual current.
[0101] In some embodiments, the theoretical detection current calculated based on 20% of the full scale of the voltage acquisition unit corresponds to the first actual current, and the theoretical detection current calculated based on 80% of the full scale of the voltage acquisition unit corresponds to the second actual current. The first calibration temperature is 20% of the higher threshold of the preset operating ambient temperature of the sampling resistor 400, and the second calibration temperature is 80% of the higher threshold of the preset operating ambient temperature of the sampling resistor 400.
[0102] The first and second actual currents are set according to the detection range of the voltage acquisition unit. It can be understood that there is a correspondence between the detection voltage detected by the voltage acquisition unit and the theoretical detection current calculated by combining Ohm's law. Therefore, the full scale of the current can actually correspond to the full scale of the voltage. In this embodiment, 20% and 80% of the full scale are selected as two measurement points. These two measurement points can effectively ensure the accuracy of the detection.
[0103] It should be noted that changes in current will cause changes in the temperature of the sampling resistor 400, and the higher the current, the higher the temperature. Considering the temperature fluctuation range of the sampling resistor 400 in actual use (that is, the upper limit of the temperature fluctuation range can be determined as the preset high threshold of the ambient temperature), two measurement points are determined. Here, 20% and 80% are also selected as the two measurement points, and they correspond to the first and second actual currents mentioned above, thus obtaining two working environments.
[0104] In some embodiments, the relationship between resistance temperature and current deviation is as follows:
[0105] I T =I AD *T*{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}+{I T1 -{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}
[0106] *I AD *T1},
[0107] In the formula, I T For temperature deviation correction current, I T1 For the first temperature compensation current, I T2 For the second temperature compensation current, I AD To theoretically detect the current, I AD1 For the first rated current, I AD2 T is the first calibration current, T is the resistance temperature, T1 is the first calibration temperature, and T2 is the second calibration temperature.
[0108] After substituting the proportional coefficient and offset coefficient into the basic formula, the relationship between resistance temperature and current deviation can be obtained. Using this relationship, the temperature deviation correction current can be quickly obtained after the theoretical detection current and resistance temperature are obtained through measurement and calculation.
[0109] This invention also provides a high-current sampling device, which includes a temperature acquisition module, a voltage acquisition module, a theoretical current calculation module, a corrected current acquisition module, and a current output module.
[0110] Temperature acquisition module, used to acquire the resistance temperature collected by the temperature acquisition unit;
[0111] The voltage acquisition module is used to acquire the detection voltage collected by the voltage acquisition unit;
[0112] The theoretical current calculation module is used to obtain the theoretical detection current based on the detection voltage and the theoretical resistance of the sampling resistor 400.
[0113] The corrected current acquisition module is used to obtain the temperature deviation corrected current based on the theoretical detection current, resistance temperature, and the pre-acquired relationship between resistance temperature and current deviation.
[0114] The current output module is used to obtain the actual operating current flowing through the 200Ω workload by correcting the current based on the temperature deviation and the theoretically detected current.
[0115] The relationship between resistance temperature and current deviation is obtained through the following steps:
[0116] Adjust the output of the working power supply 300 to the first actual current, adjust the ambient temperature to the first ambient temperature, so that the resistance temperature of the sampling resistor 400 reaches the first calibration temperature, and obtain the first calibration voltage of the sampling resistor 400 collected by the voltage acquisition unit.
[0117] The first calibration current is determined based on the first calibration voltage and the theoretical resistance of the sampling resistor 400.
[0118] The first temperature compensation current is determined based on the first actual current and the first calibration current.
[0119] Adjust the output of the working power supply 300 to the second actual current, adjust the ambient temperature to the second ambient temperature, so that the resistance temperature of the sampling resistor 400 reaches the second calibration temperature, and obtain the second calibration voltage of the sampling resistor 400 collected by the voltage acquisition unit.
[0120] The second calibration current is determined based on the second calibration voltage and the theoretical resistance of the sampling resistor 400.
[0121] The second temperature compensation current is determined based on the second actual current and the second calibration current.
[0122] The proportional coefficient and offset coefficient of the pre-obtained basic relationship are determined based on the first calibration temperature, the first calibration current, the first temperature compensation current, the second calibration temperature, the second calibration current, and the second temperature compensation current. The basic relationship characterizes the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature.
[0123] Substituting the proportionality coefficient and offset coefficient into the basic equation, we obtain the relationship between resistance temperature and current deviation.
[0124] refer to Figure 1 The operating power supply 300, the working load 200, and the sampling resistor 400 are connected in series, thereby converting the current flowing through the working load 200 into the current flowing through the sampling resistor 400. The sampling system 100 includes a voltage acquisition unit, a temperature acquisition unit, and a data processing unit. The voltage acquisition unit can acquire the detection voltage across the sampling resistor 400 and calculate the theoretical detection current using the detection voltage and the theoretical resistance of the sampling resistor 400. This theoretical detection current does not consider the influence of temperature on the resistance value of the sampling resistor 400, and therefore has a certain error. The temperature acquisition unit can acquire the resistance temperature of the sampling resistor 400, which is convenient for subsequent current correction using the resistance temperature. In some embodiments, the temperature acquisition unit can use a surface-mount thermistor. By attaching the surface-mount thermistor to the sampling resistor 400, the resistance temperature of the sampling resistor 400 can be acquired.
[0125] Based on the above system structure, embodiments of the present invention will be described.
[0126] In this embodiment of the invention, after detecting the resistance temperature and the detection voltage of the sampling resistor 400, the theoretical detection current is calculated using the detection voltage and the theoretical resistance of the sampling resistor 400. Then, the temperature deviation correction current is obtained using the theoretical detection current and the resistance temperature based on the relationship between resistance temperature and current deviation. Finally, the actual operating current flowing through the working load 200 is determined using the temperature deviation correction current and the theoretical detection current. The key to obtaining the temperature deviation correction current in this embodiment of the invention lies in obtaining the relationship between resistance temperature and current deviation. The process of obtaining this relationship is further described below.
[0127] Assume the actual current flowing through the sampling resistor 400Ω is I S , then I S =I AD +I T , among which, I AD To theoretically detect the current, I T Current for temperature deviation correction;
[0128] Through actual measurements, the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature can be established as the basic relationship: I T =I AD *T*K+B, where T is the resistance temperature, K is the proportionality coefficient, and B is the offset coefficient. In the basic formula, the resistance temperature T can be measured, and I... AD I can be calculated using the detected voltage acquired by the voltage acquisition unit. T It can be done through I S with I AD The calculation yields, where I S The current flowing through the sampling resistor 400Ω can be directly obtained by using an external current detection device.
[0129] Considering that there are two undetermined coefficients, the proportional coefficient and the offset coefficient, in the basic relational formula, two different relational formulas can be obtained by adjusting the sampling resistor 400 to two different working environments. Then, the proportional coefficient and the offset coefficient can be determined by analyzing the two relational formulas. In this embodiment of the invention, the first working environment is set as follows: by adjusting the output of the working power supply 300 to the first actual current and adjusting the ambient temperature to the first ambient temperature, the resistance temperature of the sampling resistor 400 reaches the first calibration temperature. The second working environment is set as follows: by adjusting the output of the working power supply 300 to the second actual current and adjusting the ambient temperature to the second ambient temperature, the resistance temperature of the sampling resistor 400 reaches the second calibration temperature.
[0130] In the first operating environment, the detection voltage acquired by the voltage acquisition unit is obtained, and the first calibration current I is calculated using the detection voltage and the theoretical resistance of the sampling resistor 400Ω. AD1 Simultaneously, an external current detection device is used to detect the first actual current, and then the first temperature compensation current I can be calculated using the first actual current and the first calibration current. T1 The first calibration temperature T1 can be directly measured by the temperature detection unit, thus ensuring that only two undetermined coefficients, the proportional coefficient and the offset coefficient, exist in the basic relationship, resulting in the first relationship: I T1 =I AD1 *T1*K+B.
[0131] In the second operating environment, the detection voltage acquired by the voltage acquisition unit is obtained, and the second calibration current I is calculated using the detection voltage and the theoretical resistance of the sampling resistor 400Ω. AD2 Simultaneously, an external current detection device is used to detect the second actual current, and then the second temperature compensation current I can be calculated using the second actual current and the second calibration current. T2 The second calibration temperature T2 can be directly measured by the temperature detection unit, thus ensuring that only two undetermined coefficients, the proportional coefficient and the offset coefficient, exist in the basic relationship, thereby obtaining the second relationship: I T2 =I AD2 *T2*K+B.
[0132] By solving the system of equations 1 and 2 simultaneously, the proportionality coefficient and the offset coefficient can be analytically determined. The proportionality coefficient is:
[0133] {(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]},
[0134] The offset coefficient is:
[0135] {I T1 -{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}*I AD *T1},
[0136] By substituting the proportional coefficient and offset coefficient back into the basic equation, the final relationship between resistance temperature and current deviation can be obtained. Once this relationship is obtained, the temperature deviation correction current can be quickly calculated after obtaining the resistance temperature and the theoretical detection current.
[0137] The high-current sampling device of this invention pre-obtains the relationship between resistance temperature and current deviation, thus understanding the correspondence between temperature and current changes. It then collects the resistance temperature of the sampling resistor 400 and obtains the theoretical detection current, thereby deriving a temperature deviation correction current. This correction current is then used to correct for the actual operating current. This high-current sampling device incorporates the concept of temperature compensation and provides a method for determining the proportionality coefficient and offset coefficient, ensuring the accuracy of the final detected and calculated actual operating current and eliminating errors caused by temperature changes in the sampling resistor 400.
[0138] In some embodiments, adjusting the first actual current output by the power supply 300 includes:
[0139] Adjust the output current of the power supply 300, and at the same time use a current detection device to detect the output current of the power supply 300 until the power supply 300 outputs the first actual current.
[0140] The power supply 300 itself cannot detect the current flowing through the sampling resistor 400. In order to ensure that the power supply 300 can output the first actual current, an external current detection device can be used to detect the output current of the power supply 300 in real time until the output current is the first actual current.
[0141] In some embodiments, adjusting the output second actual current of the operating power supply 300 includes:
[0142] Adjust the output current of the power supply 300, and at the same time use a current detection device to detect the output current of the power supply 300 until the power supply 300 outputs the second actual current.
[0143] The power supply 300 itself cannot detect the current flowing through the sampling resistor 400. In order to ensure that the power supply 300 can output the second actual current, an external current detection device can be used to detect the output current of the power supply 300 in real time until the output current is the second actual current.
[0144] In some embodiments, the theoretical detection current calculated based on 20% of the full scale of the voltage acquisition unit corresponds to the first actual current, and the theoretical detection current calculated based on 80% of the full scale of the voltage acquisition unit corresponds to the second actual current. The first calibration temperature is 20% of the higher threshold of the preset operating ambient temperature of the sampling resistor 400, and the second calibration temperature is 80% of the higher threshold of the preset operating ambient temperature of the sampling resistor 400.
[0145] The first and second actual currents are set according to the detection range of the voltage acquisition unit. It can be understood that there is a correspondence between the detection voltage detected by the voltage acquisition unit and the theoretical detection current calculated by combining Ohm's law. Therefore, the full scale of the current can actually correspond to the full scale of the voltage. In this embodiment, 20% and 80% of the full scale are selected as two measurement points. These two measurement points can effectively ensure the accuracy of the detection.
[0146] It should be noted that changes in current will cause changes in the temperature of the sampling resistor 400, and the higher the current, the higher the temperature. Considering the temperature fluctuation range of the sampling resistor 400 in actual use (that is, the upper limit of the temperature fluctuation range can be determined as the preset high threshold of the ambient temperature), two measurement points are determined. Here, 20% and 80% are also selected as the two measurement points, and they correspond to the first and second actual currents mentioned above, thus obtaining two working environments.
[0147] In some embodiments, the relationship between resistance temperature and current deviation is as follows:
[0148] I T =I AD *T*{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}+{I T1 -{(I T1 -I T2 ) / [(I AD1 *T1)-(I AD2 *T2)]}
[0149] *I AD *T1},
[0150] In the formula, I T For temperature deviation correction current, I T1 For the first temperature compensation current, I T2 For the second temperature compensation current, I AD To theoretically detect the current, I AD1 For the first rated current, I AD2 T is the first calibration current, T is the resistance temperature, T1 is the first calibration temperature, and T2 is the second calibration temperature.
[0151] After substituting the proportional coefficient and offset coefficient into the basic formula, the relationship between resistance temperature and current deviation can be obtained. Using this relationship, the temperature deviation correction current can be quickly obtained after the theoretical detection current and resistance temperature are obtained through measurement and calculation.
[0152] Furthermore, one embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or control module, causing the processor to perform the high-current sampling method described above, for example, the method described above.
[0153] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which may include computer storage media or non-transitory media and communication media or transient media. As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc DVD or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0154] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.
Claims
1. A high-current sampling method, characterized in that, The system is applied to a sampling system, which includes a voltage acquisition unit and a temperature acquisition unit. The voltage acquisition unit is used to acquire the detection voltage of the sampling resistor, and the temperature acquisition unit is used to acquire the resistance temperature of the sampling resistor. The sampling resistor is connected in series with the working load and the working power supply. The high-current sampling method includes: Obtain the resistance temperature collected by the temperature acquisition unit; The voltage detected by the voltage acquisition unit is obtained; The theoretical detection current is obtained based on the detection voltage and the theoretical resistance of the sampling resistor; The temperature deviation correction current is obtained based on the theoretical detection current, the resistance temperature, and the pre-obtained relationship between resistance temperature and current deviation. The actual operating current flowing through the working load is obtained based on the temperature deviation correction current and the theoretical detection current. The relationship between the resistance temperature and the current deviation is obtained through the following steps: Adjust the output current of the working power supply to the first actual current, adjust the ambient temperature to the first ambient temperature, so that the resistance temperature of the sampling resistor reaches the first calibration temperature, and obtain the first calibration voltage of the sampling resistor collected by the voltage acquisition unit. The first calibration current is determined based on the first calibration voltage and the theoretical resistance of the sampling resistor; The first temperature compensation current is determined based on the first actual current and the first calibration current. Adjust the output of the working power supply to the second actual current, adjust the ambient temperature to the second ambient temperature, so that the resistance temperature of the sampling resistor reaches the second calibration temperature, and obtain the second calibration voltage of the sampling resistor collected by the voltage acquisition unit; The second calibration current is determined based on the second calibration voltage and the theoretical resistance of the sampling resistor; The second temperature compensation current is determined based on the second actual current and the second calibration current; The proportional coefficient and offset coefficient of the pre-obtained basic relationship are determined based on the first calibration temperature, the first calibration current, the first temperature compensation current, the second calibration temperature, the second calibration current, and the second temperature compensation current. The basic relationship represents the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature. Substituting the proportionality coefficient and the offset coefficient into the basic relationship, the relationship between resistance temperature and current deviation is obtained. The relationship between the resistance temperature and the current deviation is as follows: I T =I AD T {(I T1 -I T2 ) / [(I AD1 T1)- (I AD2 T2)]}+{I T1 -{(I T1 -I T2 ) / [(I AD1 T1 )- (I AD2 T2)]} I AD T1}, In the formula, I T For the temperature deviation correction current, I T1 For the first temperature compensation current, I T2 For the second temperature compensation current, I AD For the theoretical detection current, I AD1 For the first calibration current, I AD2 T is the first calibration current, T is the temperature of the resistor, T1 is the first calibration temperature, and T2 is the second calibration temperature.
2. The high-current sampling method according to claim 1, characterized in that, The adjustment of the first actual current output by the working power supply includes: Adjust the output current of the power supply, and simultaneously use a current detection device to detect the output current of the power supply until the power supply outputs the first actual current.
3. The high-current sampling method according to claim 1, characterized in that, Adjusting the output of the second actual current of the working power supply includes: Adjust the output current of the power supply while simultaneously using a current detection device to detect the output current of the power supply until the power supply outputs the second actual current.
4. The high-current sampling method according to claim 3, characterized in that, The theoretical detection current calculated based on 20% of the full scale of the voltage acquisition unit corresponds to the first actual current, and the theoretical detection current calculated based on 80% of the full scale of the voltage acquisition unit corresponds to the second actual current.
5. The high-current sampling method according to claim 1, characterized in that, The first calibration temperature is 20% of the upper threshold of the preset operating ambient temperature of the sampling resistor, and the second calibration temperature is 80% of the upper threshold of the preset operating ambient temperature of the sampling resistor.
6. A high-current sampling device, characterized in that, The system is applied to a sampling system, which includes a voltage acquisition unit and a temperature acquisition unit. The voltage acquisition unit is used to acquire the detection voltage of the sampling resistor, and the temperature acquisition unit is used to acquire the resistance temperature of the sampling resistor. The sampling resistor is connected in series with the working load and the working power supply. The high-current sampling device includes: A temperature acquisition module is used to acquire the resistance temperature collected by the temperature acquisition unit; A voltage acquisition module is used to acquire the detected voltage collected by the voltage acquisition unit; The theoretical current calculation module is used to obtain the theoretical detection current based on the detection voltage and the theoretical resistance of the sampling resistor; The corrected current acquisition module is used to obtain the temperature deviation corrected current based on the theoretical detection current, the resistance temperature, and the pre-acquired relationship between the resistance temperature and the current deviation. The current output module is used to obtain the actual operating current flowing through the working load based on the temperature deviation correction current and the theoretical detection current. The relationship between the resistance temperature and the current deviation is obtained through the following steps: Adjust the output current of the working power supply to the first actual current, adjust the ambient temperature to the first ambient temperature, so that the resistance temperature of the sampling resistor reaches the first calibration temperature, and obtain the first calibration voltage of the sampling resistor collected by the voltage acquisition unit. The first calibration current is determined based on the first calibration voltage and the theoretical resistance of the sampling resistor; The first temperature compensation current is determined based on the first actual current and the first calibration current. Adjust the output of the working power supply to the second actual current, adjust the ambient temperature to the second ambient temperature, so that the resistance temperature of the sampling resistor reaches the second calibration temperature, and obtain the second calibration voltage of the sampling resistor collected by the voltage acquisition unit; The second calibration current is determined based on the second calibration voltage and the theoretical resistance of the sampling resistor; The second temperature compensation current is determined based on the second actual current and the second calibration current; The proportional coefficient and offset coefficient of the pre-obtained basic relationship are determined based on the first calibration temperature, the first calibration current, the first temperature compensation current, the second calibration temperature, the second calibration current, and the second temperature compensation current. The basic relationship represents the positive correlation between the temperature deviation correction current and the product of the theoretical detection current and the resistance temperature. Substituting the proportionality coefficient and the offset coefficient into the basic relationship, the relationship between resistance temperature and current deviation is obtained. The relationship between the resistance temperature and the current deviation is as follows: I T =I AD T {(I T1 -I T2 ) / [(I AD1 T1)- (I AD2 T2)]}+{I T1 -{(I T1 -I T2 ) / [(I AD1 T1 )- (I AD2 T2)]} I AD T1}, In the formula, I T For the temperature deviation correction current, I T1 For the first temperature compensation current, I T2 For the second temperature compensation current, I AD For the theoretical detection current, I AD1 For the first calibration current, I AD2 T is the first calibration current, T is the temperature of the resistor, T1 is the first calibration temperature, and T2 is the second calibration temperature.
7. The high-current sampling device according to claim 6, characterized in that, The theoretical detection current calculated based on 20% of the full scale of the voltage acquisition unit corresponds to the first actual current, and the theoretical detection current calculated based on 80% of the full scale of the voltage acquisition unit corresponds to the second actual current.
8. The high-current sampling device according to claim 6, characterized in that, The first calibration temperature is 20% of the upper threshold of the preset operating ambient temperature of the sampling resistor, and the second calibration temperature is 80% of the upper threshold of the preset operating ambient temperature of the sampling resistor.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the high-current sampling method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Error correction method in platinum resistor temperature measurement system
CN106989847A
Winding resistance-based motor winding temperature detection method
CN109883575A
