Projects / Sensors & signal processing
Capability · Analog electronics · Sensors · Signal processing

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.

20 µVbrainwave design input
~40,000×total brainwave channel gain
19.5 kHz+ultrasonic band, envelope detected
4,096samples/s per engine channel
2U.S. patents using these techniques
Chain 1

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.

ElectrodesDifferential pairs, about 20 µV
→
Instrumentation ampAD620, gain about 89
→
60 Hz notchRejects mains hum
→
Filters + adjustable gainAbout 0.16–40 Hz, gain up to 455
→
OffsetBipolar to unipolar for the ADC
→
Digitize + FFTMultiple Arduinos, SD storage
Breadboarded multi-channel amplifier stages with several Arduino Mega boards along the top edge
Amplifier channels under construction, with the capture processors along the top.
Densely wired amplifier board beside a panel of adjustment knobs
The build in progress, beside the panel of gain potentiometers.
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.

Chain 2 · U.S. Patent 7,705,743

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.

MicrophoneResponse to about 45 kHz
→
High-passAbout 19.5 kHz
→
AmplifierGain about 11
→
Half-wave rectifier0.68 ms time constant
→
Low-passAbout 290 Hz
→
Digitize + analyzePeak, RMS, crest factor, kurtosis, spectrum

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.

Across applications

The same discipline, very different signals

ApplicationSensor and signalFront endWhy it matters
Container monitoring
US 7,535,355
Geophones or micro-accelerometers; vibrations as small as a heartbeatHigh-gain, low-noise instrumentation amplifier, conditioning filter, A/DMatches measured signals against a library of event signatures on battery power
V8 engine monitorMEMS accelerometers to ±3 g, 1,600 Hz bandwidth; temperatures, tach, pressureAnti-alias filtering, heat-sinked sensors, 4,096 samples/s per channelClean, synchronized data for RPM-normalized trending
12-axis modal breadboardThree-axis accelerometers, low-g structural modes128 Hz anti-alias filter, gain around mid-scalePrevents fold-back from a roughly 2 kHz sensor bandwidth
Laser pump and camera timingFluorescence imaged after a pump pulsePump pulse stepped from 0.75 to 3 ms in 25 µs increments, with the camera triggered just after itReconstructs a fast decay using a slow, low-cost camera
Gain staging

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.

VibrationNo gainWith 7× gain
3 g290Over range
1 g97679
0.3 g28196
0.1 g1070
0.03 g321

"No gain" is from the simulation; the 7× column is calculated from it.

Technical depth

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
Applying it to your product

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
Technology

Tools & parts

Instrumentation ampsOp-amp filtersEnvelope detectionMEMS accelerometersGeophones12-bit DAC test sourcesArduino / CFFTSD logging

Is your sensor data worth analyzing?

I can review the signal chain or design it from the start.

Start a conversation

← Back to all projects