Sensitive resistance measuring device and measuring method
By using parallel-connected sensitive resistors and standard resistor branches in the sensitive resistance measurement device, combined with high-precision fixed-value resistors and capacitor power supply methods, the problem of sensitive resistance measurement errors is solved, and high accuracy and low power consumption are achieved. Sensitive resistance measurement.
Patent Information
- Application Number
- CN202110946707.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-01-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2038-01-17
AI Technical Summary
There is a large error in the resistance measurement of sensitive resistors in the prior art, which affects the accuracy of temperature/humidity parameters.
Using MCU circuits and measurement circuits, including sensitive resistor branches and standard resistor branches connected in parallel, the voltage value is collected through the first voltage acquisition channel and the second voltage acquisition channel of the ADC unit, and the fixed value characteristics of the standard resistor and capacitor power supply are used This method eliminates proportional changes in voltage measurement errors and accurately measures the resistance of sensitive resistors.
It improves the measurement accuracy of sensitive resistor resistance, reduces power consumption, and reduces the impact of power supply IO interface load fluctuation on the measurement circuit.
Smart Images

Figure CN113589045B
Abstract
Description
Technical Field
[0001] The invention relates to measurement technology, and in particular to a sensitive resistor measurement device and a measurement method. Background Art
[0002] A sensitive resistor is a special resistor that is sensitive to analog quantities such as light intensity, pressure, humidity, and temperature. For example, a thermistor is a component whose resistance value changes with temperature, and is divided into a positive temperature coefficient thermistor and a negative temperature coefficient thermistor; a hygroscopic resistor is a component whose resistance value changes with humidity, converting humidity into an electrical signal; in addition to the above-mentioned temperature / humidity sensitive resistors, there are many other types of sensitive resistors.
[0003] In the prior art, the measurement of sensitive resistors generally adopts the solution of direct resistor voltage division using an analog to digital converter (ADC), such as Figure 1 As shown, the sensitive resistor measuring device 10 includes a microcontroller unit 101 (MCU) and a measuring circuit 102. The MCU 101 includes an ADC unit 1011 and a power IO interface 1012, wherein the ADC unit 1011 is used to collect the electrical signal of the sensitive resistor RT and convert the electrical signal into a digital signal for computer display; the power IO interface 1012 is used to provide a voltage of V to the measuring circuit 102. io The measuring circuit 102 is powered by a power supply. The measuring circuit 102 is composed of two resistors, wherein one end of the sensitive resistor RT is grounded and the other end is connected to the standard resistor R. One end of the standard resistor R is connected to the sensitive resistor RT, and the other end is connected to the power supply IO interface 1012, and the measuring circuit 102 is powered by the power supply IO interface 1012. Figure 1 It can be seen that the ADC unit 1011 is used to collect the voltage Vx at one end of the sensitive resistor RT, and the voltage at the other end of the standard resistor R connected to the power IO interface 1012 is V io , according to Ohm's law:
[0004] (V io -V x ) / R R =V x / R RT (1)
[0005] According to formula (1), we can get:
[0006] R RT =V x ×R R / (V io -V x ) (2)
[0007] According to formula (2), the error factors affecting the resistance value of the sensitive resistor RT include: Vx, R and V io , where for V io For example, the voltage V output by the power IO interface 1012 io In addition to supplying power to the measuring circuit 102, power is also supplied to other circuit modules in the sensitive resistance measuring device 10. The working state of each circuit module is different at different times, that is, V io The load is changing dynamically, and V io The value of will have a large fluctuation, resulting in errors; In addition, for Vx: Since the reference voltage V b There may be errors, resulting in the absolute voltage value V measured by the ADC unit 1011 being x There may also be errors; finally, for R: the standard resistor R is affected by the production process and materials, and there may also be certain errors. Therefore, the resistance value of the sensitive resistor RT measured by the above method has a large error.
[0008] If the sensitive resistor is a temperature / humidity sensitive resistor, it is related to the temperature / humidity parameters to be measured; if there is an error in the measured value of the sensitive resistor, it will affect the accuracy of the collected temperature / humidity parameters. Therefore, there is an urgent need for a sensitive resistor measurement device and a measurement method that can accurately measure the resistance value of the sensitive resistor to ensure the accuracy of the temperature / humidity parameter collection. Summary of the invention
[0009] The present invention provides a sensitive resistor measuring device and a measuring method to solve the technical problems of inaccurate resistance value measurement and large error of sensitive resistors in the prior art.
[0010] One aspect of the present invention provides a sensitive resistance measuring device, comprising:
[0011] MCU circuit, measurement circuit;
[0012] The MCU circuit includes: an ADC unit for collecting the voltage value of the measurement circuit, and a power supply IO interface for supplying power to the measurement circuit; wherein the ADC unit includes: a first voltage collection channel circuit and a second voltage collection channel circuit; the reference voltage of the first voltage collection channel circuit is the same as that of the second voltage collection channel circuit;
[0013] The measuring circuit comprises: a sensitive resistor branch and a standard resistor branch connected in parallel; wherein the sensitive resistor branch comprises a sensitive resistor RT and a standard resistor R connected in series; and the standard circuit branch comprises two standard resistors R connected in series;
[0014] The first voltage acquisition channel circuit is used to acquire the voltage value of the series connection point between the sensitive resistor RT and the standard resistor R connected in series;
[0015] The second voltage acquisition channel circuit is used to acquire the voltage value of the series connection point between the two standard resistors R connected in series.
[0016] Optionally, it also includes: a power supply branch;
[0017] The power supply branch is connected to a circuit of the power supply IO interface for supplying power to the measurement circuit;
[0018] The power supply branch includes: a selection switch and a capacitor;
[0019] The selection switch includes two switch contacts; the first switch contact is used to connect the circuit of the capacitor and the power IO interface so that the power IO interface charges the capacitor; the second switch contact is used to connect the circuit of the capacitor and the measurement circuit so that the capacitor supplies power to the measurement circuit.
[0020] Optionally, one end of the standard resistor R in the sensitive resistor branch is connected to the power supply IO interface, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit respectively;
[0021] or,
[0022] One end of the sensitive resistor RT in the sensitive resistor branch is connected to the power supply IO interface, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit respectively.
[0023] Optionally, one end of the standard resistor R in the sensitive resistor branch is connected to the second switch contact, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit respectively;
[0024] or,
[0025] One end of the sensitive resistor RT in the sensitive resistor branch is connected to the second switch contact, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit respectively.
[0026] Optionally, the standard resistor R is a fixed value resistor.
[0027] Another aspect of the present invention provides a sensitive resistor measuring method, wherein the method uses the aforementioned sensitive resistor measuring device to perform the measurement, comprising:
[0028] Receive sensitive resistance measurement instructions;
[0029] According to the sensitive resistance measurement instruction, respectively acquiring a first voltage value measured by the first voltage acquisition channel circuit and a second voltage value measured by the second voltage acquisition channel circuit;
[0030] The resistance value of the sensitive resistor RT is determined according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value.
[0031] Optionally, if one end of the standard resistor R in the sensitive resistor branch is connected to the power supply IO interface, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit respectively, wherein one end of the sensitive resistor RT is grounded; then the first voltage value is the voltage value across the sensitive resistor RT; accordingly, determining the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value includes:
[0032] According to R RT =Vx×R R / (2Vref-Vx), determine the resistance value of the sensitive resistor RT;
[0033] Among them, the R RT represents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, and R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
[0034] Optionally, if one end of the sensitive resistor RT in the sensitive resistor branch is connected to the power supply IO interface, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit respectively, wherein one end of the standard resistor R is grounded; then the first voltage value is the voltage value across the standard resistor R; accordingly, determining the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value includes:
[0035] According to R RT =(2Vref–Vx)×R R / Vx, determine the resistance value of the sensitive resistor RT;
[0036] Among them, the R RT represents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, and R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
[0037] Another aspect of the present invention provides a sensitive resistor measuring method, wherein the method uses the aforementioned sensitive resistor measuring device to perform the measurement, comprising:
[0038] Receive sensitive resistance measurement instructions;
[0039] According to the sensitive resistance measurement instruction, a first switch contact switching instruction is sent to the selection switch; the first switch contact switching instruction is used to switch the selection switch from the first switch contact to the second switch contact, so that the power IO interface stops charging the capacitor, and the capacitor supplies power to the measurement circuit;
[0040] Respectively acquiring a first voltage value measured by the first voltage acquisition channel circuit and a second voltage value measured by the second voltage acquisition channel circuit;
[0041] The resistance value of the sensitive resistor RT is determined according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value.
[0042] Optionally, after determining the resistance value of the sensitive resistor RT, the method further includes:
[0043] A second switch contact switching instruction is sent to the selection switch; the second switch contact switching instruction is used to switch the selection switch from the second switch contact to the first switch contact, so that the circuit between the capacitor and the measurement circuit is disconnected, the capacitor stops supplying power to the measurement circuit, and the circuit between the capacitor and the power supply IO interface is connected, and the power supply IO interface charges the capacitor.
[0044] It can be seen from the above technical scheme that the sensitive resistor measuring device and measuring method provided by the present invention include an MCU circuit and a measuring circuit; the MCU circuit includes: an ADC unit for collecting the voltage value of the measuring circuit, and a power supply IO interface for powering the measuring circuit; wherein the ADC unit includes: a first voltage acquisition channel circuit and a second voltage acquisition channel circuit; the measuring circuit includes: a sensitive resistor branch and a standard resistor branch connected in parallel; wherein the sensitive resistor branch includes a sensitive resistor RT and a standard resistor R connected in series; the standard circuit branch includes two standard resistors R connected in series; the first voltage acquisition channel circuit is used to collect the voltage value of the series connection point between the sensitive resistor RT and the standard resistor R connected in series; the second voltage acquisition channel circuit is used to collect the voltage value of the series connection point between the two standard resistors R connected in series. The sensitive resistor measuring device collects the voltage of the two branches of the sensitive resistor branch and the standard resistor branch connected in parallel and symmetrically arranged, so that the voltage measurement errors of the two branches are proportionally changed, thereby eliminating the influence of the voltage measurement error on the resistance value of the sensitive resistor, and the accuracy of the sensitive resistor resistance value tested by the sensitive resistor measuring device provided by the present invention is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 It is a structural schematic diagram of a sensitive resistance measuring device in the prior art;
[0047] Figure 2 A schematic structural diagram of a sensitive resistance measuring device according to an exemplary embodiment of the present invention;
[0048] Figure 3 A schematic structural diagram of a sensitive resistance measuring device according to another exemplary embodiment of the present invention;
[0049] Figure 4 A schematic structural diagram of a sensitive resistance measuring device according to another exemplary embodiment of the present invention;
[0050] Figure 5 A schematic structural diagram of a sensitive resistance measuring device according to another exemplary embodiment of the present invention;
[0051] Figure 6 A sensitive resistor measuring method is shown as an exemplary embodiment of the present invention;
[0052] Figure 7 A sensitive resistor measuring method is shown in another exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] Figure 2 FIG. 1 is a schematic diagram of a sensitive resistance measuring device according to an exemplary embodiment of the present invention. Figure 2As shown, this embodiment provides a sensitive resistor measuring device 20, including: an MCU circuit 201, a measuring circuit 202; the MCU circuit 201 includes: an ADC unit 2011 for collecting the voltage value of the measuring circuit, and a power supply IO interface 2012 for supplying power to the measuring circuit 202; wherein the ADC unit 2011 includes: a first voltage collection channel circuit 2011a, a second voltage collection channel circuit 2011b; a reference voltage V between the first voltage collection channel circuit 2011a and the second voltage collection channel circuit 2011b b The same; the measuring circuit 202 includes: a sensitive resistor branch 2021 and a standard resistor branch 2022 connected in parallel; wherein the sensitive resistor branch 2021 includes a sensitive resistor RT and a standard resistor R connected in series; the standard circuit branch 2022 includes two standard resistors R connected in series; the first voltage acquisition channel circuit 2011a is used to acquire the voltage value of the series connection point between the series-connected sensitive resistor RT and the standard resistor R; the second voltage acquisition channel circuit 2011b is used to acquire the voltage value of the series connection point between the two standard resistors R connected in series.
[0055] Specifically, the MCU circuit 201 includes an ADC unit 2011 for collecting voltage values of the measuring circuit 202 and a power IO interface 2012 for supplying power to the measuring circuit 202. The ADC unit 2011 includes two voltage collection circuits, namely a first voltage collection channel circuit 2011a and a second voltage collection channel circuit 2011b, which can respectively collect voltage values of two points of the measuring circuit 202. The reference voltage for supplying power to the two voltage collection circuits of the ADC unit 2011 is V b The power IO interface 2012 is connected to the measurement circuit 202 and outputs the power supply voltage V io The measurement circuit 202 is powered.
[0056] The measuring circuit 202 includes a sensitive resistor branch 2021 and a standard resistor branch 2022 connected in parallel. The sensitive resistor branch 2021 is composed of a standard resistor R and a sensitive resistor RT connected in series. The layout relationship between the standard resistor R and the sensitive resistor RT can be as follows: Figure 2 As shown, one end of the standard resistor R is connected to the power IO interface 2012, and the other end is connected to the sensitive resistor RT. One end of the sensitive resistor is grounded, and the other end is connected to the standard resistor R. Of course, the two can also be exchanged (such as Figure 4 The standard resistor branch 2022 is composed of two standard resistors R connected in series, one end of the two standard resistors R in series is connected to each other, the other end of one standard resistor R is grounded, and the other end of the other standard resistor R is connected to the power IO interface 2012.
[0057] The sensitive resistance measuring device 20 provides a power supply voltage V to the measuring circuit 202 through the power supply IO interface 2012. io The voltage value of the serial connection point between the series-connected sensitive resistor RT and the standard resistor R is collected through the first voltage collection channel circuit 2011a of the ADC unit 2011, that is, the voltage V at one end of the sensitive resistor RT and the standard resistor R in the sensitive resistor branch 2021 is collected. x The voltage value of the serial connection point between the two standard resistors R connected in series is collected through the second voltage collection channel circuit 2011b of the ADC unit 2011, that is, the voltage V at one end of the two series standard resistors R in the standard resistor branch 2022 is collected. ref , according to Ohm's law:
[0058] V io =2×V ref (3)
[0059] (2 V ref -V x ) / R R =V x / R RT (4)
[0060] R RT =V x ×R R / (2 V ref -V x ) (5)
[0061] From formula (5), it can be seen that the error factors affecting the resistance value of the sensitive resistor RT include: V x 、V ref and R R . V ref and V x The voltage V collected by the first voltage collection channel circuit 2011a and the second voltage collection channel circuit 2011b of the ADC unit 2011 can be obtained. In order to ensure the stability of the standard resistor R, the standard resistor R can be selected as a fixed value resistor, and a high-precision custom resistor can be selected, for example, a high-precision fixed value resistor with an accuracy of ±0.5% or ±1%. The voltage V collected by the first voltage collection channel circuit 2011a of the ADC unit 2011 x The V collected by the second voltage collection channel circuit 2011b ref , the two voltage values will change with the reference voltage V b Proportional changes.
[0062] Specifically, as described in the background technology, since the reference voltage V b The error causes the voltage value V measured by ADC unit 2011 to be xThere may be errors. However, if Figure 2 In the structure shown in FIG. 1 , the two voltage acquisition channel circuits (2011a and 2011b) of the ADC unit 2011 use the same reference voltage V b , the proportion of their measurement errors is the same, so V x and V ref For example, if the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b use the same reference voltage V b , reference voltage V b The voltage measured by the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b is biased up / down by 10%. According to formula (5), when V ref and V x The measurement error ratio is the same. Assuming that they are both 10% higher, the measured voltage values are 1.1V. ref and 1.1V x , then the resistance of the sensitive resistor RT is:
[0063] R RT =1.1 V x ×R R / (2×1.1 V ref -1.1×V x )=V x ×R R / (2 V ref -V x ) (6)
[0064] It can be seen from formula (6) that due to V x and V ref Using the same reference voltage V b , the measurement error is proportional to 10%, so V can be eliminated x and V ref The error of the sensitive resistor RT is only related to the error of the standard resistor R. Since the standard resistor R is a fixed-value resistor and if a high-precision fixed-value resistor is used, the resistance value of the sensitive resistor obtained by the sensitive resistor measuring device 20 provided in this embodiment is more accurate.
[0065] The sensitive resistor measuring device provided in the present embodiment includes an MCU circuit and a measuring circuit; the MCU circuit includes: an ADC unit for collecting the voltage value of the measuring circuit, and a power supply IO interface for powering the measuring circuit; wherein the ADC unit includes: a first voltage acquisition channel circuit and a second voltage acquisition channel circuit; the measuring circuit includes: a sensitive resistor branch and a standard resistor branch connected in parallel; wherein the sensitive resistor branch includes a sensitive resistor RT and a standard resistor R connected in series; the standard circuit branch includes two standard resistors R connected in series; the first voltage acquisition channel circuit is used to collect the voltage value of the series connection point between the series-connected sensitive resistor RT and the standard resistor R; the second voltage acquisition channel circuit is used to collect the voltage value of the series connection point between the two standard resistors R connected in series. The sensitive resistor measuring device collects the voltage of the two branches of the sensitive resistor branch and the standard resistor branch connected in parallel and with symmetrical resistor layout, so that the voltage measurement errors of the two branches are proportionally changed, thereby eliminating the influence of the voltage measurement error on the resistance value of the sensitive resistor, and the accuracy of the sensitive resistor resistance value tested by the sensitive resistor measuring device provided in the present embodiment is high.
[0066] Figure 3 FIG. 1 is a schematic structural diagram of a sensitive resistance measuring device according to another exemplary embodiment of the present invention. Figure 3 As shown, in Figure 2 On the basis of the illustrated embodiment, it also includes: a power supply branch 203; the power supply branch 203 is connected to the circuit of the power supply IO interface 2012 to power the measurement circuit 202; the power supply branch 203 includes: a selection switch 2031, a capacitor C; the selection switch 2031 includes two switch contacts; the first switch contact a is used to connect the capacitor C and the circuit of the power supply IO interface 2012, so that the power supply IO interface 2012 charges the capacitor C; the second switch contact b is used to connect the capacitor C and the circuit of the measurement circuit 202, so that the capacitor C powers the measurement circuit 202.
[0067] Specifically, the MCU circuit 201 includes an ADC unit 2011 for collecting voltage values of the measuring circuit 202 and a power IO interface 2012 for supplying power to the measuring circuit 202. The ADC unit 2011 includes two voltage collection circuits, namely a first voltage collection channel circuit 2011a and a second voltage collection channel circuit 2011b, which can respectively collect voltage values of two points of the measuring circuit 202. The reference voltage for supplying power to the two voltage collection circuits of the ADC unit 2011 is V b The power IO interface 2012 is connected to the measurement circuit 202 and outputs the power supply voltage V io The measurement circuit 202 is powered.
[0068] The measuring circuit 202 includes a sensitive resistor branch 2021 and a standard resistor branch 2022 connected in parallel. The sensitive resistor branch 2021 is composed of a standard resistor R and a sensitive resistor RT connected in series. The layout relationship between the standard resistor R and the sensitive resistor RT can be as follows: Figure 3 As shown, one end of the standard resistor R is connected to the selection switch 2031, and the other end is connected to the sensitive resistor RT. One end of the sensitive resistor RT is grounded, and the other end is connected to the standard resistor R. The standard resistor branch 2022 is composed of two standard resistors R connected in series, one end of the two standard resistors R in series is connected to each other, the other end of one standard resistor R is grounded, and the other end of the other standard resistor R is connected to the selection switch 2031.
[0069] The power supply branch 203 includes: a selection switch 2031 and a capacitor C; the selection switch 2031 includes two switch contacts; the switch contact a connected to the power IO interface 2012 can be selected, and the switch contact b connected in parallel to the sensitive resistor branch 2021 and the standard resistor branch 2022 can also be selected. When the selection switch 2031 is connected to the switch contact a, the capacitor C is charged through the power IO interface 2012; when the selection switch 2031 is connected to the switch contact b, the capacitor C starts to discharge and supplies power to the sensitive resistor branch 2021 and the standard resistor branch 2022. When the sensitive resistor measuring device 20 is in an idle state, the selection switch 2031 is connected to the switch contact a, and the capacitor C is charged through the power IO interface 2012 to store electrical energy; when the sensitive resistor measuring device 20 is awakened to measure the resistance value of the sensitive resistor RT, the selection switch 2031 is connected to the switch contact b, the capacitor C starts to discharge, supplies power to the measurement circuit 202, and starts to collect V ref and V x Therefore, Figure 3 The sensitive resistor measuring device 20 shown can not only obtain the resistance value of the sensitive resistor with high accuracy, but also charge the capacitor C when not measuring, and stop charging the capacitor C when measuring, so it has the advantage of low power consumption. At the same time, because the power supply for the measuring circuit 202 is the capacitor C instead of the power supply voltage V output by the power IO interface 2012, io , so that the power supply voltage V io The influence of the load fluctuation will not affect the measuring circuit 202, thereby further ensuring the accuracy of the resistance value measurement of the sensitive resistor RT.
[0070] Figure 3 The working process of the sensitive resistance measuring device 20 shown in the figure is as follows: the capacitor C is discharged to provide the power supply voltage V for the measuring circuit 202 io The voltage V at one end of the sensitive resistor RT in the sensitive resistor branch 2021 connected to the standard resistor R is collected through the first voltage collection channel circuit 2011a of the ADC unit 2011. xThe voltage at one end of the two series resistors in the standard resistor branch 2022 connected to each other is collected by the second voltage collection channel circuit 2011b of the ADC unit 2011 as V ref , the two voltage acquisition channels of ADC unit 2011 use the same reference voltage V b , the measured error ratio is the same, which can eliminate V x and V ref The error of the sensitive resistor RT is only related to the error of the standard resistor R. Since the standard resistor R can use a high-precision fixed-value resistor, the resistance value of the sensitive resistor RT tested by the sensitive resistor measuring device 20 provided in this embodiment has a high accuracy. Figure 2 The sensitive resistor measuring device 20 shown in the figure is the same. When the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b use the same reference voltage Vb, and the reference voltage Vb is biased up / down by 10%, then correspondingly, the voltages measured by the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b are biased up / down by 10% at the same time. According to formula (5), when V ref and V x The measurement error ratio is the same. Assuming that they are both 10% higher, the measured voltage values are 1.1V. ref and 1.1V x , then the resistance of the sensitive resistor RT is:
[0071] R RT =1.1 V x ×R R / (2×1.1V ref -1.1×V x )=V x ×R R / (2 V ref -V x ) (6)
[0072] It can be seen from formula (6) that due to V x and V ref Using the same reference voltage V b , the measurement error is proportional to 10%, so V can be eliminated x and V refThe error of the sensitive resistor RT is only related to the error of the standard resistor R. Since the standard resistor R is a fixed value resistor, and if it uses a high-precision fixed value resistor, the resistance value of the sensitive resistor obtained by the sensitive resistor measurement device 20 provided in this embodiment is more accurate. At the same time, the power supply branch 203 also provides the function of charging the capacitor C when not measuring and stopping charging the capacitor C when measuring, which has the advantage of low power consumption; and because the capacitor C is used to replace the power supply IO interface 2012 to supply power to the measurement circuit 202, the power supply voltage V io The influence of the load fluctuation will not affect the measuring circuit 202, which further ensures the accuracy of the resistance value measurement of the sensitive resistor RT.
[0073] Figure 4 FIG. 1 is a schematic structural diagram of a sensitive resistance measuring device according to another exemplary embodiment of the present invention. Figure 4 As shown, in Figure 2 On the basis of the embodiment shown, the positions of the standard resistor R in the sensitive resistor branch 2021 and the standard resistor R are swapped. In other words, Figure 2 In the sensitive resistor measuring device 20 shown, one end of the standard resistor R in the sensitive resistor branch 2021 is connected to the power IO interface 2012, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit 2011a respectively; Figure 4 In the sensitive resistor measuring device 20 shown, one end of the sensitive resistor RT in the sensitive resistor branch 2021 is connected to the power IO interface 2012, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit 2011a respectively.
[0074] Specifically, the sensitive resistance measuring device 20 provided in this embodiment is Figure 2 The difference of the provided sensitive resistor measuring device 20 is that the standard resistor R and the sensitive resistor RT of the sensitive resistor branch 2021 are located at different positions, and one end of the sensitive resistor RT is connected to the power IO interface 2012 and the other end is connected to the standard resistor R. One end of the standard resistor R is grounded and the other end is connected to the sensitive resistor RT.
[0075] Depend on Figure 4 As shown, the power supply voltage V is provided to the measurement circuit 202 through the power supply IO interface 2012. io , the voltage Vx at one end where the sensitive resistor RT in the sensitive resistor branch 2021 is connected to the standard resistor R is collected through the first voltage collection channel circuit 2011a of the ADC unit 2011, and the voltage Vref at one end where two series resistors R in the standard resistor branch 2022 are connected to each other is collected through the second voltage collection channel circuit 2011b of the ADC unit 2011. According to Ohm's law, it can be known that:
[0076] V io=2×V ref (7)
[0077] (2 V ref -V x ) / R RT =V x / R R (8)
[0078] R RT =(2 V ref –V x )×R R / V x (9)
[0079] Since the reference voltage V b The voltage value measured by the ADC unit 2011 may have an error. The two voltage acquisition channels of the ADC unit 2011 use the same reference voltage V b , the measured error ratio is the same, which can eliminate V x and V ref For example, the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b use the same reference voltage V b , reference voltage V b If the voltage is biased up / down by 10%, the voltages measured by the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b will be biased up / down by 10% at the same time. x and V ref The error ratio is the same. Assuming that they are both 10% higher, the measured voltage values are 1.1V. ref and 1.1V x , then the resistance of the sensitive resistor RT is R RT for:
[0080] RT=(2×1.1×Vref–1.1Vx)×R / 1.1Vx=(2Vref–Vx)×R / Vx (10)
[0081] It can be seen from formula (10) that due to V x and V ref Using the same reference voltage V b , the measurement error is proportional to 10%, so V can be eliminated x and V ref The measurement error of the sensitive resistor RT is only related to the error of the standard resistor R. The standard resistor R can adopt a fixed-value resistor. More preferably, a high-precision fixed-value resistor is adopted. Then, the resistance value of the sensitive resistor RT tested by the sensitive resistor measuring device 20 provided in this embodiment has higher accuracy.
[0082] Figure 5 FIG. 1 is a schematic structural diagram of a sensitive resistance measuring device according to another exemplary embodiment of the present invention. Figure 5 As shown, in Figure 3 On the basis of the embodiment shown, the positions of the standard resistor R in the sensitive resistor branch 2021 and the standard resistor R are swapped. In other words, Figure 3 In the sensitive resistor measuring device 20 shown, one end of the standard resistor R in the sensitive resistor branch 2021 is connected to the second switch contact b, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit 2011a respectively; Figure 5 In the sensitive resistor measuring device 20 shown, one end of the sensitive resistor RT in the sensitive resistor branch 2021 is connected to the second switch contact b, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit 2011a respectively.
[0083] Specifically, the sensitive resistance measuring device 20 provided in this embodiment is Figure 3 The difference of the provided sensitive resistor measuring device 20 is that the standard resistor R and the sensitive resistor RT of the sensitive resistor branch 2021 are located at different positions, and one end of the sensitive resistor RT is connected to the selection switch 2031, and the other end is connected to the standard resistor R. One end of the standard resistor R is grounded, and the other end is connected to the sensitive resistor RT. The resistance value calculation method of the sensitive resistor RT is the same as that of the Figure 4 The sensitive resistance measuring device 20 shown in the figure is the same, and the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b use the same reference voltage V b , reference voltage V b If the voltage is biased up / down by 10%, the voltages measured by the first voltage acquisition channel circuit 2011a and the second voltage acquisition channel circuit 2011b will be biased up / down by 10% at the same time. x and V ref The error ratio is the same. Assuming that they are both 10% higher, the measured voltage values are 1.1V. ref and 1.1V x , then the resistance of the sensitive resistor RT is R RT for:
[0084] RT=(2×1.1×Vref–1.1Vx)×R / 1.1Vx=(2Vref–Vx)×R / Vx (10)
[0085] It can be seen from formula (10) that due to V x and V ref Using the same reference voltage V b , the measurement error is proportional to 10%, so V can be eliminated x and V refThe measurement error of the sensitive resistor RT is only related to the error of the standard resistor R. The standard resistor R can adopt a fixed-value resistor. More preferably, a high-precision fixed-value resistor is adopted. Then, the resistance value of the sensitive resistor RT tested by the sensitive resistor measuring device 20 provided in this embodiment has higher accuracy.
[0086] Figure 6 A sensitive resistor measurement method is shown as an exemplary embodiment of the present invention. Figure 6 As shown, the sensitive resistance measurement method of this embodiment can be based on Figure 2 or Figure 4 The sensitive resistance measuring device 20 shown in the figure performs the measurement, and the measuring method specifically includes:
[0087] Step 601: Receive a sensitive resistance measurement instruction.
[0088] Step 602: According to the sensitive resistance measurement instruction, a first voltage value measured by the first voltage acquisition channel circuit and a second voltage value measured by the second voltage acquisition channel circuit are respectively acquired.
[0089] Step 603: Determine the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value.
[0090] Specifically, the processor for receiving the sensitive resistor measurement instruction can be a processor integrated in the MCU circuit 201, or a processor outside the sensitive resistor measuring device 20, which maintains communication interaction with the MCU circuit 201 so that the MCU circuit 201 performs corresponding operations according to the instructions of the processor. For example, after the processor receives the sensitive resistor measurement instruction, it triggers the MCU circuit 201 to supply power to the measurement circuit 202, so that the ADC unit 2011 collects the voltages of the sensitive resistor branch 2021 and the standard resistor branch 2022 to obtain the resistance value of the sensitive resistor RT.
[0091] based on Figure 2 The sensitive resistor measuring device shown, that is, if one end of the standard resistor R in the sensitive resistor branch 2021 is connected to the power IO interface 2012, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit 2011a respectively, wherein one end of the sensitive resistor RT is grounded; then the first voltage value is the voltage value at both ends of the sensitive resistor RT; then correspondingly, in step 603, determining the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value specifically includes:
[0092] According to R RT =Vx×R R / (2Vref-Vx), determine the resistance of the sensitive resistor RT; where R RTrepresents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
[0093] based on Figure 4 The sensitive resistor measuring device shown, that is, if one end of the sensitive resistor RT in the sensitive resistor branch 2021 is connected to the power IO interface 2012, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit 2011a respectively, wherein one end of the standard resistor R is grounded; then the first voltage value is the voltage value across the standard resistor R; then correspondingly, determining the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value in step 603 specifically includes:
[0094] According to R RT =(2Vref–Vx)×R R / Vx, determine the resistance of the sensitive resistor RT; where R RT represents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
[0095] The sensitive resistor measuring method of the present embodiment is based on a sensitive resistor measuring device, which includes an MCU circuit and a measuring circuit; the MCU circuit includes: an ADC unit for collecting the voltage value of the measuring circuit, and a power supply IO interface for powering the measuring circuit; wherein the ADC unit includes: a first voltage collection channel circuit and a second voltage collection channel circuit; the measuring circuit includes: a sensitive resistor branch and a standard resistor branch connected in parallel; wherein the sensitive resistor branch includes a sensitive resistor RT and a standard resistor R connected in series; the standard circuit branch includes two standard resistors R connected in series; the first voltage collection channel circuit is used to collect the voltage value of the series connection point between the series-connected sensitive resistor RT and the standard resistor R; the second voltage collection channel circuit is used to collect the voltage value of the series connection point between the two series-connected standard resistors R. Through the above device, a first voltage value measured by the first voltage acquisition channel circuit and a second voltage value measured by the second voltage acquisition channel circuit are respectively obtained. Due to the parallel structure of the sensitive resistor branch and the standard resistor branch, and the symmetrical distribution of the resistances of the two branches, the voltage measurement errors of the two voltage values show equal proportional changes, thereby eliminating the influence of the voltage measurement error on the resistance value of the sensitive resistor, so that the accuracy of the sensitive resistor value obtained by the sensitive resistor measurement device based on this embodiment is improved.
[0096] Figure 7 Another exemplary embodiment of the present invention shows a sensitive resistor measurement method, such as Figure 7 As shown, the sensitive resistance measurement method of this embodiment can be based on Figure 3 or Figure 5 The sensitive resistance measuring device 20 shown in the figure performs the measurement, and the measuring method specifically includes:
[0097] Step 701: Receive a sensitive resistance measurement instruction.
[0098] Step 702: Send a first switch contact switching instruction to the selection switch according to the sensitive resistance measurement instruction; the first switch contact switching instruction is used to switch the selection switch from the first switch contact to the second switch contact, so that the power IO interface stops charging the capacitor, and the capacitor supplies power to the measurement circuit.
[0099] Step 703: respectively obtain a first voltage value measured by the first voltage acquisition channel circuit and a second voltage value measured by the second voltage acquisition channel circuit.
[0100] Step 704: Determine the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value.
[0101] Specifically, as in the previous embodiment, the processor for receiving the sensitive resistance measurement instruction may be a processor integrated in the MCU circuit 201, or may be a processor outside the sensitive resistance measuring device 20, which maintains communication interaction with the MCU circuit 201 so that the MCU circuit 201 performs corresponding operations according to the instructions of the processor. For example, after receiving the sensitive resistance measurement instruction, the processor triggers the MCU circuit 201 to send a first switch contact switching instruction to the selection switch 2031, so that the selection switch 2031 switches from the first switch contact a to the second switch contact b, so that the sensitive resistance measuring device 20 is converted from an idle state to a working state. The so-called idle state is a state in which the power supply IO interface 2012 charges the capacitor C to store electrical energy when the first switch contact a is closed; the so-called working state is a state in which the power supply IO interface 2012 stops charging the capacitor C when the second switch contact b is closed, and the capacitor C discharges to supply power to the measuring circuit 202; the sensitive resistance measuring device 20 performs measurement of the resistance value of the sensitive resistor RT in the working state to determine the resistance value of the sensitive resistor RT. After the resistance value of the sensitive resistor RT is determined, a second switch contact switching instruction can also be sent to the selection switch; the second switch contact switching instruction is used to switch the selection switch 2031 from the second switch contact b to the first switch contact a, so that the circuit between the capacitor C and the measurement circuit 202 is disconnected, the capacitor C stops supplying power to the measurement circuit 202, and the circuit between the capacitor C and the power supply IO interface 2012 is connected, and the power supply IO interface 2012 charges the capacitor C.
[0102] based on Figure 3The sensitive resistor measuring device shown in the figure, that is, if one end of the standard resistor R in the sensitive resistor branch 2021 is connected to the second switch contact b, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit 2011a respectively, wherein one end of the sensitive resistor RT is grounded; then the first voltage value is the voltage value at both ends of the sensitive resistor RT; then correspondingly, in step 704, determining the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value specifically includes: according to R RT =Vx×R R / (2Vref-Vx), determine the resistance of the sensitive resistor RT; where R RT represents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
[0103] based on Figure 5 The sensitive resistor measuring device shown in the figure, that is, if one end of the sensitive resistor RT in the sensitive resistor branch 2021 is connected to the second switch contact b, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit 2011a respectively, wherein one end of the standard resistor R is grounded; then the first voltage value is the voltage value across the standard resistor R; then correspondingly, in step 704, determining the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value specifically includes: determining the resistance value of the sensitive resistor RT according to R RT =(2Vref–Vx)×R R / Vx, determine the resistance of the sensitive resistor RT; where R RT represents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An MCU detection circuit, characterized in that: include: MCU circuit, measurement circuit; The MCU circuit includes: an ADC unit for collecting the voltage value of the measurement circuit, and a power supply IO interface for supplying power to the measurement circuit; wherein the ADC unit includes: a first voltage collection channel circuit and a second voltage collection channel circuit; the reference voltage of the first voltage collection channel circuit is the same as that of the second voltage collection channel circuit; The measuring circuit comprises: a sensitive resistor branch and a standard resistor branch connected in parallel; wherein the sensitive resistor branch comprises a sensitive resistor RT and a standard resistor R connected in series; and the standard resistor branch comprises two standard resistors R connected in series; The first voltage acquisition channel circuit is used to acquire a first voltage value of a serial connection point between the sensitive resistor RT and the standard resistor R connected in series; The second voltage acquisition channel circuit is used to acquire a second voltage value of a serial connection point between the two standard resistors R connected in series; in, One end of the two standard resistors R connected in series in the standard resistor branch is connected to each other, the other end of one standard resistor R is grounded, and the other end of the other standard resistor R is connected to the power supply IO interface; One end of the standard resistor R in the sensitive resistor branch is connected to the power supply IO, and the other end is connected to the sensitive resistor RT and the first voltage acquisition channel circuit respectively, and the other end of the sensitive resistor RT is grounded; or, One end of the sensitive resistor RT in the sensitive resistor branch is connected to the power supply IO, and the other end is connected to the standard resistor R and the first voltage acquisition channel circuit respectively, and the other end of the standard resistor R is grounded; The voltage collected by the first voltage collection channel circuit and the voltage collected by the second voltage collection channel circuit have the same deviation ratio.
2. The MCU detection circuit according to claim 1, characterized in that: The standard resistors include high-precision fixed-value resistors with an accuracy of ±0.5% or ±1%.
3. The MCU detection circuit according to claim 1, characterized in that: Also includes: Power supply branch circuit; The power supply branch is connected to a circuit of the power supply IO interface for supplying power to the measurement circuit; The power supply branch includes: a selection switch and a capacitor; The selection switch includes two switch contacts; the first switch contact is used to connect the capacitor and the circuit of the power supply IO interface so that the power supply IO interface charges the capacitor; the second switch contact is used to connect the capacitor and the circuit of the measurement circuit so that the capacitor powers the measurement circuit, and the power supply voltage of the capacitor is twice the voltage collected by the second voltage collection channel circuit.
4. The MCU detection circuit according to any one of claims 1 to 3, characterized in that: The resistance value of the sensitive resistor RT, the resistance value of the standard resistor R, the first voltage value, and the second voltage value satisfy the following relationship: R RT =Vx╳R R / (2Vref-Vx) Among them, the R RT represents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, and R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
5. The MCU detection circuit according to any one of claims 1 to 3, characterized in that: The resistance value of the sensitive resistor RT, the resistance value of the standard resistor R, the first voltage value, and the second voltage value satisfy the following relationship: R RT =(2Vref–Vx)╳R R / Vx Among them, the R RT represents the resistance value of the sensitive resistor RT, Vx represents the first voltage value, and R R represents the resistance value of the standard resistor R, and Vref represents the second voltage value.
6. The MCU detection circuit according to claim 3, characterized in that: Also includes: processor; The processor is used to receive a sensitive resistor measurement instruction; trigger the MCU circuit to power the measurement circuit, so that the ADC unit collects a first voltage value of the sensitive resistor branch and a second voltage value of the standard resistor branch, and determines the resistance value of the sensitive resistor RT based on the first voltage value and the second voltage value.
7. The MCU detection circuit according to claim 3, characterized in that: The MCU detection circuit is communicatively connected with an external processor; The processor is used to receive a sensitive resistor measurement instruction; trigger the MCU circuit to power the measurement circuit, so that the ADC unit collects a first voltage value of the sensitive resistor branch and a second voltage value of the standard resistor branch, and determines the resistance value of the sensitive resistor RT based on the first voltage value and the second voltage value.
8. The MCU detection circuit according to claim 6 or 7, characterized in that: After receiving the sensitive resistance measurement instruction, the processor sends a first switch contact switching instruction to the selection switch; The first switch contact switching instruction is used to switch the selection switch from the first switch contact to the second switch contact, so that the power IO interface stops charging the capacitor, and the capacitor supplies power to the measurement circuit.
9. The MCU detection circuit according to claim 8, characterized in that: When the selection switch is switched from the first switch contact to the second switch contact, the ADC unit measures a first voltage value through the first voltage acquisition channel circuit, measures a second voltage value through the second voltage acquisition channel circuit, and sends the first voltage value and the second voltage value to the processor, so that the processor determines the resistance value of the sensitive resistor RT according to the resistance value of the standard resistor R, the first voltage value, and the second voltage value.
10. The MCU detection circuit according to claim 9, characterized in that: After determining the resistance value of the sensitive resistor RT, the processor sends a second switch contact switching instruction to the selection switch; the second switch contact switching instruction is used to switch the selection switch from the second switch contact to the first switch contact, so that the circuit between the capacitor and the measurement circuit is disconnected, the capacitor stops supplying power to the measurement circuit, and the circuit between the capacitor and the power supply IO interface is connected, and the power supply IO interface charges the capacitor.
