CN109188095B - Resistance measurement circuit, method and environment parameter measurement device - Google Patents

Resistance measurement circuit, method and environment parameter measurement device Download PDF

Info

Publication number
CN109188095B
CN109188095B CN201811184671.2A CN201811184671A CN109188095B CN 109188095 B CN109188095 B CN 109188095B CN 201811184671 A CN201811184671 A CN 201811184671A CN 109188095 B CN109188095 B CN 109188095B
Authority
CN
China
Prior art keywords
resistor
circuit
capacitor
resistance
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811184671.2A
Other languages
Chinese (zh)
Other versions
CN109188095A (en
Inventor
沈礼胜
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CN201811184671.2A priority Critical patent/CN109188095B/en
Publication of CN109188095A publication Critical patent/CN109188095A/en
Application granted granted Critical
Publication of CN109188095B publication Critical patent/CN109188095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • G01R27/08Measuring resistance by measuring both voltage and current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Resistance Or Impedance (AREA)

Abstract

The embodiment of the invention relates to the technical field of sensors and discloses a resistance measurement circuit, a resistance measurement method and an environment parameter measurement device. Wherein the resistance measurement circuit includes: the resistor to be measured sub-circuit is used for outputting a measuring current according to the resistor to be measured; the charging and discharging sub-circuit comprises a first capacitor, wherein the first capacitor is connected with the resistor sub-circuit to be measured and is used for charging and discharging according to the measured current and outputting a measured voltage value; the comparison sub-circuit is connected with the charge-discharge sub-circuit and is used for outputting a first level signal when the first capacitor is charged and outputting a second level signal when the first capacitor is discharged; and the controller is connected with the comparison sub-circuit and is used for acquiring a first time length when receiving the first level signal, acquiring a second time length when receiving the second level signal and determining the resistance value of the resistor to be tested according to the first time length and the second time length. In this way, the measuring accuracy of the resistance value of the sensor can be effectively improved.

Description

Resistance measurement circuit, method and environment parameter measurement device
Technical Field
The invention relates to the technical field of sensor measurement, in particular to a resistance measurement circuit, a resistance measurement method and an environment parameter measurement device.
Background
In the measuring technology, a resistive sensor is widely used, for example, a temperature sensor, a humidity sensor, a piezoresistive sensor, etc., and since the resistance value of the resistive sensor varies with the change of the environment, the current environmental parameters, for example, temperature, humidity, pressure, etc., can be measured by measuring the resistance value thereof.
The method for measuring the resistance value of the resistance type sensor mainly adopts a resistance voltage division mode, namely, the voltage obtained by measuring the resistance of the sensor through a singlechip is used for calculating the resistance value of the sensor.
The inventor finds that in the process of realizing the embodiment of the invention, when the current method for measuring the resistance value of the resistance type sensor has small variation of the resistance value of the sensor, the obtained voltage value is very tiny, and the singlechip cannot accurately measure the variation of the voltage value, so that the measured resistance value of the sensor has errors.
Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a resistance measurement circuit, a resistance measurement method, and an environmental parameter measurement device, which can effectively improve the measurement accuracy of the resistance value of a sensor.
In order to achieve the above purpose, the embodiment of the invention discloses the following technical scheme:
The invention provides a resistance measuring circuit for measuring a resistance to be measured, the resistance measuring circuit comprises: the resistor to be measured sub-circuit is used for connecting the resistor to be measured and outputting a measuring current according to the resistor to be measured; the charging and discharging sub-circuit comprises a first capacitor, wherein the first capacitor is connected with the resistor sub-circuit to be tested, and is used for charging and discharging according to the measuring current and outputting a measuring voltage value; the comparison sub-circuit is connected with the charge-discharge sub-circuit and is used for comparing the measured voltage value with a first preset voltage value and outputting a first level signal under the condition that the first capacitor is charged, and comparing the measured voltage value with a second preset voltage value and outputting a second level signal under the condition that the first capacitor is discharged; and the controller is connected with the comparison sub-circuit and is used for acquiring a first time length under the condition of receiving the first level signal and acquiring a second time length under the condition of receiving the second level signal, so that the resistance value of the resistor to be measured is determined according to the first time length and the second time length.
In some embodiments, the resistive subcircuit to be tested includes: the first capacitor is connected with the first connecting end; one end of the second capacitor is used for being connected with a power supply, the other end of the second capacitor is grounded, the first connecting end is connected with one end of the second capacitor, the second connecting end is connected with the charge and discharge electronic circuit, and the first connecting end and the second connecting end are used for being connected with the resistor to be tested.
In some embodiments, the charge-discharge subcircuit further includes: a first resistor and a first diode; one end of the first resistor is connected with the second connecting end, the other end of the first resistor is grounded through the first capacitor, the other end of the first resistor is also connected with the first input end of the comparison sub-circuit, the positive electrode of the first diode is connected with one end of the first resistor, and the negative electrode of the first diode is connected with the output end of the comparison sub-circuit. In some embodiments, the comparison sub-circuit comprises: a second resistor, a third resistor, a fourth resistor, a fifth resistor and a first comparator; one end of the second resistor is used for being connected with a power supply, the other end of the second resistor is connected with one end of the third resistor, the other end of the third resistor is connected with the negative electrode of the first diode, the other end of the second resistor is also connected with one end of the fourth resistor, the other end of the fourth resistor is connected with one end of the fifth resistor, the other end of the fifth resistor is grounded, the first input end of the first comparator is connected with the other end of the first resistor, the second input end of the first comparator is connected with one end of the fourth resistor, the output end of the first comparator is connected with the negative electrode of the first diode, and the output end of the first comparator is also connected with the controller.
In some embodiments, the resistance measurement circuit further comprises a shaping sub-circuit; the controller is connected with the comparison sub-circuit through the shaping sub-circuit, and the shaping sub-circuit is used for filtering the first level signal and the second level signal and outputting the signals to the controller.
In some embodiments, the shaping sub-circuit comprises: a sixth resistor, a seventh resistor, a third capacitor and a second comparator; the first input end of the second comparator is grounded, the second input end of the second comparator is connected with the output end of the comparison sub-circuit, the output end of the second comparator is connected with one end of the seventh resistor, the other end of the seventh resistor is connected with the controller, one end of the sixth resistor is used for being connected with a power supply, the other end of the sixth resistor is connected with one end of the seventh resistor, one end of the third capacitor is connected with the other end of the seventh resistor, and the other end of the third capacitor is grounded.
In some embodiments, the shaping sub-circuit further comprises: an optocoupler isolator and an eighth resistor; the first input end of the optical coupler isolator is connected with the common connection end of the sixth resistor and the second comparator, the second input end of the optical coupler isolator is grounded, the first output end of the optical coupler isolator is respectively connected with one end of the eighth resistor and one end of the seventh resistor, the other end of the eighth resistor is used for being connected with a power supply, and the second output end of the optical coupler isolator is grounded.
The invention also provides a resistance measuring method for measuring the resistance to be measured, which comprises the following steps: outputting a measuring current according to the resistor to be measured; charging and discharging the first capacitor according to the measured current, and outputting a measured voltage value; comparing the measured voltage value with a first preset voltage value and outputting a first level signal under the condition that the first capacitor is charged, and comparing the measured voltage value with a second preset voltage value and outputting a second level signal under the condition that the first capacitor is discharged; and under the condition that a first level signal is received, acquiring a first time length, and under the condition that a second level signal is received, acquiring a second time length, so that the resistance value of the resistor to be measured is determined according to the first time length and the second time length.
In some embodiments, the determining the resistance Rs of the resistor to be measured according to the first duration and the second duration specifically includes: Wherein R 1、KI、K2 is a constant, t 1 is a first duration, and t 2 is a second duration.
The invention also provides an environment parameter measuring device which comprises the resistance type sensor and the resistance measuring circuit, wherein the resistance type sensor is connected with the resistance measuring circuit.
The embodiment of the invention has the beneficial effects that: compared with the prior art, the resistor measuring circuit provided by the embodiment of the invention measures the charging time and the discharging time of the charging and discharging electronic circuit through the controller, so that the resistance value of the resistor to be measured is calculated, the singlechip is not required to control the charging process, the time precision obtained by detection is high, and the measuring precision of the resistance value of the sensor can be effectively improved.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a schematic diagram of a resistance measurement circuit according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the resistance measurement circuit of FIG. 1;
FIG. 3 is another schematic diagram of the resistance measurement circuit of FIG. 1;
FIG. 4 is a schematic flow chart of a resistance measurement method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an environmental parameter measurement device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
Many existing sensors are resistive sensors, such as temperature sensors, humidity sensors, piezoresistive pressure sensors, etc., and the resistance of these sensors varies with the environment and the operating state, and by measuring the resistance, the current environmental parameters, such as temperature, humidity, pressure, etc., can be obtained.
The current method for measuring the resistance value of the resistance type sensor mainly comprises the following steps: the resistance voltage division mode is to measure the voltage obtained by dividing the resistance of the sensor through the singlechip, so that the resistance value of the sensor is calculated.
However, since the resistance value of the resistive sensor is not changed linearly, the range of the change is large, from several hundred ohms to several hundred kiloohms. The resistance of the voltage dividing resistor R1 can only be a fixed value, so that when the resistance of the sensor is far greater than the resistance of the voltage dividing resistor R1 or the resistance of the sensor is far smaller than the resistance of the voltage dividing resistor R1, the variation of the resistance of the sensor is small, the obtained voltage V1 is also tiny, and other variations cannot be detected by the singlechip, so that the detected resistance of the sensor has errors; in addition, as the power supply of the voltage dividing circuit and the power supply detected by the singlechip are required to be the same power supply, when the sensor power supply is required to be supplied by a safe isolation power supply due to safety reasons, the problem that the sensor power supply cannot be directly supplied by an optical coupling isolation method can be solved, and the singlechip control and communication circuit can be additionally added to realize a safe isolation power supply scheme, so that the cost requirement is increased.
Based on the above, the embodiment of the invention provides a resistance measurement circuit, a resistance measurement method and an environmental parameter measurement device, the resistance value is calculated by adopting a method for calculating charge and discharge time, the charge and discharge process is automatically completed by a hardware circuit, the cut-off voltage of charge and discharge is constant, the time length is directly in direct proportion to the resistance, the charge process is detected by a singlechip, the singlechip is not required to control the charge process, and the time precision obtained by detection is high, so that the measurement precision of the resistance value of a sensor can be effectively improved.
The resistance measuring circuit of the embodiment of the invention can be used as one of the functional units, is independently arranged in the environment parameter measuring device, and can also be used as an integrated functional module.
In particular, embodiments of the present invention are further described below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a structure of a resistance measurement circuit according to an embodiment of the present invention. As shown in fig. 1, the resistance measurement circuit 100 is used for measuring a resistance to be measured 200, and the resistance measurement circuit 100 includes a resistance to be measured sub-circuit 110, a charge/discharge sub-circuit 120, a comparison sub-circuit 130, a shaping sub-circuit 140, and a controller 150.
The resistor sub-circuit 110 to be tested is used for connecting the resistor 200 to be tested, the charge-discharge sub-circuit 120 is connected with the resistor sub-circuit 110 to be tested, the comparison sub-circuit 130 is connected with the charge-discharge sub-circuit 120, and the controller 150 is connected with the comparison sub-circuit 130 through the shaping sub-circuit 140. The resistor to be measured sub-circuit 110 is used for outputting a measurement current according to the resistor to be measured 200; the charge-discharge sub-circuit 120 is configured to charge and discharge according to the measurement current output by the resistor sub-circuit 110 to be measured, and output a measurement voltage value; the comparison sub-circuit 130 is configured to compare the measured voltage value with a first preset voltage value and output a first level signal when charging, and compare the measured voltage value with a second preset voltage value and output a second level signal when discharging; the shaping sub-circuit 140 is configured to filter the first level signal and the second level signal, and output the filtered signals to the controller 150; the controller 150 is configured to obtain a first time period when the first level signal is received, and obtain a second time period when the second level signal is received, so as to determine the resistance value of the resistor 200 to be measured according to the first time period and the second time period.
It should be noted that, the resistor to be measured 200 may be a resistor with a variable resistance (e.g. a resistive sensor, etc.) or a resistor with a constant resistance, in this embodiment, the resistor to be measured 200 is a resistive sensor, and two ends of the resistor to be measured 200 are connected to the resistor sub-circuit to be measured 110, so that when the resistance of the resistor to be measured 200 changes, the measurement current output by the resistor sub-circuit to be measured 110 also changes correspondingly.
In this embodiment, the resistance measurement circuit 100 measures the charging time and the discharging time of the charging and discharging electronic circuit 120 through the controller 150, so as to calculate the resistance value of the resistor 200 to be measured, and the singlechip is not required to control the charging process, so that the time precision obtained by detection is high, and the measurement precision of the resistance value of the sensor can be effectively improved.
Specifically, referring to fig. 2, the resistor sub-circuit under test 110 includes a first connection terminal J1, a second connection terminal J2, and a second capacitor C2. One end of the second capacitor C2 is connected to the power Vcc, the other end of the second capacitor C2 is grounded, the first connection end J1 is connected to one end of the second capacitor C2, the second connection end J2 is connected to the input end of the charge/discharge electronic circuit 120, and the first connection end J1 and the second connection end J2 are connected to the resistor 200 to be tested.
The first connection end J1 and the second connection end J2 may be formed in the same housing, and serve as a connection port, and the resistor 200 to be tested is connected to the connection port, so that two ends of the resistor 200 to be tested are connected to the first connection end J1 and the second connection end J2 respectively.
In this embodiment, the power supply Vcc outputs a current through the first connection terminal J1, the resistor to be measured 200, and the second connection terminal J2 in order, thereby outputting a measurement current to the charge/discharge sub-circuit 120. When the resistance of the resistor 200 to be measured changes, the magnitude of the measurement current also changes accordingly.
The charge-discharge electronic circuit 120 includes a first capacitor C1, a first resistor R1, and a first diode D1. One end of the first resistor R1 is connected to the second connection end J2, the other end of the first resistor R1 is grounded through the first capacitor C1, the other end of the first resistor R1 is further connected to the first input end of the comparison sub-circuit 130, the positive electrode of the first diode D1 is connected to one end of the first resistor R1, and the negative electrode of the first diode D1 is connected to the output end of the comparison sub-circuit 130.
In this embodiment, the first capacitor C1 is charged after the measurement current flows through the first resistor R1, and when the charging of the first capacitor C1 is completed, the first capacitor C1 flows into the output end of the comparison sub-circuit 130 after passing through the first resistor R1 and the first diode D1, so as to discharge, and the other end of the first resistor R1 outputs the measurement voltage value measured at the first capacitor C1 to the first input end of the comparison sub-circuit 130.
The comparison sub-circuit 130 includes a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a first comparator U1A. One end of the second resistor R2 is connected to the power Vcc, the other end of the second resistor R2 is connected to one end of the third resistor R3, the other end of the third resistor R3 is connected to the negative electrode of the first diode D1, the other end of the second resistor R2 is further connected to one end of the fourth resistor R4, the other end of the fourth resistor R4 is connected to one end of the fifth resistor R5, the other end of the fifth resistor R5 is grounded, the first input end of the first comparator U1A is connected to the other end of the first resistor R1, the second input end of the first comparator U1A is connected to one end of the fourth resistor R4, the output end of the first comparator U1A is connected to the negative electrode of the first diode D1, and the output end of the first comparator U1A is further connected to the controller 150 through the shaping sub-circuit 140.
The first comparator U1A may be a chip capable of discriminating and comparing the input signal, such as LM 393. In this embodiment, as shown in fig. 2, the 6 th pin of the first comparator U1A is a first input end (inverting input end) of the first comparator U1A, the 5 th pin of the first comparator U1A is a second input end (non-inverting input end) of the first comparator U1A, the 7 th pin of the first comparator U1A is an output end of the first comparator U1A, the 4 th pin of the first comparator U1A is grounded, and the 8 th pin of the first comparator U1A is connected to the power supply Vcc.
In this embodiment, when the voltage value of the second input end of the first comparator U1A is higher than the voltage value of the first input end, the output end of the first comparator U1A is in an open-drain high-resistance state; when the voltage value of the second input end of the first comparator U1A is lower than the voltage value of the first input end, the output end of the first comparator U1A is in a low level.
Therefore, when the output terminal of the first comparator U1A is in the open-drain high-resistance state, the second input terminal of the first comparator U1A divides the voltage with the second resistor R2 through the fourth resistor R4 and the fifth resistor R5 to obtain a first preset voltage value V 1, which includes:
Wherein, R 2、R4、R5 is the resistance of the second resistor, the fourth resistor and the fifth resistor, and V cc is the voltage of the power supply.
When the output end of the first comparator U1A is at a low level, since the third resistor R3 is connected to the output end of the first comparator U1A, the second input end of the first comparator U1A is divided by the fourth resistor R4, the fifth resistor R5 and the third resistor R3 in parallel and then divided by the second resistor R2, so as to obtain a second preset voltage value V 2, which has:
Wherein, R 2、R3、R4、R5 is the resistance of the second resistor, the third resistor, the fourth resistor and the fifth resistor, and V cc is the voltage value of the power supply.
It is noted that the second resistor, the third resistor, the fourth resistor and the fifth resistor are constant resistors, and the voltage value of the voltage Vcc is constant, so that the first preset voltage value V 1 and the second preset voltage value V 2 are also constant.
The shaping sub-circuit 140 includes a sixth resistor R6, a seventh resistor R7, a third capacitor C3, and a second comparator U1B. The first input end of the second comparator U1B is grounded, the second input end of the second comparator U1B is connected to the output end of the comparison sub-circuit 130, the output end of the second comparator U1B is connected to one end of the seventh resistor R7, the other end of the seventh resistor R7 is connected to the controller 150, one end of the sixth resistor R6 is connected to a power supply, the other end of the sixth resistor R6 is connected to one end of the seventh resistor R7, one end of the third capacitor C3 is connected to the other end of the seventh resistor R7, and the other end of the third capacitor C3 is grounded.
The second input terminal of the second comparator U1B is connected to the output terminal of the comparison sub-circuit 130, specifically: the second input terminal of the second comparator U1B is connected to the output terminal of the first comparator U1A.
The first input terminal of the second comparator U1B is grounded, specifically: the first input end of the second comparator U1B is connected with the other end of the fourth resistor R4 and grounded through the fifth resistor R5.
The second comparator U1B may be a chip capable of shaping and filtering the input signal, such as LM 393. In this embodiment, as shown in fig. 2, the 2 nd pin of the second comparator U1B is the first input end (inverting input end) of the second comparator U1B, the 3 rd pin of the second comparator U1B is the second input end (non-inverting input end) of the second comparator U1B, the 1 st pin of the second comparator U1B is the output end of the second comparator U1B, the 4 th pin of the second comparator U1B is grounded, and the 8 th pin of the second comparator U1B is connected to the power supply Vcc.
In the present embodiment, by providing the shaping sub-circuit 140 to shape the waveform (including the first level signal and the second level signal) output from the comparison sub-circuit 130, a standard rectangular wave can be obtained.
Optionally, in some other embodiments, to improve the safety of the resistance measurement circuit, as shown in fig. 3, the shaping sub-circuit 140 further includes an optocoupler isolator U2 and an eighth resistor R8. The first input end of the optocoupler isolator U2 is connected to the common connection end of the sixth resistor R6 and the second comparator U1B, the second input end of the optocoupler isolator U2 is grounded, the first output end of the optocoupler isolator U2 is connected to one end of the eighth resistor R8 and one end of the seventh resistor R7, the other end of the eighth resistor R8 is connected to a power supply, and the second output end of the optocoupler isolator U2 is grounded. By arranging the optocoupler isolator U2 to propagate the waveform signals, different power supplies can be used for supplying power on two sides of the optocoupler isolator U2, for example, a safe and reliable isolation power supply is used for supplying power on the side of a resistor to be tested, and the effect of isolating the safe power supply for supplying power can be realized without adding a protection device additionally.
The controller 150 may be an Application-specific integrated Circuit (ASIC) including a processor, having control processing functions, a field-programmable gate array (Field Programmable GATE ARRAY, FPGA), a single-chip microcomputer, or the like. In this embodiment, the controller 150 is a single-chip microcomputer, and an input/output pin of the controller 150 is connected to an output end of the shaping sub-circuit 140 (i.e. the other end of the seventh resistor R7). The controller 150 is configured to: when the first level signal output by the shaping sub-circuit 140 is received, a first time length is acquired, and when the second level signal output by the shaping sub-circuit 140 is received, a second time length is acquired, so that the resistance value of the resistor 200 to be measured is determined according to the first time length and the second time length.
The signal output by the shaping sub-circuit 140 is a shaped rectangular wave, and includes a first level signal and a second level signal, where in this embodiment, the first level signal is a high level signal, and the second level signal is a low level signal. The first time length is the duration of the first level signal in one period, and the second time length is the duration of the second level signal in the same period. The controller 150 starts to calculate the first time length when receiving the first level signal, ends the first time length calculation and triggers the calculation of the second time length when receiving the second level signal, ends the second time length calculation and triggers the calculation of the first time length again when receiving the first level signal again, and repeats continuously. The controller 150 calculates the resistance of the resistor 200 to be measured according to the first duration and the second duration in the same period.
It will be appreciated that in some other embodiments, the shaping sub-circuit 140 may be omitted, the output terminal of the first comparator U1A is directly connected to the controller 150, and the controller 150 determines the resistance value of the resistor to be measured 200 by receiving the waveform signal output from the output terminal of the first comparator U1A and obtaining the first duration and the second duration.
In this embodiment, the operation of the resistance measurement circuit 100 is approximately as follows: when the first capacitor C1 is charged for the first time, since the voltage on the first capacitor C1 is 0V, the voltage value of the second input end of the first comparator U1A is greater than the measured voltage value of the first input end of the first comparator U1A, and the output end of the first comparator U1A is in an open-drain high-resistance state, at this time, the voltage value of the second input end of the first comparator U1A is a first preset voltage value; the power supply Vcc supplies power, the measuring current charges the first capacitor C1 through the resistor to be measured 200 and the first resistor R1, the measuring voltage value of the first capacitor C1 continuously rises, when the measuring voltage value reaches a first preset voltage value, the output end of the first comparator U1A outputs a low level, the charging of the first capacitor C1 is finished, and the first capacitor C1 begins to discharge.
When the first capacitor C1 is discharged, since the output end of the first comparator U1A outputs a low level, the voltage value of the second input end of the first comparator U1A is a second preset voltage value, the discharge current flows into the output end of the first comparator U1A through the first resistor R1 and the first diode D1, the measured voltage value drops, when the measured voltage value drops to the second preset voltage value, the output end of the first comparator U1A is in an open-drain high-resistance state, the first capacitor C1 cannot continue to discharge to the output end of the first comparator U1A, the discharging process of the first capacitor C1 is ended, and the first capacitor C1 is charged again.
When the first capacitor C1 is charged again, the output end of the first comparator U1A is in an open-drain high-resistance state, at this time, the voltage value of the second input end of the first comparator U1A is a first preset voltage value, the measured voltage value starts to rise from the second preset voltage value, when the measured voltage value reaches the first preset voltage value, the output end of the first comparator U1A outputs a low level, the first capacitor C1 is charged, the first capacitor C1 starts to discharge … … repeatedly in this way, and enters a stable oscillation state, and after the shaping sub-circuit 140 is shaped, the controller 150 receives a stable rectangular wave.
The resistance value of the resistor to be measured is determined according to the first time length and the second time length, and specifically comprises the following steps:
First time length
Second duration of time
Wherein, R s、R1 is the resistance of the resistor to be tested and the resistance of the first resistor, C 2 is the capacitance of the second capacitor, V 1、V2 is the first preset voltage and the second preset voltage, V cc is the power voltage, and V F-D1 is the forward voltage drop of the first diode D1.
It is assumed that the number of the sub-blocks,Then K 1、K2 is a constant value, then
I.e.
Substituting the values of the first time period t 1 and the second time period t 2 into the above formula can obtain the resistance value of the resistor 200 to be measured.
In this embodiment, the resistance measurement circuit 100 performs charging and discharging through the charge and discharge electronic circuit 120, outputs a measured voltage value, compares the measured voltage value with a first preset voltage value and a second preset voltage value, and outputs a first level signal and a second level signal, respectively, where the controller 150 obtains a first duration of the first level signal and a second duration of the second level signal, so as to calculate a resistance value of the resistor to be measured, and the hardware circuit automatically performs charging and discharging to generate a charging cut-off voltage and a discharging cut-off voltage, so that a singlechip is not required to control a charging process, the time precision obtained by detection is high, and the detected data is irrelevant to the precision of the capacitor, thereby effectively improving the measurement precision of the resistance value of the sensor.
Fig. 4 is a flow chart of a resistance measurement method according to an embodiment of the present invention. As shown in fig. 4, the resistance measurement method is applied to the resistance measurement circuit 100 of the above embodiment, the resistance measurement circuit 100 is used to measure the resistance 200 to be measured, and the resistance measurement method includes:
310. outputting a measuring current according to the resistor to be measured;
320. Charging and discharging are carried out according to the measuring current, and a measuring voltage value is output;
330. Comparing the measured voltage value with a first preset voltage value and outputting a first level signal when charging, and comparing the measured voltage value with a second preset voltage value and outputting a second level signal when discharging;
340. And when the first level signal is received, acquiring a first time length, and when the second level signal is received, acquiring a second time length, thereby determining the resistance value of the resistor to be tested according to the first time length and the second time length.
The resistance value of the resistor to be measured is determined according to the first duration and the second duration, specifically:
calculating to obtain the resistance value of the resistor to be measured, which comprises the following steps:
Wherein R 1、K1、K2 is a constant, t 1 is a first duration, and t 2 is a second duration.
The method can be applied to the resistance measurement circuit 100 provided by the embodiment of the invention, and has the beneficial effects of the resistance measurement circuit. Technical details not described in detail in the present embodiment can be seen in the resistance measurement circuit provided in the embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an environmental parameter measurement device according to an embodiment of the present invention. As shown in fig. 5, the environmental parameter measuring device 400 includes a resistance type sensor 410 and a resistance measuring circuit 100, and the resistance type sensor 410 is connected to the resistance measuring circuit 100.
The resistance measurement circuit 100 is the same as that in the above example, and will not be described here again.
Among them, the resistive sensor 410 may be a temperature sensor, a humidity sensor, or the like for measuring a ring-shaped parameter.
Optionally, the environmental parameter measuring device 400 may further include a control module 420, where the control module 420 receives the environmental parameter measured by the resistance measuring circuit 100 and performs a control operation according to the environmental parameter.
The environmental parameter measurement device 400 in this embodiment includes the resistance measurement circuit 100 with high measurement accuracy, so that the measurement accuracy of the resistance value of the sensor can be effectively improved, and the control accuracy can be further improved.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the invention, the steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. A resistance measurement circuit for measuring a resistance to be measured, the resistance measurement circuit comprising:
The resistor to be measured sub-circuit is used for connecting the resistor to be measured and outputting a measuring current according to the resistor to be measured;
The charging and discharging sub-circuit comprises a first capacitor, wherein the first capacitor is connected with the resistor sub-circuit to be tested, and is used for charging and discharging according to the measuring current and outputting a measuring voltage value;
the comparison sub-circuit is connected with the charge-discharge sub-circuit and is used for comparing the measured voltage value with a first preset voltage value and outputting a first level signal under the condition that the first capacitor is charged, and comparing the measured voltage value with a second preset voltage value and outputting a second level signal under the condition that the first capacitor is discharged;
The controller is connected with the comparison sub-circuit and used for acquiring a first duration when the first level signal is received, wherein the first duration is the duration of the first level signal in one period, and acquiring a second duration when the second level signal is received, and the second duration is the duration of the second level signal in the same period, so that the resistance value of the resistor to be tested is determined according to the first duration and the second duration.
2. The resistance measurement circuit of claim 1, wherein the resistance sub-circuit under test comprises: the first capacitor is connected with the first connecting end;
One end of the second capacitor is used for being connected with a power supply, the other end of the second capacitor is grounded, the first connecting end is connected with one end of the second capacitor, the second connecting end is connected with the charge and discharge electronic circuit, and the first connecting end and the second connecting end are used for being connected with the resistor to be tested.
3. The resistance measurement circuit of claim 2, wherein the charge-discharge electronic circuit further comprises: a first resistor and a first diode;
One end of the first resistor is connected with the second connecting end, the other end of the first resistor is grounded through the first capacitor, the other end of the first resistor is also connected with the first input end of the comparison sub-circuit, the positive electrode of the first diode is connected with one end of the first resistor, and the negative electrode of the first diode is connected with the output end of the comparison sub-circuit.
4. A resistance measurement circuit according to claim 3, wherein the comparison sub-circuit comprises: a second resistor, a third resistor, a fourth resistor, a fifth resistor and a first comparator;
one end of the second resistor is used for being connected with a power supply, the other end of the second resistor is connected with one end of the third resistor, the other end of the third resistor is connected with the negative electrode of the first diode, the other end of the second resistor is also connected with one end of the fourth resistor, the other end of the fourth resistor is connected with one end of the fifth resistor, the other end of the fifth resistor is grounded, the first input end of the first comparator is connected with the other end of the first resistor, the second input end of the first comparator is connected with one end of the fourth resistor, the output end of the first comparator is connected with the negative electrode of the first diode, and the output end of the first comparator is also connected with the controller.
5. The resistance measurement circuit of any one of claims 1-4, wherein the resistance measurement circuit further comprises a shaping sub-circuit;
the controller is connected with the comparison sub-circuit through the shaping sub-circuit, and the shaping sub-circuit is used for filtering the first level signal and the second level signal and outputting the signals to the controller.
6. The resistance measurement circuit of claim 5, wherein the shaping sub-circuit comprises: a sixth resistor, a seventh resistor, a third capacitor and a second comparator;
The first input end of the second comparator is grounded, the second input end of the second comparator is connected with the output end of the comparison sub-circuit, the output end of the second comparator is connected with one end of the seventh resistor, the other end of the seventh resistor is connected with the controller, one end of the sixth resistor is used for being connected with a power supply, the other end of the sixth resistor is connected with one end of the seventh resistor, one end of the third capacitor is connected with the other end of the seventh resistor, and the other end of the third capacitor is grounded.
7. The resistance measurement circuit of claim 6, wherein the shaping sub-circuit further comprises: an optocoupler isolator and an eighth resistor;
The first input end of the optical coupler isolator is connected with the common connection end of the sixth resistor and the second comparator, the second input end of the optical coupler isolator is grounded, the first output end of the optical coupler isolator is respectively connected with one end of the eighth resistor and one end of the seventh resistor, the other end of the eighth resistor is used for being connected with a power supply, and the second output end of the optical coupler isolator is grounded.
8. A method of measuring resistance to be measured, the method comprising:
Outputting a measuring current according to the resistor to be measured;
charging and discharging the first capacitor according to the measured current, and outputting a measured voltage value;
Comparing the measured voltage value with a first preset voltage value and outputting a first level signal under the condition that the first capacitor is charged, and comparing the measured voltage value with a second preset voltage value and outputting a second level signal under the condition that the first capacitor is discharged;
under the condition that a first level signal is received, a first time length is obtained, the first time length is the duration time length of the first level signal in one period, under the condition that a second level signal is received, a second time length is obtained, and the second time length is the duration time length of the second level signal in the same period, so that the resistance value of the resistor to be measured is determined according to the first time length and the second time length.
9. The method according to claim 8, wherein the determining the resistance Rs of the resistor to be measured according to the first duration and the second duration is specifically:
wherein, 、/>、/>Is constant,/>For the first duration,/>For a second duration.
10. An environmental parameter measuring device comprising a resistive sensor and a resistance measuring circuit according to any one of claims 1-7, the resistive sensor being connected to the resistance measuring circuit.
CN201811184671.2A 2018-10-11 2018-10-11 Resistance measurement circuit, method and environment parameter measurement device Active CN109188095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811184671.2A CN109188095B (en) 2018-10-11 2018-10-11 Resistance measurement circuit, method and environment parameter measurement device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811184671.2A CN109188095B (en) 2018-10-11 2018-10-11 Resistance measurement circuit, method and environment parameter measurement device

Publications (2)

Publication Number Publication Date
CN109188095A CN109188095A (en) 2019-01-11
CN109188095B true CN109188095B (en) 2024-05-17

Family

ID=64947848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811184671.2A Active CN109188095B (en) 2018-10-11 2018-10-11 Resistance measurement circuit, method and environment parameter measurement device

Country Status (1)

Country Link
CN (1) CN109188095B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113125856B (en) * 2021-03-04 2023-01-13 中国神华能源股份有限公司国华电力分公司 Resistance testing device, method and equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63163179A (en) * 1986-12-25 1988-07-06 Canon Inc Resistance value measuring circuit
CN1126514A (en) * 1994-04-05 1996-07-10 菲利浦电子有限公司 Resistance measuring circuit, and thermal appliance, electrical thermometer and coldgenerating appliance including such a measuring circuit
CN2365677Y (en) * 1999-03-15 2000-02-23 江苏新科电子集团空调器制造有限公司 Apparatus for measuring resistance quantity with one chip machine
JP2000055954A (en) * 1998-06-02 2000-02-25 Glory Ltd Circuit and method for measuring resistance value
JP2001162851A (en) * 1999-12-07 2001-06-19 Fuji Photo Film Co Ltd Method and device for measuring resistance value of thermal head and thermal printer having the same
CN1455262A (en) * 2002-05-04 2003-11-12 朱筱杰 Resistance measuring circuit and detection, control and alarm apparatus comprising said circuit
WO2010043432A1 (en) * 2008-10-13 2010-04-22 Robert Bosch Gmbh Device and method for measuring a resistance value
CN201477158U (en) * 2009-07-30 2010-05-19 东莞市华虹电子有限公司 Element resistance value detection circuit
CN101788609A (en) * 2010-02-09 2010-07-28 华为终端有限公司 Resistance value measuring method and device or capacitance value measuring method and device
CN202145221U (en) * 2011-07-22 2012-02-15 湘潭市华宇科技有限公司 Device utilizing one-chip microcomputer for measuring resistance value
CN103513106A (en) * 2012-06-26 2014-01-15 中兴通讯股份有限公司 Measuring method, measuring circuit and monitoring apparatus
CN107656140A (en) * 2017-08-11 2018-02-02 中国科学院地质与地球物理研究所 A kind of method and circuit that resistance is measured using embeded processor digital port
CN209280808U (en) * 2018-10-11 2019-08-20 深圳和而泰智能控制股份有限公司 A kind of resistance measuring circuit and environmental parameter measuring device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10134635C1 (en) * 2001-07-17 2003-01-16 Texas Instruments Deutschland Resistance measuring circuit e.g. for heating energy meter has charged capacitance discharged via reference resistance and measuring resistance during successive cycles

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63163179A (en) * 1986-12-25 1988-07-06 Canon Inc Resistance value measuring circuit
CN1126514A (en) * 1994-04-05 1996-07-10 菲利浦电子有限公司 Resistance measuring circuit, and thermal appliance, electrical thermometer and coldgenerating appliance including such a measuring circuit
JP2000055954A (en) * 1998-06-02 2000-02-25 Glory Ltd Circuit and method for measuring resistance value
CN2365677Y (en) * 1999-03-15 2000-02-23 江苏新科电子集团空调器制造有限公司 Apparatus for measuring resistance quantity with one chip machine
JP2001162851A (en) * 1999-12-07 2001-06-19 Fuji Photo Film Co Ltd Method and device for measuring resistance value of thermal head and thermal printer having the same
CN1455262A (en) * 2002-05-04 2003-11-12 朱筱杰 Resistance measuring circuit and detection, control and alarm apparatus comprising said circuit
WO2010043432A1 (en) * 2008-10-13 2010-04-22 Robert Bosch Gmbh Device and method for measuring a resistance value
CN201477158U (en) * 2009-07-30 2010-05-19 东莞市华虹电子有限公司 Element resistance value detection circuit
CN101788609A (en) * 2010-02-09 2010-07-28 华为终端有限公司 Resistance value measuring method and device or capacitance value measuring method and device
CN202145221U (en) * 2011-07-22 2012-02-15 湘潭市华宇科技有限公司 Device utilizing one-chip microcomputer for measuring resistance value
CN103513106A (en) * 2012-06-26 2014-01-15 中兴通讯股份有限公司 Measuring method, measuring circuit and monitoring apparatus
CN107656140A (en) * 2017-08-11 2018-02-02 中国科学院地质与地球物理研究所 A kind of method and circuit that resistance is measured using embeded processor digital port
CN209280808U (en) * 2018-10-11 2019-08-20 深圳和而泰智能控制股份有限公司 A kind of resistance measuring circuit and environmental parameter measuring device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种新的电阻测量方法的研究;李耀辉;《中国优秀硕士学位论文全文数据库 工程科技II辑》;C042-3477 *

Also Published As

Publication number Publication date
CN109188095A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
TWI515413B (en) Bridge sensor signal detection circuit
CN110726921B (en) IGBT module service life monitoring method
CN108225495A (en) A kind of capacitance level transducer on-line measurement system and its method
CN106768459B (en) A kind of Temperature and Humidity circuit and control method
CN102928109A (en) Signal collecting circuit
CN107656140B (en) A kind of method and circuit using embeded processor digital port measurement resistance
CN109188095B (en) Resistance measurement circuit, method and environment parameter measurement device
CN106707009B (en) Wide-range high-precision current statistical circuit
CN104390718A (en) Temperature detection method
CN107192871A (en) A kind of differential detection circuit of positive counter current
KR20110080140A (en) Circuit and method for detecting absent battery condition in a linear charger
CN110687353B (en) Insulation resistance detection method, device, system and storage medium
CN103983401A (en) Equal-precision measuring method used for differential pressure transducer
RU2392629C1 (en) Microcontroller device for capacity and resistance measurement
CN104897964B (en) A kind of circuit and method for measuring variable resistor resistance
CN101329215A (en) Output measuring circuit and measuring method of capacitance differential pressure transducer
TW201502535A (en) Test device and method
JP2016205818A (en) Capacitance detecting device, and deterioration detecting device, for capacitors
CN106918354B (en) Sensing system and applicable sensing information determination method
CN209280808U (en) A kind of resistance measuring circuit and environmental parameter measuring device
CN107870298B (en) Circuit parameter detection circuit and method of voltage dividing circuit and electric energy meter
CN110221094B (en) Airflow detection circuit and device
CN218496289U (en) Temperature module verification circuit
US20140239970A1 (en) Thermocouple open-circuit detection circuit and method
EP1070965A2 (en) Method for measuring an electric voltage and arrangement for implementing the method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant