Electrical Measurements: Introduction
Two engineers measure the same reference voltage on a prototype. One reports from a bench multimeter, the other from an oscilloscope cursor. A third tool, a USB data-acquisition module, says . Which one is right? Possibly all three: a measurement result is not a single number but an interval, and the question is whether the three intervals overlap. Possibly none: if the scope probe loaded the node or the acquisition module was never calibrated, all three could share a bias that no amount of averaging removes.
This course teaches you to answer such questions with evidence. By the end you should be able to design a repeatable measurement procedure and defend the accuracy of its result: choose the instrument, predict and correct its errors, build an uncertainty budget, check it by simulation, and write it up so that someone else can repeat it and get an overlapping interval.
Where this course starts
EE Foundations introduced the bench: the digital multimeter, the bench supply, the oscilloscope and function generator, a first uncertainty budget and the lab notebook. This course assumes those lessons and goes inside the instruments: how a DMM converts, why a probe changes the circuit it touches, what a spectrum analyser's resolution bandwidth does, how a thermocouple produces its voltage. The circuit analysis comes from Circuit Theory and the statistics from Probability.
The generalised measurement system
Almost every electronic measurement follows the same chain. The measurand is the quantity you want (a temperature, a current, a resistance). A sensor or transducer turns it into an electrical signal, signal conditioning amplifies, filters and isolates it, an analog-to-digital converter samples and quantises it, and processing turns codes into a value with a unit, which is displayed and recorded. Each block adds its own errors, and the environment (temperature, interference, the operator) pushes on all of them.
Every block in the figure has a lesson in this course:
| Section | You will be able to | Labs and tools |
|---|---|---|
| Getting started | state accuracy, resolution, sensitivity, linearity and hysteresis from a datasheet | best-fit, NumPy |
| Errors and uncertainty | classify errors, correct loading, analyse repeated readings, build GUM budgets, propagate them analytically and by Monte Carlo | error-bars, ee-netlist, NumPy, ngspice |
| Meters and current sensing | explain PMMC and moving-iron meters, DMM converters, true RMS and crest factor, shunts, Hall sensors and current transformers | ee-netlist, NumPy |
| Resistance and impedance | measure low resistance with four wires, balance DC and AC bridges, read an LCR meter | ee-netlist, ngspice |
| Oscilloscope and signal instruments | choose bandwidth, sample rate and record length, trigger, use FFT mode, compensate and choose probes, use counters, spectrum and network analysers | ee-sampling-aliasing, ee-rc-rl-transient, ee-bode-plot, ngspice, skrf |
| Power and energy | measure power and power factor, compute THD from samples | NumPy (mains by calculation only) |
| Sensors and signal conditioning | linearise RTDs, thermocouples and thermistors, design a strain-gauge bridge, condition a sensor signal | ee-netlist, ee-op-amp, NumPy |
| Data acquisition | size an ADC, anti-alias filter and sample rate, compute ENOB, avoid ground loops | ee-sampling-aliasing, NumPy |
| Calibration, automation and reporting | fit a calibration curve, explain traceability, script an instrument with SCPI, write a report with a conformity decision | NumPy, illustrative PyVISA |
The measurement model
The habit that runs through every lesson is to write the result as a model equation: the quantity you report as a function of everything that influences it. For a current measured as the voltage across a shunt,
Each input has a value and an uncertainty: the reading from the meter, the offset from a zero measurement, the shunt from its calibration certificate, the temperature coefficient from the datasheet and the temperature from a thermometer. Once the model is written, the rest is method: corrections for known biases, uncertainties for what is left, and a combination rule. The lessons on uncertainty budgets and propagation make this exact.
Worked example: do three instruments agree?
Given: the three readings from the opening, each with the expanded uncertainty () its owner derived from the instrument specification: DMM , oscilloscope , DAQ module .
Find: whether each pair agrees, using the normalised error
( means agreement at the stated uncertainties; it is the statistic used in interlaboratory comparisons, ISO 13528).
Solve:
Check: every is below 1, so the three results are consistent; the disagreement in the digits is explained by the uncertainties. The scope's interval is thirty times wider than the DMM's: an 8-bit scope is the wrong tool for a reference voltage, even though its reading is not wrong. is dimensionless, as it must be.
import itertools
import numpy as np
readings = {"DMM": (2.4981, 0.0020), "scope": (2.47, 0.06), "DAQ": (2.503, 0.010)} # value, U (k=2), volts
for (a, (xa, Ua)), (b, (xb, Ub)) in itertools.combinations(readings.items(), 2):
En = (xa - xb) / np.hypot(Ua, Ub)
verdict = "agree" if abs(En) <= 1 else "DISAGREE"
print(f"{a:>5} vs {b:<5}: difference {1000 * (xa - xb):+7.1f} mV, E_n = {En:+.2f} -> {verdict}")
# Weighted mean of consistent results (weights 1/u^2, u = U/2)
x = np.array([v for v, _ in readings.values()])
u = np.array([U / 2 for _, U in readings.values()])
w = 1 / u**2
mean = float(np.sum(w * x) / np.sum(w))
u_mean = float(1 / np.sqrt(np.sum(w)))
print(f"weighted mean = {mean:.4f} V, u = {1000 * u_mean:.2f} mV") DMM vs scope: difference +28.1 mV, E_n = +0.47 -> agree
DMM vs DAQ : difference -4.9 mV, E_n = -0.48 -> agree
scope vs DAQ : difference -33.0 mV, E_n = -0.54 -> agree
weighted mean = 2.4983 V, u = 0.98 mV
The weighted mean is almost the DMM value: an inverse-variance weight of a poor instrument is tiny. Combining them only makes sense once you have checked that they agree.
Guided lab: one voltage, three instruments
Hand calculation. Build a divider of two , resistors from a supply: the output is unloaded. A DMM loads it by the Thevenin resistance , lowering it by ; a scope input lowers it by (the loading lesson derives this).
Simulation. Run the comparison program above with your own readings and their uncertainties.
What you would measure. With a 6½-digit DMM expect or so (the supply setting and resistor ratio dominate), with an 8-bit scope at about with an uncertainty of tens of millivolts, and with a 12-bit DAQ input on a range about to within . Record the instrument, range, input impedance and uncertainty for each, compute , and explain any before you trust any of them.
Hazards and safe setup. A current-limited bench supply at (limit ), no mains-connected circuit under test. The scope's probe ground is tied to mains earth: clip it only to the circuit's ground. Every lab in this course follows the EE Foundations safety rules: isolated, current-limited, at most DC; mains-voltage topics (current transformers, energy meters, power quality) are taught by calculation and simulation only.
Pitfalls
- Treating the instrument with the most digits as the reference. Resolution is not accuracy.
- Averaging results that disagree: check first, then look for the bias.
- Reporting a reading without the range, input impedance, bandwidth or integration time that produced it. Nobody can repeat it.
Practice
- Two labs report and (). Do they agree?
- Name the block of the measurement chain in which each error appears: a thermocouple's cold-junction error, a 50 Hz pickup on the sensor cable, an ADC's quantisation, a display rounding.
Answer
- : they disagree. One of them has an unrecognised bias or an underestimated uncertainty.
- Sensor (the reference junction is part of the transducer), conditioning or environment coupling into the cable, ADC, display/processing.
Test yourself
Two results agree at their stated uncertainties when
- they have the same number of digits
- their difference is below the resolution
- both instruments are calibrated
Which block of a measurement system turns the measurand into an electrical signal?
- the ADC
- the sensor or transducer
- the display
- the processing
A weighted mean of three readings is dominated by
- the reading with the most digits
- the reading with the smallest uncertainty
- the largest reading
- the newest instrument