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 (). 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 , at the sensor's position, averaged over . Requirement: expanded uncertainty ().
A thermocouple's class 1 tolerance () 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 comfortably (Temperature Sensors). The model:
where is the Callendar–Van Dusen equation, the calibration correction and the self-heating.
2. Design
A supply drives a series chain: , a reference resistor (, ) and the Pt100, so about flows. One differential ADC (or two channels of one ADC with the same reference) measures the voltage across 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 reduces noise; integrating over whole mains periods rejects hum (Inside the DMM).
Hand calculation. At : , , , . Self-heating with a dissipation constant of (in stirred water it is larger, so this is pessimistic): , .
Simulation. The netlist is the front end; Rpt is the sensor. At the voltages across Rref (nodes a–b) and Rpt (b–0) match the hand calculation. Slide Rpt from () to (): the current changes by only , and the ratio times always returns Rpt exactly.
3. Calibration
Calibrate the whole channel (sensor, wiring, ADC) at two points that bracket the measurement, against a reference thermometer with a traceable certificate (, ) (Calibration):
- An ice-point bath (crushed ice from tap or distilled water, topped up with water, stirred): within a few millikelvin when made well; also read the reference.
- A warm bath near (insulated cup, stirred, both sensors tied together at the same depth).
Record ten readings at each point, up and down; fit a straight correction (Static Characteristics); the residual scatter estimates the calibration's Type A part.
4. Uncertainty budget and check
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: , (). The largest terms are the ADC offset, the calibrated sensor and the reference thermometer; the requirement of is met with margin. If your own budget comes out above , the share column tells you what to improve (a lower-offset ADC, a better reference, a longer stabilisation time).
Decision. With , the procedure conforms to the requirement. Any bath temperature tolerance you check later (for example "the incubator holds ") needs a decision rule agreed beforehand, with guard bands of (Measurement Reports).
5. What you would measure
With a Pt100 (class A or B, four-wire), a 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 ( 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 at . Then ask a colleague to repeat the measurement from your report: between the two results is the test of the report (Introduction).
Hazards and safe setup. and from a board or a current-limited supply. Water stays below (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
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 setupExtensions
- 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 and and extrapolate to zero current ().
Test yourself
Why is the Pt100 front end in this project ratiometric?
- to increase the current
- so that the excitation current and ADC gain cancel in
- to avoid four-wire connections
- to make the sensor linear
The budget gives . What is at , and does it meet a 0.2 K requirement?
- 55 mK, yes
- 110 mK, yes
- 110 mK, no
- 27 mK, yes
How do you check that your report is complete?
- count its pages
- someone else repeats the measurement from it and gets a result with
- add more digits
- use a bigger font