FFT and Spectrum Analysis: Sampling, Resolution, Windows and Averaging
The fast Fourier transform turns a time signal into a spectrum, so that each machine fault appears at its own frequency. Getting a trustworthy spectrum depends on a few set-up choices: how fast to sample, how long to record, which window to apply and how many averages to take. These choices trade frequency resolution against time and amplitude accuracy.
Key takeaways
- Sample at least 2.56 × the highest frequency of interest (Fmax) with an anti-alias filter; Nyquist is Fs/2.
- Resolution Δf = Fs/N = 1/T. Finer resolution needs a longer record: 0.1 Hz needs 10 s of data.
- Lines of resolution = N/2.56. A 3,200-line spectrum to 1 kHz has Δf = 0.3125 Hz.
- Use a Hanning window for general vibration, flat-top for accurate amplitudes, rectangular only for transients or order-tracked signals.
- Averaging reduces random noise; overlap (50–67 %) shortens measurement time without losing data.
1. Sampling and aliasing
A frequency above Fs/2 that reaches the digitiser folds back and appears as a false lower frequency (aliasing). It cannot be removed afterwards, so an analogue anti-alias filter must act before the converter. Delta-sigma converters include this filter automatically.
| Fmax | Lines | Fs | N | Record T | Δf |
|---|---|---|---|---|---|
| 1 kHz | 800 | 2.56 kHz | 2,048 | 0.8 s | 1.25 Hz |
| 1 kHz | 3,200 | 2.56 kHz | 8,192 | 3.2 s | 0.3125 Hz |
| 10 kHz | 6,400 | 25.6 kHz | 16,384 | 0.64 s | 1.5625 Hz |
| 10 kHz | 25,600 | 25.6 kHz | 65,536 | 2.56 s | 0.39 Hz |
2. Window functions
The FFT assumes the record repeats forever. If the signal does not complete a whole number of cycles, the ends do not join and energy leaks into neighbouring lines. A window tapers the ends to reduce leakage at the cost of a wider peak.
| Window | Main use | Max amplitude error | Noise bandwidth (bins) |
|---|---|---|---|
| Rectangular (uniform) | Transients that fit the record, order-tracked or synchronous data | −3.9 dB (36 %) | 1.00 |
| Hanning | General vibration, steady signals | −1.4 dB (15 %) | 1.50 |
| Flat top | Accurate amplitude of tones, calibration | < 0.1 dB | 3.77 |
| Exponential / force | Impact (modal) testing | — | — |
3. Averaging and overlap
- Linear (RMS) averaging of spectra reduces the variance of random noise; 4–16 averages is common.
- Peak hold keeps the maximum in each line: useful for run-ups and intermittent events.
- Time-synchronous averaging (triggered by a tachometer) removes everything not locked to shaft speed, isolating gear and shaft signals.
- Overlap of 50–67 % with Hanning uses data efficiently; total time ≈ T·[1 + (n−1)(1 − overlap)].
4. Example spectrum
5. Calculators
FFT set-up calculator
Interactive spectrum demo (two tones + noise)
6. Self-test: check your understanding
Pick an answer to see the explanation. Numerical answers are accepted within the stated tolerance (±3 % unless noted).
7. References and further reading
- Randall, R. B., Frequency Analysis, Brüel & Kjær, 1987.
- Harris, F. J., 'On the use of windows for harmonic analysis with the DFT', Proc. IEEE, 66(1), 1978.
- Bendat, J. S. and Piersol, A. G., Random Data: Analysis and Measurement Procedures, 4th ed., Wiley, 2010.
- ISO 18431-1/-2, Mechanical vibration and shock — Signal processing.