ControlLoopLab
Home Digital filtersWorked example

Butterworth filter for vibration trending

A vibration trend channel requires a flat low-frequency passband with faster roll-off than a one-pole filter.

Model inputs

Filter specification
Hz
Hz
Hz

Discrete transfer & step samples

Below Nyquist
Cutoff gain
−3.0103dB
Test phase
−146.69°
Test delay
0.25994ms
Noise BW
237.41Hz
Discrete low-pass attenuation and step responseDiscrete attenuationdB18.3531534431280−72−47−223Frequency (Hz, log)Unit-step samplesoutput036912−0.08380.3210.7261.13Sample index nCutoff markerTest markerStep samples
y[n] = b0 x[n] + b1 x[n−1] + b2 x[n−2] − a1 y[n−1] − a2 y[n−2]

Calculated results

b0
0.052170416386085695
b1
0.10434083277217139
b2
0.052170416386085695
a1
-1.2581042113964938
a2
0.46678587694083656
DC gain
1×
Cutoff attenuation
−3.0103dB
Cutoff phase
−90°
Cutoff group delay
2.7508samples
Cutoff group delay
1.0745ms
Test attenuation
−16.329dB
Test phase
−146.69°
Test group delay
0.66546samples
Test group delay
0.25994ms
95% first crossing
1.9531ms
99% first crossing
2.3438ms
Equivalent noise bandwidth
237.41Hz

Model and interpretation

Full methodology

Set cutoff in digital frequency

Cutoff is strictly between DC and Nyquist. EMA uses the exact digital half-power coefficient. Tustin and Butterworth prewarp the cutoff before bilinear conversion. The denominator uses a0 = 1 and the negative-feedback convention shown above.

Read phase and delay separately

Phase is ∠H(eʲω). Group delay is −d∠H/dω in samples and can differ sharply from phase delay. At a Nyquist transmission zero the displayed phase is the one-sided limit. The noise bandwidth is the one-sided integral of |H|² at unity DC.

Check how the firmware represents it

Step times show the first sample at or past 95% and 99%, with the input step at n = 0. Near DC or Nyquist, implement a suitable factored or high-precision realization and recheck coefficient quantization.