A raw sensor output is rarely ready for a dashboard or control loop. The first design move is to identify what must be amplified, filtered, level-shifted, isolated, or protected before the reading can be trusted.
11.1 In 60 Seconds
Signal conditioning transforms raw, weak sensor outputs into clean, properly scaled signals for ADC conversion. The key components are: amplifiers (boost millivolt signals to fill the ADC range for maximum resolution), Wheatstone bridges (detect tiny resistance changes in strain gauges and load cells with high precision), anti-aliasing filters (remove noise before digitization), and level shifters (match voltage ranges). A properly designed signal conditioning chain can achieve 100-200x better measurement resolution than a direct sensor connection.
Chapter Roadmap
First identify why raw sensor outputs need conditioning.
Then inspect bridge circuits and millivolt signals.
Next size gain and low-pass filtering for a 0-3.3V ADC.
Finally apply the chain to thermistors, load cells, noise, grounding, and anti-aliasing.
Checkpoints recap each design decision; deeper circuit details support a first read.
Key Concepts
Instrumentation Amplifier: A differential amplifier with high input impedance and a single gain resistor; ideal for amplifying small differential signals from Wheatstone bridges and strain gauges in the presence of common-mode noise
Wheatstone Bridge: Four resistors in a diamond configuration where one or more are sensing elements; the differential output voltage is proportional to the resistance change and is immune to supply voltage variations
Common-Mode Rejection Ratio (CMRR): The amplifier’s ability to reject identical signals on both inputs while amplifying the difference; high CMRR (>80 dB) is critical for rejecting noise on long sensor cables
Anti-Aliasing Filter: A low-pass filter placed before the ADC to ensure no signal components above fs/2 reach the converter, preventing aliasing from misrepresenting high-frequency noise as false low-frequency signals
Rail-to-Rail Op-Amp: An op-amp whose output can swing to within millivolts of both supply rails; essential for single-supply 3.3 V designs where the conditioned signal must span the full ADC input range
Signal Offset Removal: Subtracting a DC offset from a sensor signal to center it in the ADC’s input range, maximizing dynamic range utilization for differential or bridge sensors
Gain-Bandwidth Product: The product of an op-amp’s gain and its bandwidth is approximately constant; higher gain settings reduce the usable bandwidth, limiting the maximum signal frequency that can be accurately amplified
Input Impedance Matching: The amplifier’s input impedance must be much higher than the sensor’s source impedance to prevent loading effects that would reduce the measured voltage and introduce gain errors
11.2 Learning Objectives
By the end of this chapter, you will be able to:
Design Signal Conditioning Chains: Construct complete pipelines from raw sensor output to ADC-ready signals
Calculate Amplifier Gain: Derive required gain to utilize full ADC range for maximum resolution
Implement Wheatstone Bridges: Configure bridge circuits for precision resistance measurements
Evaluate Worked Examples: Trace step-by-step calculations for real thermistor and strain gauge interfaces
Select Appropriate Components: Compare instrumentation amplifiers and filter components for specific applications
For Beginners: Signal Conditioning
Imagine trying to listen to a friend whispering in a noisy stadium – you would need to amplify their voice and filter out the crowd noise. Signal conditioning does exactly this for sensor signals. It boosts weak electrical signals, removes unwanted noise, and adjusts voltage levels so the microcontroller can read them clearly and accurately.
11.3 Introduction
Raw sensor outputs are rarely suitable for direct connection to microcontroller ADCs. Signals may be too weak (millivolts from thermocouples), too noisy (interference from motors), or at the wrong voltage level (5V sensors on 3.3V MCUs). Signal conditioning transforms these problematic signals into clean, properly scaled inputs for accurate digital conversion.
Start with the whole chain before choosing parts: gain, noise, safe voltage range, then ADC conversion.
Signal Conditioning Chain
Within the larger sensor pipeline, the signal conditioning block transforms weak, noisy sensor signals through four sequential stages:
Step 1: Amplification (Boosting Weak Signals)
Instrumentation amplifier with adjustable gain (1-1000x)
Formula: Gain = (Vref_ADC_max - Vref_ADC_min) / (Vsensor_max - Vsensor_min)
Example: 10mV sensor signal amplified 330x to fill 0-3.3V ADC range
Result: Maximizes ADC resolution, converts millivolts to measurable voltage
Step 2: Filtering (Removing Noise)
Low-pass RC filter or active filter removes frequencies above signal bandwidth
Cutoff frequency: fc = 1/(2πRC) set below noise, above signal
Result: Binary number representing calibrated physical measurement
This four-stage pipeline is the foundation of all professional sensor interfaces.
Phoebe’s Field Notes: Why Conditioning Changes the Measurement
Phoebe’s Why
The bridge, amplifier, filter, and buffer are not separate tricks. They are one physics chain that protects information before the ADC freezes it into codes. A bridge turns a tiny resistance change into a tiny differential voltage. An amplifier spends supply voltage to make that millivolt signal large enough to use the converter’s bins. A low-pass filter stores charge so fast noise is averaged down before sampling. A buffer keeps the ADC input from stealing charge from a high-impedance sensor and changing the value it is trying to measure.
The Derivation
For a quarter bridge with one active resistor \(R+\Delta R\) and three fixed resistors \(R\), the exact differential output is
When \(\Delta R \ll R\), the first-order bridge sensitivity is
\[V_o \approx V_{ex}\frac{\Delta R}{4R}\]
To map a sensor span onto an ADC span after offset removal, the gain is
\[G = \frac{V_{ADC,span}}{V_{sensor,span}}\]
For an INA128-style instrumentation amplifier,
\[G = 1 + \frac{50\,000}{R_G}\]
The anti-alias RC stage follows
\[\tau = RC\]
\[f_c = \frac{1}{2\pi RC}\]
and a first-order filter attenuates a sine component by
\[|H(f)| = \frac{1}{\sqrt{1+(f/f_c)^2}}\]
Finally, source loading is just a divider:
\[V_{ADC} = V_s\frac{R_{in}}{R_s + R_{in}}\]
so \(R_{in}\) must be much larger than \(R_s\), or a unity-gain buffer must isolate the sensor.
Worked Numbers: This Chapter’s Chain
Bridge signal: the 350 ohm bridge with a 0.1% change has \(\Delta R=0.350\) ohm. With 5 V excitation, \(V_o \approx 5(0.350)/(4\times350)=1.25\) mV; the exact divider gives \(5(350.35/700.35-0.5)=1.249\) mV.
Gain sizing: the 10-30 mV thermistor span is 20.0 mV. Filling a 3.3 V ADC span needs \(G=3.3/0.0200=165\). For the INA128 equation, \(R_G=50\,000/(165-1)=305\) ohm; the chapter’s 150x practical gain maps the span to 3.00 V.
ADC resolution after gain: using that 3.00 V span over a 12-bit ADC gives \(3.00/4096=0.732\) mV/count. With 150x gain and a 1 mV/C sensor slope, that is \(0.732/(150\times1.00)=0.00488\) C/count, reported as about 0.005 C per step.
Filter and source loading: for a 10 Hz cutoff, \(RC=1/(2\pi10)=15.9\) ms. The chapter’s 16 kohm and 1 uF choice gives \(f_c=9.95\) Hz and 60 Hz attenuation \(20\log_{10}|H|=-15.7\) dB. A 10 kohm source driving a 10 Mohm ADC input loses \(10\,000/(10\,000+10\,000\,000)=0.0999\)%, while a 100 kohm input would lose 9.09%, which is why the buffer matters.
11.4 Signal Processing Pipeline Overview
Before designing individual circuits, understand the complete signal path:
Figure 11.1: Complete Sensor Signal Processing Pipeline: Physical to Digital to Action
The Wheatstone bridge is a precision measurement circuit used with strain gauges, load cells, and other resistive sensors requiring high accuracy. It detects small resistance changes by comparing two voltage dividers.
The bridge makes the problem visible: a real physical change may only move the output by millivolts.
Figure 11.3: Wheatstone Bridge: Four-resistor configuration for detecting small resistance changes with high precision.
Key Properties:
Balanced condition: When R1/R2 = R3/Rx, output voltage = 0V
Sensitivity: Small changes in Rx produce measurable differential voltage
Applications: Strain gauges (weight scales), pressure sensors, temperature measurement
Advantage: Common-mode rejection eliminates temperature drift and supply noise
11.5.1 Wheatstone Bridge Sensitivity Calculator
Calculate the output voltage of a Wheatstone bridge for a given resistance change in the sensor element.
html`<div style="background: var(--bs-light, #f8f9fa); padding: 1rem; border-radius: 8px; border-left: 4px solid #16A085; margin-top: 0.5rem;"><p><strong>Required RC time constant:</strong> ${(rcCalc.requiredRC*1000).toFixed(2)} ms</p><p><strong>Ideal capacitance (for R = ${filterR} ohm):</strong> ${rcCalc.idealC*1e9>=1000? (rcCalc.idealC*1e6).toFixed(2) +" uF": (rcCalc.idealC*1e9).toFixed(1) +" nF"}</p><p><strong>Nearest standard E12 capacitor:</strong> ${rcCalc.standardC*1e9>=1000? (rcCalc.standardC*1e6).toFixed(2) +" uF": (rcCalc.standardC*1e9).toFixed(1) +" nF"}</p><p><strong>Actual cutoff with standard capacitor:</strong> ${rcCalc.actualCutoff.toFixed(1)} Hz</p><hr style="margin: 0.5rem 0;"><p><strong>Attenuation at 50 Hz (mains):</strong> ${rcCalc.attenuation50Hz.toFixed(1)} dB</p><p><strong>Attenuation at 60 Hz (mains):</strong> ${rcCalc.attenuation60Hz.toFixed(1)} dB</p></div>`
Checkpoint: Gain and Filtering
A 10mV to 30mV sensor span is only 20mV, so a 3.3V ADC can need gain near 165x.
A 12-bit converter has 4096 levels; amplification decides how many counts the sensor actually uses.
A 10Hz RC cutoff can pass slow temperature changes while reducing 50Hz or 60Hz interference.
11.7 Thermistor Signal Conditioning
HVAC Thermistor Conditioning
Scenario: You need to measure room temperature (15-35C) using an NTC thermistor for a smart HVAC system. The thermistor output is only 20mV at 25C, but your ESP32 ADC needs 0-3.3V input.
Given:
NTC thermistor output: 10mV at 35C, 30mV at 15C (20mV range)
ESP32 ADC: 12-bit, 0-3.3V input range
Target: Use full ADC range for maximum resolution
Noise environment: Office with fluorescent lights (60Hz interference)
Steps:
Calculate required gain: To map 20mV range to 3.3V range: \[\text{Gain} = \frac{V_{ADC\_range}}{V_{sensor\_range}} = \frac{3.3V}{0.020V} = 165\] Use standard gain of 150 (close match with common resistor values)
Design instrumentation amplifier: Using INA128 with gain set by single resistor: \[R_G = \frac{50k\Omega}{G - 1} = \frac{50k\Omega}{149} = 335\Omega\] Use 332 ohm standard resistor (gives G = 151.6)
Design anti-aliasing filter: For 60Hz noise rejection and 1Hz temperature sampling: \[f_c = 10 \text{Hz (well below 60Hz noise)}\]\[RC = \frac{1}{2\pi f_c} = \frac{1}{2\pi \times 10} = 15.9 \text{ms}\] Use R = 16k ohm, C = 1uF (gives fc = 10Hz)
Level shift for offset: Since thermistor outputs 10-30mV, after 150x gain we get 1.5-4.5V. Add voltage divider to shift into 0-3V range.
Result:
Amplified signal: 1.5V (at 35C) to 4.5V (at 15C)
After level shifting: 0V to 3.0V (fits ADC range)
12-bit ADC resolution: 3.0V / 4096 = 0.73mV per step
Temperature resolution: 0.73mV / (150 x 1mV/C) = 0.005C per ADC step
Key Insight: By using full ADC range through proper amplification, we achieve over 150x better resolution than connecting the thermistor directly (which would use only 20mV of the 3.3V range).
Putting Numbers to It
Amplifier Gain Calculation for Maximum ADC Resolution: A thermocouple outputs 40μV/°C with 10mV output at 250°C. You need to measure 0-500°C range with ESP32’s 12-bit ADC (0-3.3V). What gain maximizes resolution without clipping?
Sensor output range (0-500°C): \[
V_{sensor} = 40\mu V/°C \times 500°C = 20{,}000\mu V = 20\text{ mV (full scale)}
\]
Required gain to fill 3.3V ADC range: \[
\text{Gain} = \frac{V_{ADC\_{max}}}{V_{sensor\_{max}}} = \frac{3.3V}{0.020V} = 165
\]
Instrumentation amplifier (INA128) gain formula: \[
G = 1 + \frac{50k\Omega}{R_G}
\]
Temperature resolution: \[
\Delta T = \frac{0.806\text{ mV}}{167 \times 40\mu V/°C} = \frac{0.806\text{ mV}}{6.68\text{ mV/°C}} = 0.12°C\text{/count}
\]
Comparison to direct connection (no amplification): - Signal span without amplification: 20mV → uses only 25 ADC counts (20mV / 0.806mV) - Temperature resolution: 500°C / 25 counts = 20°C per count (167x worse!)
With proper amplification, we achieve 0.12°C resolution instead of 20°C. The 167x gain improvement (from the INA128 with 301 ohm resistor) translates directly to 167x better measurement precision.
The thermistor example is voltage-range sizing. The load-cell example is the bridge version: full scale can still mean millivolts.
11.8 Strain Gauge Bridge Gain
Load Cell Bridge Amplification
Scenario: A load cell for a beehive monitoring system uses a Wheatstone bridge with strain gauges. The bridge outputs only 2mV/V at full scale (50kg). You need to interface this with an Arduino Uno’s 10-bit ADC.
Given:
Load cell sensitivity: 2mV/V (with 5V excitation = 10mV full scale at 50kg)
Bridge output at 0kg: 0mV (ideally balanced)
Arduino ADC: 10-bit, 5V reference
Required accuracy: Better than 100g resolution
Steps:
Calculate signal range:
At 50kg: 2mV/V x 5V = 10mV
At 0kg: 0mV
Signal range: 0-10mV
Determine minimum required gain:
Arduino LSB: 5V / 1024 = 4.88mV
To detect 100g (0.2% of 50kg): need 0.002 x 10mV = 0.02mV resolution
Required gain to make 0.02mV visible: 4.88mV / 0.02mV = 244x minimum
Full scale output: 10mV x 128 = 1.28V (within 0-2.5V input range)
24-bit ADC: 2^24 = 16,777,216 levels
Weight per LSB: 50kg / 16,777,216 = 0.003g per step
Result: Using HX711 provides 0.003g resolution, far exceeding the 100g requirement. Practical accuracy limited by load cell drift and noise, typically achieving 1-5g repeatability.
Key Insight: For precision measurements like load cells, dedicated signal conditioning ICs (HX711, ADS1231) outperform general-purpose solutions. They combine optimized gain, filtering, and high-resolution ADC in a single chip designed for the specific application.
Checkpoint: Worked Interfaces
A 20mV thermistor span can use almost the full ADC range after amplification.
A 2mV/V load cell with 5V excitation produces only 10mV at 50kg.
HX711 combines 128x gain, filtering, and a 24-bit ADC for bridge measurements.
11.9 Signal Conditioning Circuit Detail
Figure 11.5: Signal conditioning circuit showing amplification, filtering, and level shifting stages.
The generic sensing application flow below illustrates the complete signal path from physical measurement to usable data. Each stage introduces potential signal degradation, making proper signal conditioning essential for accurate IoT sensor readings.
Figure 11.6: Generic sensing application flow from physical measurement to data processing
11.10 Noise Sources and Mitigation
Understanding where noise enters the signal path helps design effective mitigation strategies.
Figure 11.7: Noise diagnosis guide: EMI from motors and Wi-Fi adds high-frequency noise (mitigate with shielding). Ground loops cause 50/60Hz hum (use single-point ground). Thermal noise is always present (average samples). Combining hardware filtering with software averaging achieves clean readings even in noisy environments.
Sensor Circuit Noise Sources
Core Concept: Sensor signals are corrupted by three main noise sources - EMI (high-frequency interference from motors/radios), ground loops (50/60Hz hum from multiple ground connections), and thermal noise (random fluctuations inherent to all electronic components). Why It Matters: In industrial IoT deployments, unmitigated noise can produce ADC reading variations of 5-15% of full scale, causing false alarms, missed events, and unreliable control loops that waste energy or create safety hazards. Key Takeaway: Apply a two-stage defense - use hardware filtering (RC low-pass with cutoff above your signal frequency but below noise) to remove high-frequency EMI, then apply software median filtering to reject impulse spikes before averaging for thermal noise reduction.
11.11 Analog vs Digital Sensor Tradeoff
Analog Chain vs Digital Sensor
Decision context: When selecting sensors for a new IoT design, choosing between raw analog sensors with custom signal conditioning versus integrated digital sensors with built-in ADC.
Customizable; can optimize for specific application
Fixed by manufacturer; often excellent out-of-box
Flexibility
Full control over gain, filtering, sampling rate
Limited to manufacturer’s configuration options
Development Time
Longer (circuit design, PCB layout, calibration)
Shorter (library exists, drop-in replacement)
Noise Immunity
Susceptible to EMI on analog traces
Digital signals resistant to noise; shielded internal ADC
Board Space
Larger (op-amps, capacitors, resistors)
Smaller (single IC, minimal passives)
Choose Analog Signal Chain when:
You need maximum flexibility in signal conditioning (custom filters, gains)
Lowest component cost is critical at high volumes (10,000+ units)
You require non-standard sampling rates or resolutions
The sensor type is only available as analog output (legacy, specialized)
Choose Digital Sensor when:
Development speed is prioritized over ultimate optimization
You need reliable, calibrated measurements without sensor expertise
PCB space is limited (wearables, miniaturized designs)
EMI/noise environment is challenging (industrial, motor-heavy)
Multiple sensors needed (I2C bus simplifies wiring)
Default recommendation: Digital sensors (I2C/SPI) for most IoT projects unless you have specific signal conditioning requirements that cannot be met by available digital sensors, or you are optimizing BOM cost at scale.
Checkpoint: Noise and Sensor Choice
Industrial noise can add 5-15% full-scale variation.
Ground loops can inject 10-100mV; twisted pairs can reduce pickup by 20-40dB.
Digital I2C/SPI sensors simplify design, while analog chains keep custom gain, filtering, and sampling control.
11.12 Ground Loop Pitfall
Ground Loops in Sensor Systems
The Mistake: Running separate ground wires from each sensor back to the microcontroller, creating ground loops that inject 50/60Hz mains hum and motor noise into sensor readings.
Why It Happens: It seems logical to connect each sensor’s ground directly to the MCU ground pin. In reality, small voltage differences between ground points create circulating currents that couple noise into sensitive analog measurements.
The Fix: Implement star-ground topology:
Single ground point: All sensor grounds connect to ONE central point near the ADC
Ground plane: Use a copper pour on PCB as low-impedance ground reference
Twisted pairs: Run signal and ground wires twisted together (3-4 twists per inch)
Differential measurement: Use instrumentation amplifiers (INA128, AD620) for long cable runs
Specific values:
Ground loop voltage can reach 10-100mV in industrial environments
On 12-bit ADC (0.8mV/step), this adds +/-125 counts of noise
Twisted pair reduces magnetic pickup by 20-40dB
Adding 100nF ceramic capacitor from signal to ground at ADC input provides additional filtering
11.13 Voltage Divider and Bridge Circuits
The Wheatstone bridge (covered above) and simple voltage dividers are the two fundamental resistive sensor interface circuits. The voltage divider provides a simple output proportional to resistance ratio, while the bridge offers differential measurement with superior noise rejection.
Figure 11.8: Voltage divider circuit for resistive sensor interfaces
Key Takeaway
Signal conditioning is the difference between garbage data and precision measurement. Raw sensor signals are almost never suitable for direct ADC connection – they need amplification (to use the full ADC range), filtering (to remove electrical noise), and level shifting (to match voltage requirements). For precision applications like load cells and strain gauges, dedicated signal conditioning ICs (HX711, INA128) outperform general-purpose circuits by combining optimized amplification, filtering, and high-resolution ADC in a single chip.
For Kids: Meet the Sensor Squad!
Sammy the Sensor was working in a factory, trying to measure the weight of honey jars on a conveyor belt. But there was a problem…
“My strain gauge signal is only 1.25 millivolts!” Sammy cried. “That’s like trying to hear a mouse whisper in a thunderstorm!”
Max the Microcontroller couldn’t read it. “Sorry Sammy, my ADC needs at least a few hundred millivolts to see anything useful. Your signal is just lost in the noise.”
Lila the LED had an idea. “What if we use a WHEATSTONE BRIDGE? It’s like a perfectly balanced seesaw. When no weight is on the scale, everything is balanced and the output is zero. But when a honey jar sits on it, the tiny change in the strain gauge tips the seesaw just a little bit!”
“But 1.25 millivolts is still too quiet!” Max protested.
“That’s where the AMPLIFIER comes in!” said Bella the Battery. “Think of it like this: the Wheatstone bridge whispers the weight reading, the amplifier is a super-powered hearing aid that makes the whisper 500 times louder! Now that 1.25 millivolt whisper becomes a nice, clear 625 millivolt shout!”
“And before the signal reaches me,” Max added, “it passes through a FILTER that removes all the buzzing from the factory motors. It’s like noise-canceling headphones for electrical signals!”
Sammy was amazed. “So the signal conditioning chain is: Bridge detects tiny change, Amplifier makes it louder, Filter cleans up the noise, then Max can read it perfectly?”
“Exactly! And with a special chip called the HX711, all of this happens in one tiny package. It can measure weights down to 0.003 grams – that’s lighter than a single grain of rice!”
“Signal conditioning really is a superpower!” Sammy beamed.
Anti-Alias Before ADC Sampling
The Mistake: An industrial vibration monitoring system samples an accelerometer at 1 kHz (1000 samples/second) without any anti-aliasing filter between the sensor output and the ADC input. The system is supposed to detect bearing faults by analyzing vibration frequencies up to 400 Hz. During testing, engineers observe mysterious “ghost frequencies” around 150 Hz that don’t correspond to any actual mechanical vibration.
Why It Happens: The Nyquist-Shannon theorem states that you can only accurately represent frequencies up to half your sampling rate (called the Nyquist frequency). For 1 kHz sampling, the Nyquist frequency is 500 Hz. Any frequency components above 500 Hz in the input signal will “alias” — appear as false lower frequencies in the digitized data.
Aliasing Rule of Thumb: any input frequency above half the sampling rate folds back into the measured data as a false lower frequency.
With 1 kHz sampling:
A real 650 Hz vibration can appear as a false 350 Hz signal.
A real 1200 Hz vibration can appear as a false 200 Hz signal.
A real 2800 Hz vibration can also appear as a false 200 Hz signal, which means two different physical problems can look identical after sampling.
Why It’s Dangerous:
You can’t distinguish real from aliased signals in the digital data
Multiple high frequencies can alias to the same low frequency (collision)
Filtering after ADC doesn’t help — damage is already done
The Fix: Add an anti-aliasing filter (analog low-pass filter) BEFORE the ADC:
Design Steps:
Determine maximum frequency of interest: 400 Hz (bearing fault signatures)
Choose sampling rate: 1000 Hz (2.5× maximum frequency, provides margin)
Calculate filter cutoff frequency:
Nyquist frequency: 500 Hz
Anti-aliasing filter cutoff: 450 Hz (between max interest and Nyquist)
Filter type: 2nd-order Butterworth for flat passband
Implement RC filter: for a second-order Sallen-Key filter near 450 Hz, one practical starting point is 10 kOhm resistors with 33 nF capacitors. That is close enough for a first prototype, then you verify the real cutoff with measurement.
Filter Performance (2nd-order Butterworth, fc = 450 Hz): - At 400 Hz (max interest): -2.1 dB (78% of signal passes) - At 450 Hz (cutoff): -3.0 dB (71% of signal) - At 650 Hz (alias example): -7.3 dB (43% of signal) - At 1000 Hz: -14 dB (20% of signal)
Note: The -2.1 dB attenuation at 400 Hz is a tradeoff inherent to placing the cutoff close to the maximum frequency of interest. If signal preservation near 400 Hz is critical, increase the cutoff to 480 Hz (at the cost of less alias rejection), or use a higher-order filter (4th-order Butterworth gives only -0.5 dB at 400 Hz with the same 450 Hz cutoff).
Key Specifications:
Parameter
Value
Purpose
Passband
0-400 Hz
Preserve vibration signals of interest
Transition band
400-500 Hz
Gradual rolloff (steeper = more complex filter)
Stopband
500+ Hz
Attenuate frequencies above Nyquist
Stopband attenuation
>12 dB/octave
2nd-order rolloff; use 4th-order for >40 dB at Nyquist
Real-World Impact:
Scenario
Without Anti-Aliasing
With Anti-Aliasing Filter
True 350 Hz fault
Reads 350 Hz (correct)
Reads 350 Hz (preserved)
650 Hz harmonic
Aliases to 350 Hz (false positive)
Attenuated -7 dB with 2nd-order filter; use 4th-order for better rejection
EMI at 50 kHz
Aliases to multiple low freqs (noise)
Attenuated >60 dB
Industry Best Practices:
Sample at 2.5-5× your highest frequency of interest (not just 2×)
Anti-aliasing filter cutoff at 0.4-0.45× sampling rate
Use at least 2nd-order filter (4th-order for critical applications)
Verify with spectrum analyzer before deployment
Document filter specs in technical documentation
Quick Test: To verify your anti-aliasing filter is working, inject a known high-frequency signal (e.g., 800 Hz sine wave) into your system. If it correctly shows up as highly attenuated (or doesn’t appear at all) in your ADC data, your filter is working. If you see it aliased to a low frequency with significant amplitude, your filter is inadequate.
Cost-Benefit: A $0.25 RC filter (two resistors, two capacitors) prevents false alarms that could cost thousands in unnecessary maintenance or missed real faults. Anti-aliasing is mandatory for any system that processes signals with unknown high-frequency content.
Checkpoint: Anti-Aliasing
Sampling at 1 kHz gives a 500 Hz Nyquist frequency.
A 650 Hz vibration can appear as 350 Hz; 1200 Hz and 2800 Hz can both appear as 200 Hz.
Filter before the ADC, because filtering after sampling cannot remove aliases.
The worked examples above show where bridge and amplifier blocks sit in a signal-conditioning chain. Continue to Bridge Linearity and Instrumentation Amplifiers when the sensing element is a strain gauge, load cell, pressure bridge, or other millivolt differential source. That page separates the practical sizing details from this overview: bridge baseline cancellation, quarter-bridge gain calculations, instrumentation-amplifier common-mode rejection, and thermal dummy-gauge cancellation.
11.17 Summary
This chapter covered signal conditioning essentials:
Signal Processing Pipeline: Six stages from physical phenomenon to digital output
Wheatstone Bridge: Precision measurement of small resistance changes using differential voltage
Gain Calculation: Match sensor output range to ADC input range for maximum resolution
Instrumentation Amplifiers: High CMRR, adjustable gain, designed for bridge circuits
Noise Mitigation: Hardware filtering, grounding practices, and software averaging
Design Tradeoffs: Analog flexibility vs digital simplicity based on project requirements
Most standard op-amps cannot swing their output all the way to the supply voltage — they saturate 1-2 V below the rail. For 3.3 V single-supply designs, use a rail-to-rail op-amp (e.g., MCP6001) to avoid clipping the conditioned signal before it reaches the ADC.
2. Gain Set Too High for Dynamic Range
Setting excessive amplifier gain causes the ADC to clip when the sensor produces large outputs. Calculate the maximum sensor output, multiply by the gain, and confirm the result fits within 90% of the ADC reference voltage to leave headroom for noise and signal peaks.
PCB Layout for Analog Signals
Long unguarded analog traces running next to digital clock lines pick up switching noise through capacitive coupling. Keep analog signal traces short, route them away from high-frequency digital lines, and add a ground guard trace alongside sensitive analog paths.
Wheatstone Bridge Excitation
Bridge sensitivity scales with excitation voltage, but higher voltage increases self-heating in the sensing resistor, changing its resistance and introducing error. Use the manufacturer’s recommended excitation voltage and avoid increasing it to improve sensitivity.