Op-Amps and Signal Conditioning
Build the standard op-amp blocks from the two golden rules, and condition a real sensor signal into an ADC's input range with the right gain, offset, filtering and rail choice.
Two ways in. Work the material, or if you already know this, go straight to the project and prove it.
Where this sits
- Used by tracks
- Analogue and Power Designer
How this skill is structured
- 1. Concepts — the ideas stated plainly, with the equations worth memorising.
- 2. Worked example — one real problem solved end to end, numbers included.
- 3. Tool demonstration — do the thing in a real open-source tool.
- 4. Resources — the specific free readings and videos, and what part of each to use.
- 5. Project — built alone, producing something a reviewer can check.
- 6. Competence checklist — what you must be able to do. This is also the audit rubric.
1. Concepts
Read these first. Tick each one when you could explain it to someone else without notes.
2. Worked example
Conditioning a thermocouple-like small signal for a 3.3 V ADC
ProblemA sensor produces -10 mV to +40 mV. You must map this to the 0.1 V to 3.2 V input window of a 3.3 V, 12-bit ADC using a single 3.3 V supply.
- 1Input span: 40 - (-10) = 50 mV. Output span: 3.2 - 0.1 = 3.1 V. Required gain = 3.1 / 0.05 = 62.
- 2Required output offset: when Vin = -10 mV, Vout must be 0.1 V. With gain 62, the signal contributes 62 x -0.010 = -0.62 V, so we need +0.72 V of offset added.
- 3Use a difference amplifier: Vout = G x (Vin - Vref_in) + Vref_out, or more simply a non-inverting stage referenced to a small offset voltage.
- 4Choose the offset source: 0.72 V / 62 = 11.6 mV referred to the input. Generate it with a divider from 3.3 V and buffer it. 3.3 V x R2/(R1+R2) = 11.6 mV needs a ratio of 285:1 — awkward and noise-sensitive.
- 5Better: split into two stages. Stage 1 non-inverting gain of 10 referred to ground. Stage 2 difference amplifier with gain 6.2 and a 0.12 V reference. Total gain 62.
- 6Check the op-amp's DC error: with 62x total gain, an op-amp with Vos = 3 mV contributes 3 mV x 62 = 186 mV of output error — 6% of full scale. Unacceptable. Choose a precision part with Vos < 100 uV (a chopper/zero-drift amplifier, Vos ~ 5 uV, is the right class here).
- 7Check bandwidth: if the signal is slow (thermal, < 10 Hz), a GBW of 1 MHz gives 1 MHz/62 = 16 kHz of closed-loop bandwidth. Vastly sufficient.
- 8Anti-alias: sampling at 100 Hz, set the RC corner at 10 Hz. R = 16 k, C = 1 uF gives f_c = 9.9 Hz.
- 9Output rail check: the op-amp must swing to 0.1 V and 3.2 V on a 3.3 V supply, so a rail-to-rail output part is required. Verify the output swing spec at your load current, not the headline claim.
- 10Add a 100 ohm series resistor and 1 nF to ground at the ADC input to isolate the op-amp from the ADC's sampling capacitor.
AnswerTwo-stage: non-inverting gain 10, then a difference stage of gain 6.2 with a buffered 0.12 V reference. Zero-drift rail-to-rail op-amp (Vos < 50 uV). 10 Hz anti-alias RC. 100 ohm + 1 nF ADC isolation network.
3. Tool demonstration
Verify the gain, the offset mapping and the frequency response of your conditioning chain before committing it to a schematic.
4. Resources
Free and, wherever possible, openly licensed. The note tells you which part to actually use — do not read them cover to cover.
5. Project — build this on your own
About 3 hours. This is the artifact that proves the skill. Work it without a walkthrough.
Take a real sensor with a published transfer function — a load cell, an NTC thermistor, a current shunt, or a photodiode — and design the complete analogue front end that maps its full output range onto the input window of a 3.3 V, 12-bit ADC sampling at a rate you specify.
Deliverables
Acceptance criteria — how you know it is good enough
If you want to push further
- Add a second-order Sallen-Key anti-alias filter and compare its stopband attenuation at Fs/2 to the single RC.
- Add ratiometric referencing (drive the sensor bridge from the ADC reference) and explain which error terms this cancels.
6. Competence checklist
Tick these honestly. If you are auditing this skill, this is your rubric — you should be able to demonstrate every line from the project you just built.