Electrical Circuits and Sensors · Module 10 of 10
Data Acquisition and Measurement Systems
The final link turns a continuous voltage into numbers a computer can store. Sample fast enough and resolve finely enough, and the digital record faithfully represents the physical world the sensor saw.
Readiness check
This closing module digitises the signal. Tick only what you can do closed-notes.
- Recall that a sensor and conditioner produce an analogue voltage.
- Evaluate a power of two, such as 210 = 1024.
- Divide a voltage range into equal steps.
- Recall a low-pass filter removes high frequencies.
- Relate sample rate to the time between samples.
The core idea
Digitising a signal has two axes: time and amplitude. Sampling discretises time and must obey the Nyquist rate; quantising discretises amplitude into 2n levels, each one LSB apart, with a rounding error of half an LSB.
fs > 2 fmax (Nyquist)LSB = Vref / 2nmax quantisation error = LSB / 2An analogue-to-digital converter (ADC) samples the conditioned voltage at regular intervals and assigns each sample to one of a finite set of levels. In time, the sampling theorem requires the sample rate fs to exceed twice the highest signal frequency; sampling too slowly folds high frequencies down into the signal band as aliases that cannot be removed afterward. In amplitude, an n-bit converter splits its reference span Vref into 2n equal steps; the size of one step is the least significant bit, LSB = Vref/2n, and the resolution of the system. Rounding each sample to the nearest level introduces a quantisation error of at most half an LSB. More bits mean finer steps and smaller error; a faster sample rate and an anti-alias filter protect the time axis.
The skills, taught in order
Five skills follow the signal through the acquisition chain, from sampling in time to resolving in amplitude.
10.1 The data acquisition chain
A data acquisition system runs from the conditioned sensor voltage through an anti-alias filter, a sample-and-hold, an ADC, and into memory. Each stage preserves or limits fidelity; the engineer matches the rate and resolution to the signal and its noise.
10.2 Sampling and the Nyquist rate
Sampling records the signal at discrete instants spaced by 1/fs. The sampling theorem requires fs > 2 fmax, twice the highest frequency present. Meeting it preserves the signal exactly in principle; missing it loses information irretrievably.
| n bits | Levels 2n | LSB at 5 V | Resolution |
|---|---|---|---|
| 8 | 256 | 19.5 mV | coarse |
| 10 | 1024 | 4.88 mV | moderate |
| 12 | 4096 | 1.22 mV | fine |
| 16 | 65536 | 76.3 µV | very fine |
Each added bit halves the LSB and the quantisation error. The reference voltage sets the absolute step size.
10.3 ADC resolution and the LSB
An n-bit ADC divides its reference span into 2n steps. One step, the least significant bit LSB = Vref/2n, is the smallest voltage change the converter can distinguish. It sets the resolution of the whole measurement, no matter how good the sensor.
10.4 Quantisation error
Rounding each sample to the nearest level leaves an error between −½ LSB and +½ LSB, so the maximum quantisation error is half an LSB. It behaves like added noise; more bits, or a reference matched to the signal range, reduce it.
10.5 Aliasing
If a frequency above half the sample rate is present, it appears in the data as a false lower frequency, an alias, indistinguishable from a real signal. An anti-alias low-pass filter before the ADC removes those frequencies so they cannot fold back.
Engineering connection: the anti-alias filter is the same first-order low-pass from Module 9, now placed to protect the sampler, and the digitised data feeds directly into Control Systems.
Worked example 1: resolution of a 10-bit ADC
A 10-bit ADC has a 5 V reference. Find the number of levels, the LSB voltage, and the maximum quantisation error.
- ProblemFind the levels, LSB, and maximum quantisation error of the 10-bit ADC in Figure 1.
- Given / findn = 10, Vref = 5 V. Find 2n, LSB, and the maximum error.
- AssumptionsIdeal uniform quantiser over the full 0 to 5 V span.
- ModelNumber of levels is 2n; LSB = Vref/2n; maximum error is LSB/2.
- Equationslevels = 2nLSB = Vref/2nerrormax = LSB/2
- Solve210 = 1024 levels. LSB = 5/1024 = 4.88 mV. Maximum error = 4.88/2 = 2.44 mV.
- Check1024 × 4.88 mV = 5.00 V, recovering the full reference. The error of 2.44 mV is about 0.05 percent of full scale, the resolution limit of a 10-bit system.
- ConclusionThe 10-bit converter resolves to about 4.9 mV. A sensor signal finer than that is lost in quantisation, which is why bit depth matters.
Worked example 2: a 12-bit converter on a 3.3 V reference
A 12-bit ADC runs from a 3.3 V reference, common in microcontrollers. Find the LSB voltage and the maximum quantisation error, and compare its resolution to the 10-bit converter.
- ProblemFind the LSB and maximum error of the 12-bit ADC in Figure 2, and compare to 10-bit.
- Given / findn = 12, Vref = 3.3 V. Find LSB, the maximum error, and the comparison.
- AssumptionsIdeal uniform quantiser over the full 0 to 3.3 V span.
- ModelLSB = Vref/2n; maximum error = LSB/2.
- Equations212 = 4096LSB = Vref/2nerrormax = LSB/2
- Solve212 = 4096 levels. LSB = 3.3/4096 = 0.806 mV. Maximum error = 0.806/2 = 0.403 mV.
- CheckThe 12-bit converter has four times as many levels, and its 3.3 V span is smaller than the 10-bit converter's 5 V span. Both changes reduce the LSB, from 4.88 mV to 0.806 mV, so the voltage resolution improves by about six times.
- ConclusionBit depth dominates resolution. A 12-bit converter resolves under a millivolt even on a modest reference, fine enough for most conditioned sensor signals.
Misconceptions and diagnostics
| Mistake | Symptom | Diagnostic question | Correction |
|---|---|---|---|
| Sampling too slowly | False low-frequency tones appear | "Is fs above twice fmax?" | Meet the Nyquist rate and filter before sampling. |
| No anti-alias filter | High-frequency noise folds into the band | "What removes content above fs/2?" | Place a low-pass filter ahead of the ADC. |
| Confusing bits with accuracy | More bits assumed to fix a noisy sensor | "Is the sensor itself this fine?" | Resolution is not accuracy; the sensor and noise still limit it. |
| Reference far above signal | Signal uses few of the levels | "Does the signal span the reference?" | Match Vref or amplify the signal to use the full range. |
Practice ladder
An 8-bit ADC has a 5 V reference. Find the LSB.
Show answer
LSB = Vref/2n = 5/256 = 19.5 mV.
A signal contains frequencies up to 2 kHz. What is the minimum sample rate, and a sensible practical choice?
Show answer
Nyquist requires fs > 2 × 2 kHz = 4 kHz. In practice sample several times higher, say 10 kHz, and filter above 2 kHz to avoid aliasing.
A 12-bit ADC on a 10 V reference reads a conditioned signal. What is the smallest voltage change it can resolve, and the maximum quantisation error?
Show answer
LSB = 10/4096 = 2.44 mV; maximum error = LSB/2 = 1.22 mV.
You are logging a 50 Hz vibration with a conditioned signal of 0 to 3 V. Choose a sample rate and a bit depth, and justify both.
What good work looks like
Sample well above 100 Hz (say 1 kHz) with an anti-alias filter near 100 Hz, and use a 12-bit ADC with a reference near 3 V so the LSB is under a millivolt, comfortably finer than the signal detail.
Working with AI, and proving it yourself
Use AI as an examiner, not a solver
Portfolio task
Specify a complete acquisition for a real signal: a sample rate, an anti-alias corner, a bit depth, and a reference, then state the resulting resolution and quantisation error.
Retrieval and spaced review
Closed notes. Answer out loud, then reveal.
1. State the Nyquist condition.
The sample rate must exceed twice the highest signal frequency, fs > 2 fmax.
2. What is the LSB?
Vref/2n, the smallest voltage step an n-bit ADC resolves.
3. How large is the quantisation error?
At most half an LSB.
4. What is aliasing, and how is it prevented?
High frequencies folding into the band; an anti-alias filter before the ADC removes them.
5. Does adding bits improve accuracy?
It improves resolution, but the sensor and noise still set the true accuracy.
Textbook mapping
This module draws on Alexander and Sadiku, Fundamentals of Electric Circuits, 4th edition for the analogue front end, with sampling and conversion from standard measurement texts.
| Topic in this module | Where to read more |
|---|---|
| Filtering and the analogue front end | Alexander & Sadiku, Chapter 14 |
| Sampling, ADC resolution, quantisation | Figliola & Beasley, measurement systems |
| Aliasing and the Nyquist rate | Figliola & Beasley, measurement systems |
The analogue front end follows the 4th edition of Alexander and Sadiku; sampling and conversion draw on measurement texts such as Figliola and Beasley.