Current measurement method, correction method and device of current sensor
By using the duty cycle and resistance value in the bridge inverter circuit to calculate the actual current value of the current sensor and performing fitting correction, the complexity of the current sensor correction method and the access point problem in the existing technology are solved, and the Efficient current measurement and precise correction.
Patent Information
- Application Number
- CN202411058299.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-29
AI Technical Summary
The existing current sensor calibration method requires the introduction of an additional current source, resulting in a complex circuit structure and cumbersome control logic, making it difficult to find the current source access point, and increasing the difficulty of implementation.
By using the duty cycle of the first switch tube and the second switch tube, the DC power supply voltage and the resistance value of the first resistor in the bridge inverter circuit, the current flowing through the first inductor is calculated as the value of the branch where the current sensor is located. The actual current value is corrected by fitting parameters, which simplifies the circuit structure and control logic.
There is no need to introduce an additional current source, which simplifies the circuit structure and control logic, improves the efficiency and correction accuracy of current sensor current measurement, and avoids short-circuit damage problems.
Smart Images

Figure CN118858734A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of current sensor calibration, and in particular to a current measurement method, a calibration method and a device for a current sensor. Background Art
[0002] As an important component of power electronic devices, current sensors are responsible for current detection and related overcurrent protection, closed-loop control sampling and other functions in power electronic devices. The accuracy of current sensors determines the normal operation of circuit functions. However, due to the limitations of the manufacturing process of current sensors, there is an inevitable error between the measured value of the current sensor and the true value of the current of the measured circuit, and the error is usually linear. By calculating the linear error and making a linear correction to the current measurement value of the current sensor, the current sensor can be calibrated.
[0003] In the existing current sensor calibration method, when measuring the current of the branch where the current sensor is located, it is necessary to use a current source to inject multiple sets of currents into both ends of the wire where the current sensor is located, so as to obtain the measurement values of the multiple sets of current sensors, and correspondingly obtain the true values of the currents of the wires where the multiple sets of current sensors are located, so as to calculate the linear error between the measured value and the true value and apply linear correction. However, the above correction method requires the use of an additional current source, and when using an additional current source, it is necessary to pay attention to finding and determining the current source access point, which is relatively cumbersome, and often requires additional measurement ports, which makes the circuit structure and control logic complicated, thereby increasing the difficulty of implementing the existing current sensor calibration method. Summary of the invention
[0004] The present application provides a current measurement method, a correction method and a device for a current sensor to solve the technical problem in the prior art that an additional current source needs to be introduced when measuring the current of a branch where the current sensor is located.
[0005] According to a first aspect of an embodiment of the present application, a current measurement method of a current sensor is provided, which is applied to a bridge inverter circuit, wherein the bridge inverter circuit includes a first switch tube, a second switch tube, a first inductor and a first resistor;
[0006] The first port of the first switch tube is connected to the positive electrode of the DC power supply; the second port of the first switch tube is connected to the first port of the second switch tube and the first port of the first inductor;
[0007] The second port of the second switch tube is connected to the negative electrode of the DC power supply; the second port of the first inductor is connected to the first port of the first resistor; the second port of the first resistor is connected to the negative electrode of the DC power supply;
[0008] The current sensor is located at the first port of the first inductor; the first switch tube and the second switch tube are driven by corresponding driving circuits;
[0009] The current measurement method of the current sensor includes: obtaining the duty cycle of the first switch tube; calculating the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply and the resistance value of the first resistor, and using the current as the actual current value of the branch where the current sensor is located.
[0010] The current measurement method of the current sensor of the present application is applied to a bridge inverter circuit, and the bridge inverter circuit includes a first switch tube, a second switch tube, a first inductor and a first resistor; the current measurement method calculates the current flowing through the first inductor through the duty cycle of the first switch tube, the voltage of the DC power supply and the resistance value of the first resistor, and uses the current as the actual current value of the branch where the current sensor is located. Compared with the prior art, when measuring the current of the branch where the current sensor is located, the present application does not need to introduce an additional current source, thus avoiding the problem of the prior art that it is difficult to find an access point for an additional current source, and simplifies the control logic of the circuit. At the same time, it only needs to pass through the first inductor and the first resistor, and calculate the actual current value of the branch where the current sensor is located according to the duty cycle of the first switch tube, which simplifies the circuit structure, so that the current of the branch where the current sensor is located can be measured more efficiently.
[0011] In certain embodiments of the present application, when the first switch tube and the second switch tube are driven by corresponding drive circuits, a drive level of the first switch tube is interlocked with a drive level of the second switch tube.
[0012] The present application interlocks the driving levels of the first switch tube and the second switch tube to ensure that at any time, only one of the first switch tube and the second switch tube is turned on, thereby avoiding short-circuit damage caused by the two switch tubes being turned on at the same time.
[0013] In some implementations of the present application, obtaining the duty cycle of the first switch tube specifically includes:
[0014] Acquiring a driving signal of a driving circuit corresponding to the first switch tube;
[0015] The duty cycle of the first switch tube is calculated according to the driving signal.
[0016] The present application obtains the driving signal of the driving circuit corresponding to the first switching tube, thereby calculating the duty cycle of the first switching tube, thereby ensuring that the obtained duty cycle matches the current circuit, thereby providing support for subsequent calculation of the current flowing through the first inductor.
[0017] In certain embodiments of the present application, calculating the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply, and the resistance value of the first resistor specifically includes:
[0018] The current of the first inductor is specifically:
[0019]
[0020] Where, I is the current of the first inductor, D is the duty cycle of the first switch, V i is the voltage of the DC power supply, and R is the resistance of the first resistor.
[0021] According to a second aspect of the embodiments of the present application, a method for calibrating a current sensor is provided, comprising:
[0022] By using a plurality of preset duty cycles and based on the current measurement method of the current sensor as described in the present application, a plurality of actual current values of the branch where the current sensor is located are obtained;
[0023] Corresponding to the multiple actual current values, obtaining multiple measured current values of the current sensor;
[0024] Fitting the multiple actual current values and the multiple measured current values to obtain a first fitting parameter;
[0025] The current sensor is calibrated according to the first fitting parameter.
[0026] The present application first obtains multiple actual current values of the branch where the current sensor is located according to multiple preset duty cycles, then obtains multiple measured current values accordingly, and performs fitting to obtain a first fitting parameter, thereby improving the correction accuracy when the current sensor is calibrated according to the first fitting parameter.
[0027] In certain embodiments of the present application, fitting the multiple actual current values and the multiple measured current values to obtain a first fitting parameter specifically includes:
[0028] Based on the least square method, linear fitting is performed on the multiple actual current values and the multiple measured current values to obtain a first fitting parameter.
[0029] The present application performs linear fitting on multiple actual current values and multiple measured current values through the least squares method, which can reduce fitting errors and improve the confidence of the first fitting parameters, thereby improving the correction accuracy when the current sensor is calibrated according to the first fitting parameters.
[0030] According to a third aspect of the embodiments of the present application, there is provided a current measuring device of a current sensor, comprising a duty cycle acquisition module and a current calculation module;
[0031] The duty cycle acquisition module is used to acquire the duty cycle of the first switch tube;
[0032] The current calculation module is used to calculate the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply and the resistance value of the first resistor, and use the current as the actual current value of the branch where the current sensor is located.
[0033] In certain embodiments of the present application, the duty cycle acquisition module includes a driving signal acquisition unit and a duty cycle calculation unit;
[0034] The driving signal acquisition unit is used to acquire a driving signal of a driving circuit corresponding to the first switch tube;
[0035] The duty cycle calculation unit is used to calculate the duty cycle of the first switch tube according to the driving signal.
[0036] In some embodiments of the present application, when the current calculation module calculates the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply and the resistance value of the first resistor, specifically:
[0037] The current of the first inductor is specifically:
[0038]
[0039] Where, I is the current of the first inductor, D is the duty cycle of the first switch, V i is the voltage of the DC power supply, and R is the resistance of the first resistor.
[0040] The current measurement method of the current sensor of the present application is applied to a bridge inverter circuit, and the bridge inverter circuit includes a first switch tube, a second switch tube, a first inductor and a first resistor; the current measurement method calculates the current flowing through the first inductor through the duty cycle of the first switch tube, the voltage of the DC power supply and the resistance value of the first resistor, and uses the current as the actual current value of the branch where the current sensor is located. Compared with the prior art, when measuring the current of the branch where the current sensor is located, the present application does not need to introduce an additional current source, thus avoiding the problem of the prior art that it is difficult to find an access point for an additional current source, and simplifies the control logic of the circuit. At the same time, it only needs to pass through the first inductor and the first resistor, and calculate the actual current value of the branch where the current sensor is located according to the duty cycle of the first switch tube, which simplifies the circuit structure, so that the current of the branch where the current sensor is located can be measured more efficiently.
[0041] According to a fourth aspect of the embodiments of the present application, there is provided a current sensor calibration device, comprising an actual current acquisition module, a measured current acquisition module, a current fitting module and a sensor calibration module;
[0042] The actual current acquisition module is used to obtain multiple actual current values of the branch where the current sensor is located through multiple preset duty cycles based on the current measurement device of the current sensor as described in the present application;
[0043] The measured current acquisition module is used to obtain a plurality of measured current values of the current sensor corresponding to the plurality of actual current values;
[0044] The current fitting module is used to fit the multiple actual current values and the multiple measured current values to obtain a first fitting parameter;
[0045] The sensor calibration module is used to calibrate the current sensor according to the first fitting parameter.
[0046] In certain embodiments of the present application, the current fitting module includes a linear fitting unit;
[0047] The linear fitting unit is used to perform linear fitting on the multiple actual current values and the multiple measured current values based on the least square method to obtain a first fitting parameter.
[0048] The present application first obtains multiple actual current values of the branch where the current sensor is located according to multiple preset duty cycles, then obtains multiple measured current values accordingly, and performs fitting to obtain a first fitting parameter, thereby improving the correction accuracy when the current sensor is calibrated according to the first fitting parameter. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 : is a circuit diagram of a current measurement method of a current sensor shown in certain embodiments of the present application;
[0050] Figure 2 : is a flow chart of a current measurement method of a current sensor shown in certain embodiments of the present application;
[0051] Figure 3 : is a flow chart of a method for calibrating a current sensor according to certain embodiments of the present application;
[0052] Figure 4 : is a module structure diagram of a current measuring device of a current sensor shown in certain embodiments of the present application;
[0053] Figure 5 : is a module structure diagram of a current sensor calibration device shown in certain embodiments of the present application;
[0054] Figure 6 : is another circuit diagram of a current measurement method of a current sensor shown in certain embodiments of the present application;
[0055] Figure 7 : is another circuit schematic diagram of a current measurement method of a current sensor shown in certain embodiments of the present application. DETAILED DESCRIPTION
[0056] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below in conjunction with the accompanying drawings are exemplary and are only used to explain some embodiments of the present application, and should not be construed as limitations on the embodiments of the present application. Based on the embodiments shown in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0057] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, unless otherwise clearly and specifically defined, "multiple" and "several" mean two or more.
[0058] As an important component of electronic power devices, the accuracy of current sensors determines the performance limit and reliability of the circuits in which they are located, especially the sensitivity of the overcurrent protection function of the circuit. Due to the manufacturing process, there is an inevitable error between the measured value of the current sensor and the true value of the current of the measured circuit, and the error is usually a linear error. By calculating the linear error and making a linear correction to the current measurement value of the current sensor, the current sensor can be calibrated so that the current measurement value of the current sensor is close to the true value of the circuit current.
[0059] Duty Ratio: The duty ratio of a switch tube refers to the proportion of the power-on time of the switch tube relative to the total time in a pulse cycle. Usually, the duty ratio of the switch tube can be adjusted or changed by adjusting the driving pulse time of the driving circuit of the switch tube to change the driving signal of the driving circuit of the switch tube.
[0060] It should be understood that based on the characteristics of the bridge inverter circuit, the types of switch tubes throughout the present application include but are not limited to: metal oxide semiconductor field effect transistor MOSFET, insulated gate bipolar transistor IGBT, bipolar junction transistor BJT and high electron mobility transistor HEMT.
[0061] Based on the above technical background, the present application embodiment provides a current measurement method of a current sensor, which is applied to a bridge inverter circuit. Figure 1 , is a circuit diagram of the bridge inverter circuit, wherein the bridge inverter circuit includes a first switch tube 11, a second switch tube 12, a first inductor 15 and a first resistor 16;
[0062] The first port 111 of the first switch tube 11 is connected to the positive electrode DC+ of the DC power supply; the second port 112 of the first switch tube 11 is connected to the first port 121 of the second switch tube 12 and the first port 151 of the first inductor 15;
[0063] The second port 122 of the second switch tube 12 is connected to the negative electrode DC- of the DC power supply; the second port 152 of the first inductor 15 is connected to the first port 161 of the first resistor 16; the second port 162 of the first resistor 16 is connected to the negative electrode DC- of the DC power supply;
[0064] The first current sensor 17 is located at the first port 151 of the first inductor 15 ; the first switch tube 11 and the second switch tube 12 are driven by corresponding driving circuits.
[0065] In some embodiments of the present application, when the first switch tube 11 and the second switch tube 12 are driven by corresponding driving circuits, a driving level of the first switch tube 11 is interlocked with a driving level of the second switch tube 12 .
[0066] The present application interlocks the driving levels of the first switch tube and the second switch tube to ensure that at any time, only one of the first switch tube and the second switch tube is turned on, thereby avoiding short-circuit damage caused by the two switch tubes being turned on at the same time.
[0067] See also Figure 2 , is a flow chart of the current measurement method of the current sensor, including step S201 to step S202, each step is as follows:
[0068] Step S201: obtaining the duty cycle of the first switch tube.
[0069] In some implementations of the present application, obtaining the duty cycle of the first switch tube specifically includes:
[0070] Acquiring a driving signal of a driving circuit corresponding to the first switch tube;
[0071] The duty cycle of the first switch tube is calculated according to the driving signal.
[0072] The present application obtains the driving signal of the driving circuit corresponding to the first switching tube, thereby calculating the duty cycle of the first switching tube, thereby ensuring that the obtained duty cycle matches the current circuit, thereby providing support for subsequent calculation of the current flowing through the first inductor.
[0073] Step S202: Calculate the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply and the resistance value of the first resistor, and use the current as the actual current value of the branch where the current sensor is located.
[0074] In certain embodiments of the present application, calculating the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply, and the resistance value of the first resistor specifically includes:
[0075] The current of the first inductor is specifically:
[0076]
[0077] Where, I is the current of the first inductor, D is the duty cycle of the first switch, V i is the voltage of the DC power supply, and R is the resistance of the first resistor.
[0078] Please continue to refer to Figure 1 In some embodiments of the present application, the bridge inverter circuit is a full-bridge inverter circuit, the first switch tube 11 is the first bridge arm, the second switch tube 12 is the second bridge arm, and the intersection of the first bridge arm and the second bridge arm is the first AC port AC1; the voltage of the DC power supply is V i ; One end of the first inductor 15 is connected to the first AC port AC1, and the other end is connected to the negative electrode DC- of the DC power supply through the first resistor 16; the first current sensor 17 is located at the connection between the first inductor 15 and the first AC port AC1; the bridge inverter circuit also includes a third switch tube 13, a fourth switch tube 14 and a second current sensor 18; the third switch tube 13 is the third bridge arm, the fourth switch tube 14 is the fourth bridge arm, the third switch tube and the fourth switch tube are driven by the corresponding driving circuit, and the intersection of the third bridge arm and the fourth bridge arm is the second AC port AC2; the second current sensor 18 is located in the branch where the second AC port AC2 is located.
[0079] By applying the current measurement method of the current sensor described in the present application to the first switch tube 11, the second switch tube 12, the first inductor 15 and the first resistor 16, the current actual current value of the branch where the first current sensor 17 is located can be calculated through the duty cycle of the first switch tube, the voltage of the DC power supply and the resistance value of the first resistor. Similarly, by using the circuit layout of the first switch tube 11, the second switch tube 12, the first inductor 15 and the first resistor 16, a second inductor, a second resistor and a second current sensor 18 are added to the branch where the second AC port AC2 is located, and the current measurement method of the current sensor described in the present application is applied to the third switch tube 13, the fourth switch tube 14, the second inductor and the second resistor, the current actual current value of the branch where the second current sensor 18 is located can be calculated.
[0080] In some optional embodiments of the present application, the first inductor 15 may be an existing filter inductor in the power electronic device, an excitation inductor of a transformer, or an external inductor.
[0081] In some optional implementations of the present application, it is easy to know from the low resistance of the first inductor 15 that the first AC port AC1 can be connected at the first port of the first inductor 15 or at the second port of the first inductor 15 .
[0082] In certain embodiments of this application, please refer to Figure 6 The bridge inverter circuit is a half-bridge inverter circuit, including a fifth switch tube 61, a sixth switch tube 62, a first capacitor 63, a second capacitor 64, a third inductor 65 and a third resistor 66; wherein the fifth switch tube 61 is the first bridge arm, the sixth switch tube 62 is the second bridge arm, the first capacitor 63 is the third bridge arm, and the second capacitor 64 is the second bridge arm; the intersection of the first bridge arm and the second bridge arm is the first AC port AC1, and the intersection of the third bridge arm and the fourth bridge arm is the second AC port AC2; the voltage of the DC power supply is V i ;
[0083] The first port 611 of the fifth switch tube 61 is connected to the positive electrode DC+ of the DC power supply; the second port 612 of the fifth switch tube 61 is connected to the first port 621 of the sixth switch tube 62 and the first port 651 of the third inductor 65;
[0084] The second port 622 of the sixth switch tube 62 is connected to the negative electrode DC- of the DC power supply; the second port 652 of the third inductor 65 is connected to the first port 661 of the third resistor 66; the second port 662 of the third resistor 66 is connected to the negative electrode DC- of the DC power supply;
[0085] The third current sensor 67 is located at the first port 651 of the third inductor 65 , that is, at the connection between the third inductor 65 and the first AC port AC1 ; the fifth switch tube 61 and the sixth switch tube 62 are driven by corresponding driving circuits.
[0086] By applying the current measurement method of the current sensor described in the present application to the fifth switch tube 61, the sixth switch tube 62, the third inductor 65 and the third resistor 66, the current actual current value of the branch where the third current sensor 67 is located can be calculated through the duty cycle of the fifth switch tube, the voltage of the DC power supply and the resistance value of the third resistor.
[0087] In certain embodiments of this application, please refer to Figure 7 The bridge inverter circuit is a three-phase bridge inverter circuit, including a seventh switch tube 71, an eighth switch tube 72, a ninth switch tube 73, a tenth switch tube 74, an eleventh switch tube 7A, a twelfth switch tube 7B, a fourth inductor 75 and a fourth resistor 76; wherein the seventh switch tube 71 is a first bridge arm, the eighth switch tube 72 is a second bridge arm, the ninth switch tube 73 is a third bridge arm, the tenth switch tube 74 is a fourth bridge arm, the eleventh switch tube 7A is a fifth bridge arm, and the twelfth switch tube 7B is a sixth bridge arm; the intersection of the first bridge arm and the second bridge arm is the first AC port AC1, the intersection of the third bridge arm and the fourth bridge arm is the second AC port AC2, and the intersection of the fifth bridge arm and the sixth bridge arm is the third AC port AC3; the voltage of the DC power supply is V i ;
[0088] The first port 711 of the seventh switch tube 71 is connected to the positive electrode DC+ of the DC power supply; the second port 712 of the seventh switch tube 71 is connected to the first port 721 of the eighth switch tube 72 and the first port 751 of the fourth inductor 75;
[0089] The second port 722 of the eighth switch tube 72 is connected to the negative electrode DC- of the DC power supply; the second port 752 of the fourth inductor 75 is connected to the first port 761 of the fourth resistor 76; the second port 762 of the fourth resistor 76 is connected to the negative electrode DC- of the DC power supply;
[0090] The fourth current sensor 77 is located at the first port 751 of the fourth inductor 75, that is, at the connection between the fourth inductor 75 and the first AC port AC1; the fifth current sensor 78 is located at the branch where the second AC port AC2 is located; the sixth current sensor 79 is located at the branch where the third AC port AC3 is located; the seventh switch tube 71, the eighth switch tube 72, the ninth switch tube 73, the tenth switch tube 74, the eleventh switch tube 7A, and the twelfth switch tube 7B are driven by corresponding driving circuits.
[0091] By applying the current measurement method of the current sensor described in the present application to the seventh switch tube 71, the eighth switch tube 72, the fourth inductor 75 and the fourth resistor 76, the current actual current value of the branch where the fourth current sensor 77 is located can be calculated by the duty cycle of the seventh switch tube, the voltage of the DC power supply and the resistance value of the fourth resistor. Similarly, by the circuit layout of the seventh switch tube 71, the eighth switch tube 72, the fourth inductor 75 and the fourth resistor 76, a fifth inductor, a fifth resistor and a fifth current sensor 78 are added to the branch where the second AC port AC2 is located, and a sixth inductor, a sixth resistor and a sixth current sensor 79 are added to the branch where the third AC port AC3 is located, and the current measurement method of the current sensor described in the present application is applied to the ninth switch tube 73, the tenth switch tube 74, the fifth inductor and the fifth resistor; the eleventh switch tube 7A, the twelfth switch tube 7B, the sixth inductor and the sixth resistor, respectively, the current actual current value of the branch where the fifth current sensor 78 is located and the branch where the sixth current sensor 79 is located can be calculated.
[0092] The current measurement method of the current sensor of the present application is applied to a bridge inverter circuit, and the bridge inverter circuit includes a first switch tube, a second switch tube, a first inductor and a first resistor; the current measurement method calculates the current flowing through the first inductor through the duty cycle of the first switch tube, the voltage of the DC power supply and the resistance value of the first resistor, and uses the current as the actual current value of the branch where the current sensor is located. Compared with the prior art, when measuring the current of the branch where the current sensor is located, the present application does not need to introduce an additional current source, thus avoiding the problem of the prior art that it is difficult to find an access point for an additional current source, and simplifies the control logic of the circuit. At the same time, it only needs to pass through the first inductor and the first resistor, and calculate the actual current value of the branch where the current sensor is located according to the duty cycle of the first switch tube, which simplifies the circuit structure, so that the current of the branch where the current sensor is located can be measured more efficiently.
[0093] See also Figure 3 The present application also provides a method for calibrating a current sensor, including steps S301 to S304, each of which is as follows:
[0094] Step S301: obtaining a plurality of actual current values of the branch where the current sensor is located through a plurality of preset duty cycles based on the current measurement method of the current sensor as described in the present application.
[0095] Step S302: corresponding to the multiple actual current values, obtaining multiple measured current values of the current sensor.
[0096] Step S303: fitting the multiple actual current values and the multiple measured current values to obtain a first fitting parameter.
[0097] In certain embodiments of the present application, fitting the multiple actual current values and the multiple measured current values to obtain a first fitting parameter specifically includes:
[0098] Based on the least square method, linear fitting is performed on the multiple actual current values and the multiple measured current values to obtain a first fitting parameter.
[0099] Exemplarily, since the error between the measured current value and the actual current value is usually a linear error, when the multiple actual current values and the multiple measured current values are linearly fitted based on the least squares method, the first fitting parameter obtained is actually a binary group (a, b), a is the slope of the linear fit, and b is the intercept of the linear fit.
[0100] The present application performs linear fitting on multiple actual current values and multiple measured current values through the least squares method, which can reduce fitting errors and improve the confidence of the first fitting parameters, thereby improving the correction accuracy when the current sensor is calibrated according to the first fitting parameters.
[0101] Step S304: calibrating the current sensor according to the first fitting parameters.
[0102] Exemplarily, suppose the measured current value of the current sensor at a certain moment is x, the corrected current value is y, and the first fitting parameter is (a, b). Due to the manufacturing process limitations of the current sensor, there is usually a linear deviation between the measured current value of the current sensor and the actual current value of the circuit branch where it is located. In this case, the correction method for the current sensor is to directly perform linear correction on the measured current value to obtain the corrected current value: y=ax+b.
[0103] The present application first obtains multiple actual current values of the branch where the current sensor is located according to multiple preset duty cycles, then obtains multiple measured current values accordingly, and performs fitting to obtain a first fitting parameter, thereby improving the correction accuracy when the current sensor is calibrated according to the first fitting parameter.
[0104] Corresponding to the previous method, see Figure 4 , the embodiment of the present application provides a current measuring device of a current sensor, including a duty cycle acquisition module 410 and a current calculation module 420;
[0105] The duty cycle acquisition module 410 is used to acquire the duty cycle of the first switch tube;
[0106] The current calculation module 420 is used to calculate the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply and the resistance value of the first resistor, and use the current as the actual current value of the branch where the current sensor is located.
[0107] In some embodiments of the present application, the duty cycle acquisition module 410 includes a driving signal acquisition unit 411 and a duty cycle calculation unit 412;
[0108] The driving signal acquisition unit 411 is used to acquire a driving signal of a driving circuit corresponding to the first switch tube;
[0109] The duty cycle calculation unit 412 is used to calculate the duty cycle of the first switch tube according to the driving signal.
[0110] In some embodiments of the present application, when the current calculation module 420 calculates the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply and the resistance value of the first resistor, specifically:
[0111] The current of the first inductor is specifically:
[0112]
[0113] Where, I is the current of the first inductor, D is the duty cycle of the first switch, V i is the voltage of the DC power supply, and R is the resistance of the first resistor.
[0114] Corresponding to the previous method, see Figure 5 , the embodiment of the present application provides a current sensor calibration device, including an actual current acquisition module 510, a measured current acquisition module 520, a current fitting module 530 and a sensor calibration module 540;
[0115] The actual current acquisition module 510 is used to obtain multiple actual current values of the branch where the current sensor is located through multiple preset duty cycles based on the current measurement device of the current sensor as described in the present application;
[0116] The measured current acquisition module 520 is used to obtain a plurality of measured current values of the current sensor corresponding to the plurality of actual current values;
[0117] The current fitting module 530 is used to fit the multiple actual current values and the multiple measured current values to obtain a first fitting parameter;
[0118] The sensor calibration module 540 is used to calibrate the current sensor according to the first fitting parameters.
[0119] In certain embodiments of the present application, the current fitting module 530 includes a linear fitting unit 531;
[0120] The linear fitting unit 531 is used to perform linear fitting on the multiple actual current values and the multiple measured current values based on the least square method to obtain a first fitting parameter.
[0121] The present application first obtains multiple actual current values of the branch where the current sensor is located according to multiple preset duty cycles, then obtains multiple measured current values accordingly, and performs fitting to obtain a first fitting parameter, thereby improving the correction accuracy when the current sensor is calibrated according to the first fitting parameter.
[0122] The above are some implementation methods of the present application, and the purpose, technical scheme and beneficial effects of the present application are further described in detail. It should be clear that the above-mentioned partial implementation methods of the present application cannot be understood as limiting the present application. It is particularly pointed out that for those skilled in the art, any changes, modifications, equivalent substitutions and variations made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A current measurement method for a current sensor, characterized in that: Applicable to a bridge inverter circuit, the bridge inverter circuit comprising a first switching tube, a second switching tube, a first inductor and a first resistor; The first port of the first switching tube is connected to the positive electrode of the DC power supply; the second port of the first switching tube is connected to the first port of the second switching tube and the first port of the first inductor; The second port of the second switch is connected to the negative electrode of the DC power supply; the second port of the first inductor is connected to the first port of the first resistor; the second port of the first resistor is connected to the negative electrode of the DC power supply; The current sensor is located at the first port of the first inductor; The first switching tube and the second switching tube are driven by corresponding driving circuits; The current measurement method of the current sensor includes: obtaining a duty cycle of a first switching tube; The current flowing through the first inductor is calculated according to the duty cycle, the voltage of the DC power supply, and the resistance value of the first resistor, and the current is used as the actual current value of the branch where the current sensor is located.
2. The current measurement method of a current sensor according to claim 1, characterized in that: When the first switching tube and the second switching tube are driven by corresponding driving circuits, a driving level of the first switching tube is interlocked with a driving level of the second switching tube.
3. The current measurement method of a current sensor according to claim 1, characterized in that: The obtaining of the duty cycle of the first switching tube specifically includes: Obtaining a driving signal of a driving circuit corresponding to the first switching tube; The duty cycle of the first switching tube is calculated according to the driving signal.
4. The current measurement method of a current sensor according to claim 1, characterized in that: Calculating the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply, and the resistance of the first resistor specifically includes: The current of the first inductor is specifically: Where, I is the current of the first inductor, D is the duty cycle of the first switch tube, V i is the voltage of the DC power supply, and R is the resistance of the first resistor.
5. A method for calibrating a current sensor, characterized in that: include: Obtaining multiple actual current values of the branch where the current sensor is located by using multiple preset duty cycles based on the current measurement method of the current sensor according to any one of claims 1 to 4; Acquiring a plurality of measured current values of a current sensor corresponding to the plurality of actual current values; Fitting the multiple actual current values and the multiple measured current values to obtain a first fitting parameter; The current sensor is calibrated according to the first fitting parameter.
6. The method for calibrating a current sensor according to claim 5, wherein: The fitting of the multiple actual current values and the multiple measured current values to obtain a first fitting parameter specifically includes: Based on the least square method, linear fitting is performed on the multiple actual current values and the multiple measured current values to obtain a first fitting parameter.
7. A current measuring device of a current sensor, characterized in that: Including duty cycle acquisition module and current calculation module; The duty cycle acquisition module is used to acquire the duty cycle of the first switching tube; The current calculation module is used to calculate the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply and the resistance value of the first resistor, and use the current as the actual current value of the branch where the current sensor is located.
8. The current measuring device of a current sensor according to claim 7, characterized in that: The duty cycle acquisition module includes a driving signal acquisition unit and a duty cycle calculation unit; The driving signal acquiring unit is configured to acquire a driving signal of a driving circuit corresponding to the first switching transistor; The duty cycle calculation unit is used to calculate the duty cycle of the first switching tube according to the driving signal.
9. The current measuring device of a current sensor according to claim 7, characterized in that: When the current calculation module calculates the current flowing through the first inductor according to the duty cycle, the voltage of the DC power supply, and the resistance value of the first resistor, the current calculation module specifically performs the following steps: The current of the first inductor is specifically: Where, I is the current of the first inductor, D is the duty cycle of the first switch tube, V i is the voltage of the DC power supply, and R is the resistance of the first resistor.
10. A current sensor calibration device, characterized in that: It includes an actual current acquisition module, a measured current acquisition module, a current fitting module and a sensor correction module; The actual current acquisition module is configured to obtain a plurality of actual current values of the branch where the current sensor is located based on the current measuring device of the current sensor according to any one of claims 7 to 9 by using a plurality of preset duty cycles; The measured current acquisition module is configured to acquire a plurality of measured current values of the current sensor corresponding to the plurality of actual current values; The current fitting module is configured to fit the multiple actual current values and the multiple measured current values to obtain a first fitting parameter; The sensor calibration module is used to calibrate the current sensor according to the first fitting parameter.
11. The current sensor calibration device according to claim 10, characterized in that: The current fitting module includes a linear fitting unit; The linear fitting unit is used to perform linear fitting on the multiple actual current values and the multiple measured current values based on the least squares method to obtain a first fitting parameter.
