日本語 English

FFT (Fast Fourier Transform)

Overview

Calculates the discrete Fourier transform (DFT) using the fast Fourier transform (FFT) algorithm
The DFT assumes the input signal is periodic, so the calculation is meaningless for non-periodic signals

What Is a Fourier Transform?

Roughly speaking, it is a calculation that "separates the input signal by frequency"
For example, the input signal below can be decomposed into frequencies of 5 Hz + 20 Hz + 100 Hz

Diagram of frequency decomposition by FFT
Example of decomposing an input signal into frequency components

Use cases

The hope is to detect problems in motors and similar equipment early
For example, FFT the vibration data during normal operation, constantly compare it with the current FFT data, and issue a warning when differences appear

Example of motor vibration analysis using FFT
Example of motor vibration analysis using FFT

Symbols

FFT

Calculates the FFT

FFT function block
In-out
Data
Sampling data
Input
WindowType
Window function
Output
Out
Power spectrum

Window function (WindowType)

ValueWindow function
0Hanning window
1Hann window
2Blackman window
OtherRectangular window

How to Collect Sampling Data

Number of samples

Put the sampling data (Data) in an array with 512, 1024, 2048, 4096, 8192 or 16384 elements
More samples give higher resolution but longer calculation time
8192 and 16384 added (Ver0.0.3)

Sampling period

Frequencies up to half the sampling frequency can be observed
For example, with a sampling frequency of 1 kHz you can observe up to 500 Hz, and with 10 kHz up to 5 kHz

Execution timing when calculating FFT continuously

Run the FFT calculation once the number of samples has been collected
FFT calculation takes time, so if you want to collect sampling data continuously, store sampling data 2 in separate memory while calculating the FFT of the full sampling data 1, as shown below
If continuity is not needed, you can start sampling after the FFT calculation, or if you want to run FFT frequently, you can overlap sampling 1 and sampling 2 and create sampling 3, sampling 4 and so on

Sampling image for continuous FFT execution

FAQ

What is FFT?

FFT stands for fast Fourier transform, an algorithm that converts time waveform data into frequency components.

Why must the number of samples be a power of 2?

Because the FFT algorithm can calculate efficiently that way.

How should the sampling frequency be chosen?

Set it to at least twice the highest frequency you want to observe.

Can FFT be used for anomaly detection?

Yes, it is widely used for vibration analysis of motors and bearings.

Related pages

How-to navigator

FFT analysis procedure

Download

Comments