|
by Jonathan
Valvano
Start ý Alternative
Transducers ý Resistance vs. Temperature
Calibration ý Dissipation Constant
ý Low-Cost Embedded Temperature Measurement
ý High-Precision Temperature Measurement
ý Sources and PDF
HIGH-PRECISION TEMPERATURE MEASUREMENT
Another approach to interface this transducer
to the microcomputer is to use an astable multivibrator (see Figure
6).
 |
| Figure 6ýThis circuit converts
thermistor resistance to period. As the thermistor resistance
varies from 198.3 to 551.2 kilohms, the period of the square
wave varies from 22,542 to 61,671 ýs. The square wave is connected
to a 6812 input capture pin. |
In this system, I used a thermistor with
a higher resistance (see Table 5). The period of a 555 timer is about
0.693 ý CT ý (RA + 2RT). Given a
fixed RA and CT, the period of the output signal
(POUT) is a linear function of RT.
|
T (ýC)
|
RT
(kilohm)
|
POUT
(ms)
|
|
25.011
|
551.2
|
61,671
|
|
30.596
|
432.0
|
48,455
|
|
35.473
|
351.8
|
39,562
|
|
39.989
|
292.5
|
32,987
|
|
45.261
|
237.4
|
26,877
|
|
49.947
|
198.3
|
22,542
|
|
Table 5ýHere are
the signals as they pass through the various stages of the
data acquisition system.
|
Microcontrollers have a rich set of mechanisms
to measure frequency, pulse width, or period. To change the slope
and offset of the conversion between RT and POUT,
the fixed resistor and capacitor can be adjusted. Even though the
period does not include zero, the precision of this measurement is
over 32,000 alternatives, or more than 15 bits. Because of the uncertainties
in the 555 timer and the capacitor, the accuracy of this system will
not be as good as the first example, but it can resolve temperature
changes of 0.001ýC. The software shown in Listing
3 measures period with a resolution
of 1 ýs and calculates temperature using a table lookup scheme similar
to the previous example.
WHATýS LEFT?
Iýve provided you with a brief overview
of thermistor-based temperature measurement. Measuring high-speed
temperature transients will require special transducer design and
instrumentation circuits. I have not discussed the choice of sampling
rate, nor shown you the software to implement periodic real-time sampling.
Because 60 Hz is a typical problem that most data acquisition systems
must deal with, you can include either a digital low-pass or a digital
notch filter to remove this unwanted noise. For a more detailed treatment
of these issues, I refer you to the references provided.
PREVIOUS
NEXT
Circuit Cellar provides up-to-date information for engineers. Visit
www.circuitcellar.com for
more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com
or subscribe online.
ýCircuit Cellar, the Magazine for Computer Applications. Posted with
permission. |