Analog Front Ends & Signal Conditioning
No algorithm can recover what was lost before the A/D converter. From 20-microvolt brainwaves to ultrasonic bearing noise, I design the analog chain and the digital processing together, so the data reaching the AI is worth analyzing.
The problem
AI projects often start at the data file. By then, aliasing, a poor gain choice, noise or a saturated channel may have already ruined the measurement, and no model can tell you so.
My approach
Start with the physics of the signal: its size, its band and what's corrupting it. Then set filters, gain, offset and sample rate as one system, and test the chain with a known input.
The range
Four very different problems across two patents and my own laboratory: scalp voltages, ultrasonic bearing signatures, tiny vibrations in a shipping container, and engine vibration.
Microvolts: a brainwave acquisition system
Scalp signals are about 20 microvolts, and the A/D converter wants volts. Still in build: I started from a published open EEG circuit and extended it into a multi-channel system.


Design decisions
- Check of the budget: 20 µV × 89 = 1.78 mV after the first stage, then × 455 = about 0.81 V at the ADC
- Battery rails (± 4.8 V from Ni-MH cells) keep the sensitive stages away from mains power, and a 60 Hz notch rejects the hum that remains
- Adjustable gain on each channel handles the wide variation in signal level between electrode sites
- A 0.16 Hz high-pass lets the DC electrode offset roll off without cutting into the low-frequency band of interest
- 20 differential inputs make 10 signals, shared across capture processors at 256 samples/s per channel, giving 0.25 Hz resolution from 1,024 points
- A 512-point FFT running on the microcontroller is intended to drive audio feedback, connecting to my GreenNoise / SleepWave work
A research prototype, not a medical device.
Ultrasonics: hearing a bearing start to fail
Early bearing defects produce ultrasonic bursts that repeat at the defect frequency. An analog envelope detector turns those bursts into a low-frequency signal, so a low-power microcontroller on a railcar wheel can analyze them on battery power.
Doing the envelope in analog moves the expensive part of the job out of the processor. That power saving is what makes a wireless, battery-powered sensor on every wheel practical.
The same discipline, very different signals
| Application | Sensor and signal | Front end | Why it matters |
|---|---|---|---|
| Container monitoring US 7,535,355 | Geophones or micro-accelerometers; vibrations as small as a heartbeat | High-gain, low-noise instrumentation amplifier, conditioning filter, A/D | Matches measured signals against a library of event signatures on battery power |
| V8 engine monitor | MEMS accelerometers to ±3 g, 1,600 Hz bandwidth; temperatures, tach, pressure | Anti-alias filtering, heat-sinked sensors, 4,096 samples/s per channel | Clean, synchronized data for RPM-normalized trending |
| 12-axis modal breadboard | Three-axis accelerometers, low-g structural modes | 128 Hz anti-alias filter, gain around mid-scale | Prevents fold-back from a roughly 2 kHz sensor bandwidth |
| Laser pump and camera timing | Fluorescence imaged after a pump pulse | Pump pulse stepped from 0.75 to 3 ms in 25 µs increments, with the camera triggered just after it | Reconstructs a fast decay using a slow, low-cost camera |
Why the amplifier comes before the math
I simulated what an unamplified accelerometer delivers to a 10-bit converter, in FFT-peak ADC counts. Low-level modes all but vanish. Adding gain about mid-scale gives them usable resolution, at the cost of range, so the expected g level decides the gain.
| Vibration | No gain | With 7× gain |
|---|---|---|
| 3 g | 290 | Over range |
| 1 g | 97 | 679 |
| 0.3 g | 28 | 196 |
| 0.1 g | 10 | 70 |
| 0.03 g | 3 | 21 |
"No gain" is from the simulation; the 7× column is calculated from it.
For the engineers in the room
Test the chain with a known input
- A 12-bit DAC driven by an Arduino generates pure sine waves of programmable frequency and amplitude
- Feeding it through the amplifiers and A/D confirms gain and that the FFT peak lands on the right line, before any real signal is trusted
- The spectrum is itself a diagnostic: on one test, three channels with the wrong response pointed to mis-wired low-pass filters
Getting more from an inexpensive converter
- Rewriting the ADC prescaler registers to sample faster than the default library speed
- External RAM to capture long acoustic records beyond the processor's memory
- Splitting channels across several processors, and accounting for storage time in the timing budget
Practical lessons
- A DC block ahead of the amplifier wasn't the right answer for structural data: remove the gravity bias, amplify about mid-scale, then low-pass again
- Shielding, grounding and a common ground reference matter more as gain goes up
- On breadboards, intermittent connections cost more debugging time than the software does
Data worth analyzing
- Sensor front-end design and review before committing to hardware
- Finding why a measurement is noisy, aliased or saturated
- Low-power monitoring where the analog stage saves processor power
- Preparing sensor data for machine learning
Tools & parts
Is your sensor data worth analyzing?
I can review the signal chain or design it from the start.
Start a conversation