Accuracy and Precision An Electronic
Accuracy and Precision An Electronic
Accuracy and Precision An Electronic
Design Example
Written by: Denny Wong
In Electronic Design Services.
Tags: electronic design, hardware, tips
Previously we discussed how accuracy and precision can mean different things depending
on the context and definition that youre using. Heres an example to show how you might
encounter these terms in an electronic product design, and how to ensure your design meets
these specifications.
Recently we were involved in a project where a device was required to measure the
ambient temperature to an accuracy of 0.3C in the range 5C to 60C. After reading the
previous post youll understand this means that the measurement is to have a combined
trueness, reproducibility, and a numeric representation with a resolution of 0.3C or better.
The circuit below shows a NTC thermistor and Analog-to-Digital converter (A/D) used to
measure the ambient temperature.
The voltage at Vin and its relationship to the A/D counts is given by the equation:
(1)
Where RT is the resistance of the thermistor, RB is the resistance of the bias resistor, Vref is
the thermistor bias voltage and A/D reference voltage, N is the A/D number of bits, and
ADC_CNTS is the A/D count value. Solving equation (1) for RT yields:
(2)
From the thermistor data sheet, the thermistor resistance has the following relationship with
temperature:
(3)
(4)
Equation (4) is the closed form transfer function from A/D counts to ambient temperature.
The A/D employed in the implementation is one that is integrated into a microcontroller
(we used a Texas Instruments Mixed Signal Microcontroller). The list below show the
parameter values for this circuit:
Bias resistor (RB)
Thermistor resistance @ 25C (R0)
B constant
Thermistor Dissipation Constant @
25C
A/D number of bits (N)
A/D Total Unadjusted Error
10,000 0.5%
10,000 0.5%
3380K 0.7%
1mW/C
10 bits
2 LSBs
The worst case resolution for this response occurs at the high end of the temperature range,
i.e. at 60C ambient temperature. A/D count values of 239 and 240, i.e. one A/D count
change, yields temperatures of 59.900C and 59.721C respectively from equation (4) and
is a 0.18C change. This resolution satisfies the requirement to measure to 0.3C but
higher resolution is recommended.
The microcontroller A/D has a total unadjusted error specification of 2 LSBs or 3 A/D
counts. This is a comprehensive error specification and includes integral and differential
nonlinearity errors, gain and offset errors. The worst case error occurs at the lower end of
the temperature range, i.e. at 5C. For the A/D count values of 710 and 707, i.e. -3 counts
of error, equation (4) yields temperatures of 4.910C and 5.226C respectively, and is a
+0.32C error. Adding the worst case component tolerances to equation (4) for the
thermistor resistance, B-constant, and bias resistor, a temperature of 5.582C is computed
and is a +0.67C error. This amount of error does not satisfy the accuracy requirement of
0.3C and calibration is required to meet the required trueness. The thermistor dissipation
constant is 1mW/C @ 25C and thermistor self-heating can add an additional 0.23C error.
The noise and distortion data for this microcontroller A/D is not published, so the precision
cannot be determined by analysis. The noise, distortion, and resulting circuit precision can
be determined during validation testing. The thermal noise voltage, en, is given by
(5)