CN102768078A - Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor - Google Patents

Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor Download PDF

Info

Publication number
CN102768078A
CN102768078A CN2012102230475A CN201210223047A CN102768078A CN 102768078 A CN102768078 A CN 102768078A CN 2012102230475 A CN2012102230475 A CN 2012102230475A CN 201210223047 A CN201210223047 A CN 201210223047A CN 102768078 A CN102768078 A CN 102768078A
Authority
CN
China
Prior art keywords
constant current
current source
thermal resistance
resistance
value
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.)
Granted
Application number
CN2012102230475A
Other languages
Chinese (zh)
Other versions
CN102768078B (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.)
Shanghai University of Electric Power
University of Shanghai for Science and Technology
Original Assignee
Shanghai University of Electric Power
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 Shanghai University of Electric Power filed Critical Shanghai University of Electric Power
Priority to CN201210223047.5A priority Critical patent/CN102768078B/en
Publication of CN102768078A publication Critical patent/CN102768078A/en
Application granted granted Critical
Publication of CN102768078B publication Critical patent/CN102768078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an automatic resistance compensation method for temperature-measuring conductors for a two-wire thermal resistor. Capacitors are connected to two ends of a thermal resistor in parallel according to characteristics of the capacitors. Before powering on, capacitance is zero, namely no charge is carried, capacitive reactance is smallest, power-on transient current is high, and short-circuit occurs nearly. After a time of powering on, the capacitors are fully charged, and the capacitive reactance is largest and causes disconnection. A constant current source is used to supply power. An acquisition circuit acquires voltages of the two-wire thermal resistor respectively when the capacitors are fully charged and powerless, the two voltages are subtracted from each other, voltage drop due to two wire resistance values is removed, and an accurate value of the thermal resistor is obtained by calculating. The automatic resistance compensation method for temperature-measuring conductors for the two-wire thermal resistor is applicable to various temperature measurements in industrial field, precision is greatly improved as compared with that of common two-wire temperature measurement, a certain level of requirements are met, hardware resources can be saved, and the method is simple, efficient, economic and highly reliable and is applicable to various measurements in industrial fields.

Description

Two-wire system thermal resistance thermometric conductor resistance is the method for compensation automatically
Technical field
The present invention relates to a kind of temperature measurement technology, particularly a kind of two-wire system thermal resistance thermometric conductor resistance is the method for compensation automatically.
Background technology
Temperature is one of production process parameters the most frequently used in the present commercial production, and the measuring method of therefore studying temperature is significant with device.Practical temperature sensor kind is a lot, abroad is main (accounting for 2/3) with the radiation temperature measurement, domestic then adopt thermopair and thermal resistances (accounting for 98%) more.
The lead-in wire of thermal resistance mainly contains two-wire system, three-wire system and three kinds of modes of four-wire system at present.
Two-wire system: respectively connect mode that a lead draws resistance signal at the two ends of thermal resistance two-wire system.This lead-in wire method is very simple, but certainly exists lead resistance R owing to connect lead, and the size of resistance R is relevant with the factor of the material of lead and length, and therefore this lead-in wire mode only is applicable to the occasion that measuring accuracy is lower.
Three-wire system: the end at the root of thermal resistance connects a lead-in wire; The mode that the other end connects two lead-in wires is called three-wire system; Common and the supporting use of electric bridge of this mode can be eliminated the influence of lead resistance preferably, is the most frequently used lead resistance in the industrial process control.
Four-wire system: the mode that respectively connects two leads at the root two ends of thermal resistance is called four-wire system, and wherein two lead-in wires provide steady current I for thermal resistance, convert R to voltage signal U, causes secondary instrument to U through other two lead-in wires again.This lead-in wire mode can be eliminated the resistance influence of lead-in wire fully, is mainly used in high-precision temperature detection.
Therefore, not only there be the influence of conductor resistance to the thermal resistance resistance in traditional two-wire system thermal resistance resistance measuring method, but also exists the temperature that causes because of temperature variation to float.
Summary of the invention
It is low and receive the big problem of extraneous thermal effect to The present invention be directed to the two line system temp measuring accuracy; A kind of two-wire system thermal resistance thermometric conductor resistance method of compensation has automatically been proposed; Utilize capacitor charge and discharge principle and single-chip microcomputer function, ingeniously accurately calculate thermoelectric resistance.
Technical scheme of the present invention is: a kind of two-wire system thermal resistance thermometric conductor resistance is the method for compensation automatically, specifically comprises the steps:
1) set up sample circuit: circuit is made up of the single-chip microcomputer and the constant current source of interior band A/D conversion, and constant current source output connects the two-wire system thermal resistance, and the A/D port of single-chip microcomputer connects the two-wire system thermal resistance, electric capacity of parallel connection at the thermal resistance two ends, and this electric capacity is sampling capacitance;
2) sampling: set the A/D converter sampling time, the port of single-chip microcomputer output control constant current source switch, at first ports-settings is 1; Close constant current source, to the discharge delay time, ports-settings is 0; Open constant current source, rise to the specified working current time to the constant current source electric current, A/D converter begins sample voltage value; Compose sampled value to V1, and then delay time the duration of charging, A/D converter carries out the second time and gathers; Compose collection second time value to V2, single-chip microcomputer calculates the voltage V3=V1-V2 on the thermal resistance, and voltage obtains the thermal resistance resistance divided by constant current source output constant current value;
3) capacitance verification: replace electric capacity with shorting stub, A/D converter collects actual V1 value, comparison step 2) in V1 value,, return step 1) change capacitor's capacity after, repeating step 2 different like two values) sample, be worth identical up to two.
The said sampling capacitance duration of charging is less than the specified working current time of rising to of constant current source.
Single-chip microcomputer is selected the MC9S12XS128 single-chip microcomputer for use in the said constant current source, the A/D converter of inner 12 successive approximations.
Beneficial effect of the present invention is: two-wire system thermal resistance thermometric conductor resistance of the present invention is the method for compensation automatically; Can be applicable in the measurement of industry spot all temps; Compare common two line system temp measuring accuracy and improve greatly, reach certain class requirement, can save hardware resource; Simply, efficiently, economy, reliability is high, can be applicable to during the industry spot all temps measures.
Description of drawings
Fig. 1 realizes circuit diagram for the method that two-wire system thermal resistance thermometric conductor resistance of the present invention compensates automatically;
Fig. 2 is constant current source powered on moment capacitance short-circuit isoboles in the method for the automatic compensation of two-wire system thermal resistance thermometric conductor resistance of the present invention;
Fig. 3 is the automatic method constant current source of the compensation electric capacity isoboles that opens circuit that powers on behind the certain hour of two-wire system thermal resistance thermometric conductor resistance of the present invention;
The method program process flow diagram that Fig. 4 compensates for two-wire system thermal resistance thermometric conductor resistance of the present invention automatically.
Embodiment
The two-wire system thermal resistance thermometric conductor resistance method of compensation automatically is based on the single-chip microcomputer acquisition system, adds a sampling capacitance that is skillfully constructed, and system uses the simplest equipment to solve a complicated problems.
Like Fig. 1 circuit diagram, comprise by the monolithic unit and the constant current source of interior band A/D conversion and forming that constant current source output connects the two-wire system thermal resistance and supplies power to it; The A/D port of single-chip microcomputer connects the two-wire system thermal resistance, capacitor C of parallel connection at the thermal resistance two ends, and this capacitor C is referred to as sampling capacitance; Electric capacity is equivalent to a container of containing electricity, and it is a capacitive to the impedance of electric current, therefore is called capacitive reactance; A key property of capacitive reactance is exactly to be directly proportional with current electric capacity; The current electric capacity of electric capacity is big more, and capacitive reactance is big more, and is just big more to the impedance of electric current; The current electric capacity of electric capacity is more little, and capacitive reactance is more little, and is just more little to the impedance of electric current.Electric capacity is before powering on, and being equivalent to electric capacity is zero, promptly is not with any electric charge, and capacitive reactance at this moment is also minimum; The energising immediate current is very big, almost is equivalent to short circuit, after a period of time that powers on; Owing to be full of electric charge on the electric capacity, capacitive reactance at this moment is maximum, has played the effect of opening circuit.
This scheme is through the open and close of the I/O mouth control constant current source of single-chip microcomputer.When opening constant current source, upper reaches, thermal resistance loop excess current owing to just power on, is not with any electric charge on the capacitor C, almost be equivalent to short circuit, and its isoboles is as shown in Figure 2, so the voltage V1 that utilizes A/D to sample is exactly two voltage sums on the conductor resistance; After constant current source is opened a period of time; Be full of electric charge on the electric capacity; Total be equivalent to open circuit, isoboles is as shown in Figure 3, be exactly two conductor resistances of voltage V2 that at this moment sample through A/D again and the voltage on the thermal resistance resistance; Can calculate the voltage V3 on the thermal resistance, i.e. V3=V2-V1 through single-chip microcomputer.What the present invention adopted is constant current source, calculates the resistance that voltage on the thermal resistance has also just been known thermal resistance, has so just eliminated the influence of conductor resistance to the thermal resistance resistance, thereby has made temp measuring system more accurate.
Program circuit of the present invention is as shown in Figure 4.Master routine is at first set bus clock, for transformation period of A/D provides clock reference.Afterwards A/D converter is carried out initialization, promptly to the setting of registers such as the working method of A/D converter, switching time, precision.I/O mouth to single-chip microcomputer is that the PA0 mouth is set to delivery outlet then, and at first is set at 1, and the purpose of doing like this is to close constant current source, and the 100ms that delays time afterwards lets capacitor discharge arrive zero charge.After electric capacity had been put electricity, PA0 was set at 0, opened constant current source.And then time-delay 20us, purpose is in order to let constant current source rise to specified working current 1mA.Carry out A/D sampling again, compose the value of adopting to V1, V1 is exactly the voltage on the conductor resistance that measures of the short-circuiting effect of electric capacity powered on moment.At time-delay 100ms, let electric capacity be full of electricity then, make electric capacity form the effect that opens circuit, carry out the A/D sampling at last again, compose the value of adopting to V2, V2 is exactly the voltage on conductor resistance and the thermal resistance all-in resistance.Like this, just can learn the voltage V3=V1-V2 on the thermal resistance.
Image data is like table 1-5, and table 1 is worked as C=22uf, the sampling code value of V1 during t=5.3us; Table 2 is worked as C=22uf, the sampling code value of V1 during t=10.6us; Table 3 is worked as C=22uf, the sampling code value of V1 during t=21.2us; Table 4 is worked as C=47uf, the sampling code value of V1 during t=21.2us; Table 5 is worked as C=680uf, the sampling code value of V1 during t=31.8us.
Table 1
V1 0 0 0 0 0 0 0 0 0 0
Table 2
V1 0 0 0 0 0 0 0 0 0 0
Table 3
V1 5 5 5 5 5 8 5 5 8 5
Table 4
V1 4 4 4 4 4 4 5 4 4 4
Table 5
V1 10 10 10 10 10 10 10 10 10 10
When experimental data is gathered, replace electric capacity with a shorting stub, can collect V1 value actual correct on the conductor resistance like this, V1=4V.
From experimental data, can find out, when capacitance is 22uf and 47uf, just can adopt data when having only time delay, that is to say, the rise time 10.6us < t < 21.2us of constant current source greater than 21.2us.Simultaneously, the value that capacitance C adopts when big is bigger than the value error that capacitance C hour adopts, thus can not choose bigger electric capacity in order to obtain bigger capacitor charging time, otherwise be easy to generate than mistake.Through too much group experiment contrast, the value that system adopts when capacitance C=47uf is the most accurately, and capacitor C is full of the rise time of the time of electricity less than constant current source, and measured effect is fine.So native system adopts the sampling capacitance of 47uf.
Simultaneously can find that promptly used the electric capacity of suitable capacitance value, still there is certain error in the data value of adopting.This is that the reference voltage of sampling is 5V because the data sampling of native system adopts is the A/D converter of 12 successive approximations carrying of MC9S12XS128 single-chip microcomputer inside, thus minimum can detected analog quantity changing value be 1/2 12, the sampling resolution that is to say native system is 5/2 12=1.221mV.
The V1=4 of code value accurately that systematic survey obtains, but the code value of sampling sometimes is 5, that is to say minimum one that differs between actual value and the exact value to A/D, and promptly the maximal value of native system absolute error is the sampling resolution of A/D.The range of native system is .According to the accuracy of instrument computing formula:
Figure 122784DEST_PATH_IMAGE002
; Therefore, the native system precision is:
Figure 2012102230475100002DEST_PATH_IMAGE003
; So the precision that the native system thermal resistance is measured just is 0.024%.

Claims (3)

1. the method that two-wire system thermal resistance thermometric conductor resistance compensates automatically is characterized in that, specifically comprises the steps:
1) set up sample circuit: circuit is made up of the single-chip microcomputer and the constant current source of interior band A/D conversion, and constant current source output connects the two-wire system thermal resistance, and the A/D port of single-chip microcomputer connects the two-wire system thermal resistance, electric capacity of parallel connection at the thermal resistance two ends, and this electric capacity is sampling capacitance;
2) sampling: set the A/D converter sampling time, the port of single-chip microcomputer output control constant current source switch, at first ports-settings is 1; Close constant current source, to the discharge delay time, ports-settings is 0; Open constant current source, rise to the specified working current time to the constant current source electric current, A/D converter begins sample voltage value; Compose sampled value to V1, and then delay time the duration of charging, A/D converter carries out the second time and gathers; Compose collection second time value to V2, single-chip microcomputer calculates the voltage V3=V1-V2 on the thermal resistance, and voltage obtains the thermal resistance resistance divided by constant current source output constant current value;
3) capacitance verification: replace electric capacity with shorting stub, A/D converter collects actual V1 value, comparison step 2) in V1 value,, return step 1) change capacitor's capacity after, repeating step 2 different like two values) sample, be worth identical up to two.
2. the method that compensates automatically according to the said two-wire system thermal resistance of claim 1 thermometric conductor resistance is characterized in that the said sampling capacitance duration of charging is less than the specified working current time of rising to of constant current source.
3. the method that compensates automatically according to the said two-wire system thermal resistance of claim 1 thermometric conductor resistance is characterized in that, single-chip microcomputer is selected the MC9S12XS128 single-chip microcomputer for use in the said constant current source, the A/D converter of inner 12 successive approximations.
CN201210223047.5A 2012-07-02 2012-07-02 Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor Active CN102768078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210223047.5A CN102768078B (en) 2012-07-02 2012-07-02 Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210223047.5A CN102768078B (en) 2012-07-02 2012-07-02 Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor

Publications (2)

Publication Number Publication Date
CN102768078A true CN102768078A (en) 2012-11-07
CN102768078B CN102768078B (en) 2014-02-26

Family

ID=47095561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210223047.5A Active CN102768078B (en) 2012-07-02 2012-07-02 Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor

Country Status (1)

Country Link
CN (1) CN102768078B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108709656A (en) * 2018-07-23 2018-10-26 昆明理工大学 A method of eliminating circuit and its thermometric that thermal resistance is used for lead resistance when thermometric
CN111811670A (en) * 2020-07-07 2020-10-23 九阳股份有限公司 Temperature detection circuit of plug-in type sensor and cooking utensil
CN112649107A (en) * 2020-11-17 2021-04-13 惠州拓邦电气技术有限公司 Temperature detection circuit, temperature detection method and electric tool
CN113432743A (en) * 2021-06-21 2021-09-24 力高(山东)新能源技术有限公司 Acquisition circuit and method for improving acquisition precision of temperature sensor
CN113820030A (en) * 2021-09-18 2021-12-21 中国科学院长春光学精密机械与物理研究所 Resistance value error correction method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4205327A (en) * 1978-03-13 1980-05-27 Rosemount Inc. Two wire current transmitter with adjustable current control linearization
US4623266A (en) * 1985-09-24 1986-11-18 Rosemount Inc. Cold junction compensation for thermocouple
CN101806640A (en) * 2010-04-20 2010-08-18 杭州和利时自动化有限公司 Measurement system of thermal resistance signal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4205327A (en) * 1978-03-13 1980-05-27 Rosemount Inc. Two wire current transmitter with adjustable current control linearization
US4623266A (en) * 1985-09-24 1986-11-18 Rosemount Inc. Cold junction compensation for thermocouple
CN101806640A (en) * 2010-04-20 2010-08-18 杭州和利时自动化有限公司 Measurement system of thermal resistance signal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李颖: "热电阻引线电阻补偿电路", 《中国计量》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108709656A (en) * 2018-07-23 2018-10-26 昆明理工大学 A method of eliminating circuit and its thermometric that thermal resistance is used for lead resistance when thermometric
CN111811670A (en) * 2020-07-07 2020-10-23 九阳股份有限公司 Temperature detection circuit of plug-in type sensor and cooking utensil
CN112649107A (en) * 2020-11-17 2021-04-13 惠州拓邦电气技术有限公司 Temperature detection circuit, temperature detection method and electric tool
CN112649107B (en) * 2020-11-17 2023-11-17 惠州拓邦电气技术有限公司 Temperature detection circuit, temperature detection method and electric tool
CN113432743A (en) * 2021-06-21 2021-09-24 力高(山东)新能源技术有限公司 Acquisition circuit and method for improving acquisition precision of temperature sensor
CN113820030A (en) * 2021-09-18 2021-12-21 中国科学院长春光学精密机械与物理研究所 Resistance value error correction method

Also Published As

Publication number Publication date
CN102768078B (en) 2014-02-26

Similar Documents

Publication Publication Date Title
CN102768078B (en) Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor
CN101551264B (en) Capacitance electronic type fuel sensor
CN105068016B (en) Battery capacity display control method and control circuit
CN107219402B (en) A kind of circuit for quick measurement of DC resistance for power module port
CN103245824A (en) Non-contact D-dot voltage transformer and voltage detection self-correcting method thereof
CN203177993U (en) Temperature measuring circuit
CN107870187A (en) The drinking water conductivity measuring method and measuring circuit of a kind of low-cost and high-precision
CN104625276B (en) A kind of spark machine on-line operation parameter real-time monitoring system and its monitoring method
CN204116594U (en) Based on the electric energy meter remote calibration device of satellite navigation system
CN110044510A (en) IGBT module temperature measurement circuit, temp measuring method and computer readable storage medium
CN209014657U (en) A kind of precision capacitance measuring device
CN211348397U (en) Portable open-circuit voltage and short-circuit current detection device
CN104655916A (en) Alternating-current voltage effective value measuring device and method
CN101788830A (en) Digital temperature control circuit
CN207798963U (en) A kind of gate charge measurement circuit of insulated gate bipolar transistor
CN105277292A (en) Temperature measurement device
CN204228286U (en) A kind of Moisture Meter temperature collection circuit
CN208969163U (en) Electric energy metering device and electrical energy measurement processing module, the electrical parameter detection circuit of voltage detecting circuit
CN103412194A (en) Capacitance measuring and calculating circuit
CN202230132U (en) Power consumption calculating circuit and air conditioner comprising the same
CN104622594A (en) System and method for automatically searching circuit characteristic frequency
CN208140791U (en) A kind of zero-detection circuit
CN109283398A (en) A kind of weak capacitive precision measurement apparatus based on Drive cable technique
CN206192942U (en) Little water wide range coulometer summation circuit for appearance
CN201508209U (en) Capacitance electronic fuel sensor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Xu Yaoliang

Inventor after: Qin Rongxun

Inventor after: Zhao Wanjian

Inventor after: Wang Bo

Inventor after: Zhou Qicong

Inventor after: Chu Shichong

Inventor after: Shi Yaxing

Inventor before: Xu Yaoliang

Inventor before: Qin Rongxun

Inventor before: Zhao Wanjian

Inventor before: Wang Bo

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: XU YAOLIANG QIN RONGXUN ZHAO WANJIAN WANG BO TO: XU YAOLIANG QIN RONGXUN ZHAO WANJIAN WANG BO ZHOU QICONG CHU SHICHONG SHI YAXING