Signal Processing Workbench

Signal Processing Workbench

Process sampled signals or integrate front-end spectral noise, then decide whether the evidence is trustworthy.

animation
sensing
signal-processing
filtering
sampling
fft
beginner
A signal processing workbench with sampled-signal filters plus a deterministic front-end noise-band mode for thermal, amplifier, flicker, quantization, SNR, and effective-bit evidence.
Simulation Beginner Signal Processing Sensor Evidence

Signal Processing Workbench

Trace sampled signals through processing, or integrate front-end spectral noise across a selected band. In both modes, the goal is to connect a visible cause to trustworthy measurement evidence.

EMA low-passprocessing method
0.00 deg Cprocessed error vs hidden target
0 msestimated response delay
Checkingprocessing decision
TryChoose Front-end noise band, set Source resistance 10.0 kohm and band 10 to 1010 Hz, then Calculate.
ObserveIntegrated noise reaches about 35.4 uV RMS and SNR changes with bandwidth; narrowing the band removes noise power. Step confirms this readout.
ExplainIndependent noise densities add in power and integrate across frequency, so wider bandwidth raises RMS noise. Step exposes this mechanism.
Technical boundariesThe calculation omits nonstationary sources, aliasing, amplifier transfer variation, complex impedance, ADC distortion, drift, and interference lines.
Colour keyfundamentals identitycurrent / primaryreference / datasuccesscautionerror / failure
Try

Load Wide noisy, then change only Upper band edge from 1010 Hz to 110 Hz.

Observe

SNR improves from 49.0 to 54.8 dB and the diagnosis changes, while nominal resolution stays 16 bit.

Explain

A narrower brick-wall band integrates less analog noise. It can improve evidence-based effective bits; it cannot manufacture ADC count width.

Front-end spectral-noise integration and SNR

Where does the measurement noise come from?

Combine resistor, amplifier, current-noise, 1/f, and ADC quantization evidence over one explicitly shaded band. Every density is input-referred before integration.

Total input noise35.4 uV RMS
Signal-to-noise ratio49.0 dB
Effective result14.7 bit
Nominal ADC16 bit
1 · Densities

Refer resistor and amplifier sources to V/sqrt(Hz).

2 · Integrate band

Shade fLow through fHigh and integrate flat plus 1/f power.

3 · Add ADC

Combine independent analog RMS noise with q/sqrt(12).

4 · Diagnose

Compare analog and quantization floors, SNR, and effective bits.

Evidence inputs

1 ohm to 10.0 Mohm; real and frequency-independent here.
Must remain at or above the lower edge.

Input-referred density and integrated band

Log-frequency view. The green-tinted region is the exact fLow-to-fHigh integration band.

flat density 1/f density analog total density ADC quantization equivalent
Flat densitysqrt(eR^2 + eAmp^2 + (iAmp R)^2)
Band integrationvwhite = eflat sqrt(fHigh-fLow); vflicker = e1 sqrt(ln(fHigh/fLow))
Independent RMS sumvtotal = sqrt(vanalog^2 + (q/sqrt(12))^2)
Evidence resulteffectiveBits = min(bits, log2(Vspan/(sqrt(12) vtotal)))

Diagnosis and ledger

Analog-noise dominatedThe integrated analog RMS floor is larger than ADC quantization RMS.
Johnson density12.9 nV/sqrt(Hz)
Current-noise density0 nV/sqrt(Hz)
Flat combined1000 nV/sqrt(Hz)
Bandwidth1000 Hz
White integrated31.6 uV RMS
1/f integrated6.44 uV RMS
Analog total32.3 uV RMS
ADC step q50.4 uV
Quantization RMS14.5 uV RMS
Analog noise0.641 count
Noise-limited quantity0.00354 unit
Misconception: “Narrowing bandwidth creates a higher-bit ADC.”
Wide band: analog-noise dominated, 49.0 dB SNR, 14.7 effective bit; nominal stays 16 bit.
Fixture 1 · Johnson vs 16-bit ADC

checking
SNR 56.7 dB; quantity 0.00145 unit; effective 16.0 bit.

Fixture 2 · Wide noisy front end

checking
SNR 49.0 dB; analog 0.641 count; effective 14.7 bit.

Fixture 3 · Narrower band

checking
SNR 54.8 dB; analog 0.219 count; effective 15.7 bit.

Fixture assertions pending.

Technical boundaries. This integrates independent RMS noise sources over an ideal brick-wall band. Source resistance and amplifier voltage/current densities are treated as frequency-independent, and the optional flicker term is exactly e1/sqrt(f); real devices require datasheet curves or measured spectra. The model does not include complex impedance, source capacitance, gain/noise gain, aliasing, anti-alias filter shape, correlated noise, interference tones, shot-noise device parameters, ADC aperture jitter, DNL/INL, reference noise, clipping, drift, or calibration uncertainty. Nominal ADC bits never increase. Validate a design with the real transfer function, sampling chain, and measured input-referred spectrum.

Start With Purpose

Filtering is chosen for a task: smooth a trend, remove spikes, isolate changes, or reject a known interference tone.

Sampling Matters

The sample rate limits which frequencies can be trusted. Anything above Nyquist can fold into a false low-frequency pattern.

Delay Is Real

More smoothing usually means slower response. A good dashboard may be a bad alarm if it reacts too late.

Validate Output

The processed signal is useful only when error, spectrum evidence, and threshold decisions improve together.

1

Hidden Signal

The real physical value or target pattern is what the sensor is trying to reveal.

2

Sampled Raw Data

Noise, interference, spikes, bias, or sampling limits are added to the measurement.

3

Processing Method

A filter or transform changes the data according to a specific assumption.

4

Feature Or Event

The processed value is compared with a threshold or frequency clue.

5

Trust Check

The result is judged against error, delay, and aliasing risk.

Samples0Measurements in the current time window.
Nyquist0 HzHighest frequency that can be represented without folding.
Raw Error0.00Baseline error before processing.
Event Match0%Threshold decision agreement with the hidden target.

Controls

Temperature trend
Scenariosensor task
Methodsmooth trend
Viewtime chain
PlaybackHidden signal
Conditionsstress test
Lower rates can hide fast changes or create aliases.
Random variation makes instant readings less reliable.
Adds a repeated tone or ripple that may need rejection.
Higher strength removes more variation but can slow response.
The same signal can look good but still make poor decisions.

Processing pipeline

raw, target, and processed signal
hidden target raw samples processed output threshold
Hidden targetThe simulation knows the useful physical signal, but a real device only sees samples.
Processing choiceEMA low-pass smoothing follows slow trends while reducing short-term noise.
ValidationA processed line is judged by error, delay, and decision quality.

Diagnosis

cleaner signal
Processing helps The selected method reduces error without creating a major warning.
Current target0.00
Raw sample0.00
Processed0.00
Current error0.00
Useful frequency0 Hz
Interference0 Hz
Threshold value0.00
Next actionValidate
EMA low-pass is a practical digital smoothing model for slow sensor trends, but it adds response delay.

Sampling

A sampled system can only represent frequencies below half the sample rate.

Nyquist = sample rate / 2

Moving Average

Averages the most recent N samples; smoother output usually means more delay.

y[n] = mean(x[n-N+1 ... n])

EMA Low-Pass

A first-order recursive smoother that is common in microcontroller firmware.

y[n] = y[n-1] + alpha(x[n]-y[n-1])

Threshold Decision

Processed data often feeds alarms, counters, or state changes, so accuracy must be checked at the decision point.

event = processed value > threshold
Signal Processing Quick Reference

Processing changes raw samples to support a task. The same filter can help one task and harm another.

  • Low-pass smoothing is useful for slow physical variables such as temperature or tank level.
  • Median filtering is useful when isolated spikes are the main problem.
  • High-pass filtering emphasizes changes and removes slow baseline drift.
  • Known-tone rejection can remove a repeated interference tone only when the sampled data contains enough information about it.
Method Selection

Choose the method from the failure pattern, not from the visual desire for a smooth plot.

  • Moving average: simple, predictable, but delayed.
  • EMA: memory-efficient and useful on small devices.
  • Median: strong against spikes, weaker for continuous noise.
  • High-pass: useful for vibration and sudden changes, poor for absolute level tracking.
Technical Accuracy Notes
  • The hidden target is available only because this is a teaching simulation; real systems need calibration data, references, or field validation.
  • The spectrum view uses a small direct DFT-style calculation for visual evidence, not a production FFT implementation.
  • The EMA cutoff is an educational first-order approximation using alpha = 1 - exp(-2*pi*fc/fs).
  • The known-tone rejection method subtracts a fitted sine and cosine at the selected interference frequency; it is not a general adaptive noise canceller.
  • When the interference frequency is above Nyquist, the warning is intentional: the original tone cannot be uniquely recovered from the sampled values.
Implementation Checklist
  • Pick a sample rate before interpreting frequency evidence.
  • Estimate acceptable response delay for the application.
  • Compare filtered output against the decision it feeds, not only against visual smoothness.
  • Record the chosen method, parameter, units, and validation result.

Break Smoothing

Select Vibration, choose Moving Avg, and raise filter strength. Notice how a smoother line can destroy the useful motion pattern.

Find Aliasing

Select Mains Noise and lower the sample rate until the Nyquist warning appears. The spectrum evidence becomes misleading.

Compare Spike Handling

Select Tank Level, raise noise and interference, then compare EMA with Median. Spike rejection and smoothing are different problems.