TExcelTAD
Home › Electrical & Electronic Measurements › Mini Project: A Calibrated Temperature Measurement with an Uncertainty Report

Mini Project: A Calibrated Temperature Measurement with an Uncertainty Report

The milestone of this course is to design a repeatable measurement procedure and defend the accuracy of its result. In this project you do that end to end for one quantity: the temperature of a water bath near body temperature, required to ±0.2 ∘C\pm 0.2\,^\circ\text{C} (k=2k = 2). You choose the sensor and front end, predict the readings, simulate the circuit, calibrate against a reference, build and check an uncertainty budget, decide conformity with the requirement, and write a report that someone else can repeat. Every step links back to the lesson that teaches it.

1. Requirement and model

Measurand: the temperature of a stirred water bath at about 37 ∘C37\,^\circ\text{C}, at the sensor's position, averaged over 10 s10\ \text{s}. Requirement: expanded uncertainty U≤0.2 KU \le 0.2\ \text{K} (k=2k = 2).

A thermocouple's class 1 tolerance (±1.5 K\pm 1.5\ \text{K}) and cold-junction error rule it out; an NTC is sensitive but needs individual calibration over a wide range; a Pt100 with a two-point calibration and a ratiometric four-wire front end can meet 0.2 K0.2\ \text{K} comfortably (Temperature Sensors). The model:

RPt=Rref VPtVref,T=fCVD−1(RPt)+δTcal−δTselfR_\text{Pt} = R_\text{ref}\,\frac{V_\text{Pt}}{V_\text{ref}}, \qquad T = f_\text{CVD}^{-1}(R_\text{Pt}) + \delta T_\text{cal} - \delta T_\text{self}

where fCVDf_\text{CVD} is the Callendar–Van Dusen equation, δTcal\delta T_\text{cal} the calibration correction and δTself\delta T_\text{self} the self-heating.

2. Design

+ - V1 3.3 V Rset 2.2 kOhm Rref 1.000 kOhm Pt100 ~114 Ohm Vref + Vref - sense + sense - ADC 2 differential channels, same reference R = Rref Vpt/Vref T = CVD inverse

A 3.3 V3.3\ \text{V} supply drives a series chain: Rset=2.2 kΩR_\text{set} = 2.2\ \text{k}\Omega, a reference resistor Rref=1.000 kΩR_\text{ref} = 1.000\ \text{k}\Omega (0.01 %0.01\,\%, 5 ppm/K5\ \text{ppm/K}) and the Pt100, so about 1 mA1\ \text{mA} flows. One differential ADC (or two channels of one ADC with the same reference) measures the voltage across RrefR_\text{ref} and, with four wires (Four-Wire Resistance), across the Pt100. The current appears in both, so it cancels in the ratio: supply drift and the ADC's gain error do not matter (ratiometric, Strain Gauges). Averaging 64 readings over 10 s10\ \text{s} reduces noise; integrating over whole mains periods rejects hum (Inside the DMM).

Hand calculation. At 37.0 ∘C37.0\,^\circ\text{C}: RPt=114.38 ΩR_\text{Pt} = 114.38\ \Omega, I=3.3/(2200+1000+114.38)=0.9957 mAI = 3.3/(2200 + 1000 + 114.38) = 0.9957\ \text{mA}, VPt=113.9 mVV_\text{Pt} = 113.9\ \text{mV}, Vref=0.9957 VV_\text{ref} = 0.9957\ \text{V}. Self-heating with a dissipation constant of 2 mW/K2\ \text{mW/K} (in stirred water it is larger, so this is pessimistic): P=0.113 mWP = 0.113\ \text{mW}, 57 mK57\ \text{mK}.

Simulation. The netlist is the front end; Rpt is the sensor. At 114.38 Ω114.38\ \Omega the voltages across Rref (nodes a–b) and Rpt (b–0) match the hand calculation. Slide Rpt from 100 Ω100\ \Omega (0 ∘C0\,^\circ\text{C}) to 119.4 Ω119.4\ \Omega (50 ∘C50\,^\circ\text{C}): the current changes by only 0.6 %0.6\,\%, and the ratio VPt/VrefV_\text{Pt}/V_\text{ref} times 1000 Ω1000\ \Omega always returns Rpt exactly.

node voltages (to ground 0)s3.300 Va1.110 Vb113.9 mVnetlistV1 s 0 DC 3.3Rset s a 2.2kRref a b 1kRpt b 0 114.38element currents (node 1 to node 2 through it)V1s>0-996 uARsets>a996 uARrefa>b996 uARptb>0996 uA

3. Calibration

Calibrate the whole channel (sensor, wiring, ADC) at two points that bracket the measurement, against a reference thermometer with a traceable certificate (U=0.05 KU = 0.05\ \text{K}, k=2k = 2) (Calibration):

  1. An ice-point bath (crushed ice from tap or distilled water, topped up with water, stirred): 0.00 ∘C0.00\,^\circ\text{C} within a few millikelvin when made well; also read the reference.
  2. A warm bath near 40 ∘C40\,^\circ\text{C} (insulated cup, stirred, both sensors tied together at the same depth).

Record ten readings at each point, up and down; fit a straight correction δTcal=a+b Traw\delta T_\text{cal} = a + b\,T_\text{raw} (Static Characteristics); the residual scatter estimates the calibration's Type A part.

4. Uncertainty budget and check

python · try it yourself
import numpy as np
from scipy.optimize import brentq

# Pt100 per IEC 60751 (Callendar-Van Dusen), used above 0 C here
R0, A, B = 100.0, 3.9083e-3, -5.775e-7
r_pt = lambda T: R0 * (1 + A * T + B * T**2)
t_pt = lambda R: (-A + np.sqrt(A**2 - 4 * B * (1 - R / R0))) / (2 * B)

# Ratiometric front end: 3.3 V -> Rset 2.2k -> Rref 1k (0.01 %) -> Pt100 -> ground; ADC reads both drops
Vs, Rset, Rref = 3.3, 2200.0, 1000.0
T_true = 37.0
I = Vs / (Rset + Rref + r_pt(T_true))
print(f"excitation {1e3 * I:.3f} mA, V(Pt100) = {1e3 * I * r_pt(T_true):.2f} mV, V(Rref) = {I * Rref:.4f} V")
print(f"self-heating at 2 mW/K: {I**2 * r_pt(T_true) / 2e-3 * 1e3:.0f} mK")

# Uncertainty budget at 37 C, as standard uncertainties in kelvin (sensitivity dT/dR ~ 1/0.3866 K per ohm at 37 C)
dTdR = 1 / (R0 * (A + 2 * B * T_true))
terms = {
    "Rref 0.01 % (rect)":            r_pt(T_true) * 1e-4 / np.sqrt(3) * dTdR,
    "ADC offset +/-20 uV (rect)":     20e-6 / I / np.sqrt(3) * dTdR,
    "ADC noise, mean of 64":          (5e-6 / np.sqrt(64)) / I * dTdR,
    "Pt100 after 2-point cal":        0.03,
    "self-heating, corrected +/-50%": 0.5 * I**2 * r_pt(T_true) / 2e-3 / np.sqrt(3),
    "reference thermometer (k=2)":    0.05 / 2,
}
for k, v in terms.items():
    print(f"  {k:32s} {1e3 * v:6.1f} mK")
uc = np.sqrt(sum(v**2 for v in terms.values()))
print(f"u_c = {1e3 * uc:.0f} mK, U (k = 2) = {2e3 * uc:.0f} mK")

# Monte Carlo of the same chain from voltages to temperature
rng = np.random.default_rng(12)
N = 200_000
R_ref = Rref * (1 + rng.uniform(-1e-4, 1e-4, N))
v_pt = I * r_pt(T_true) + rng.uniform(-20e-6, 20e-6, N) + rng.normal(0, 5e-6 / 8, N)
v_ref = I * Rref                                   # gain errors common to both channels cancel (ratiometric)
T_mc = t_pt(R_ref * v_pt / v_ref) + rng.normal(0, 0.03, N) + rng.normal(0, 0.025, N) \
       + rng.uniform(-0.5, 0.5, N) * I**2 * r_pt(T_true) / 2e-3
print(f"Monte Carlo: mean {T_mc.mean():.3f} C, u = {1e3 * T_mc.std():.0f} mK, "
      f"95 % interval [{np.percentile(T_mc, 2.5):.3f}, {np.percentile(T_mc, 97.5):.3f}] C")
excitation 0.996 mA, V(Pt100) = 113.89 mV, V(Rref) = 0.9957 V
self-heating at 2 mW/K: 57 mK
  Rref 0.01 % (rect)                 17.1 mK
  ADC offset +/-20 uV (rect)         30.0 mK
  ADC noise, mean of 64               1.6 mK
  Pt100 after 2-point cal            30.0 mK
  self-heating, corrected +/-50%     16.4 mK
  reference thermometer (k=2)        25.0 mK
u_c = 55 mK, U (k = 2) = 109 mK
Monte Carlo: mean 37.000 C, u = 55 mK, 95 % interval [36.894, 37.107] C

The first-order budget (GUM Budgets) and the Monte Carlo check (Propagation) agree: uc=55 mKu_c = 55\ \text{mK}, U=0.11 KU = 0.11\ \text{K} (k=2k = 2). The largest terms are the ADC offset, the calibrated sensor and the reference thermometer; the requirement of 0.2 K0.2\ \text{K} is met with margin. If your own budget comes out above 0.2 K0.2\ \text{K}, the share column tells you what to improve (a lower-offset ADC, a better reference, a longer stabilisation time).

Decision. With U=0.11 K≤0.20 KU = 0.11\ \text{K} \le 0.20\ \text{K}, the procedure conforms to the requirement. Any bath temperature tolerance you check later (for example "the incubator holds 37.0±0.5 ∘C37.0 \pm 0.5\,^\circ\text{C}") needs a decision rule agreed beforehand, with guard bands of 0.11 K0.11\ \text{K} (Measurement Reports).

5. What you would measure

With a Pt100 (class A or B, four-wire), a 0.01 %0.01\,\% reference resistor, a 16- to 24-bit ADC board (or a bench DMM reading both voltages in turn, which is ratiometric if the current is stable during the pair), and a reference thermometer: expect the raw Pt100 reading at the ice point within its class tolerance (±0.15 K\pm 0.15\ \text{K} for class A), a calibration correction of a few tenths of a kelvin or less, and after correction an agreement with the reference within about ±0.1 K\pm 0.1\ \text{K} at 37 ∘C37\,^\circ\text{C}. Then ask a colleague to repeat the measurement from your report: ∣En∣≤1\lvert E_n \rvert \le 1 between the two results is the test of the report (Introduction).

Hazards and safe setup. 3.3 V3.3\ \text{V} and 1 mA1\ \text{mA} from a board or a current-limited supply. Water stays below 50 ∘C50\,^\circ\text{C} (warm tap water, no kettles near the bench); sensors in waterproof sheaths, electronics and connectors kept dry and away from the bath; a towel on the bench. No mains-powered heaters in the bath.

6. Report template

text
Title / report number / page x of y / date / author / checked by
1. Measurand and requirement   - what exactly, where, how averaged; U <= 0.2 K (k = 2)
2. Method and model            - circuit, equations (CVD, ratiometric), averaging, settling time
3. Equipment and traceability  - sensor, ADC, Rref (cert. no.), reference thermometer (cert. no., due date)
4. Conditions                  - room temperature, bath stirring, immersion depth
5. Calibration                 - points, raw data file, fitted correction, residuals
6. Results                     - T = ... +/- U (k = 2, about 95 %), table and plot with error bars
7. Uncertainty budget          - table with c_i, u_i, share; Monte Carlo check (seed, trials)
8. Decision                    - against the requirement; decision rule stated in advance
9. Discussion                  - dominant terms, what would improve the result, repeatability test (E_n)
Annex: raw data, script and commit hash, photographs of the setup

Extensions

  • Replace the Pt100 by an NTC with a Steinhart–Hart calibration at three points and compare the budgets.
  • Automate the readings with SCPI (Automated Test) and log every value with the instrument identities.
  • Measure the self-heating directly: read the Pt100 at 0.5 mA0.5\ \text{mA} and 1 mA1\ \text{mA} and extrapolate to zero current (ΔT∝I2\Delta T \propto I^2).

Test yourself

Why is the Pt100 front end in this project ratiometric?

  1. to increase the current
  2. so that the excitation current and ADC gain cancel in VPt/VrefV_\text{Pt}/V_\text{ref}
  3. to avoid four-wire connections
  4. to make the sensor linear

The budget gives uc=55 mKu_c = 55\ \text{mK}. What is UU at k=2k = 2, and does it meet a 0.2 K requirement?

  1. 55 mK, yes
  2. 110 mK, yes
  3. 110 mK, no
  4. 27 mK, yes

How do you check that your report is complete?

  1. count its pages
  2. someone else repeats the measurement from it and gets a result with ∣En∣≤1\lvert E_n \rvert \le 1
  3. add more digits
  4. use a bigger font