FFT signal processing
FFT is Fast Fourier Transform (Fast Fourier Transform), which converts time-domain signals into frequency-domain signals, and has a wide range of applications, such as eliminating audio image noise.
Instructions
k210 is equipped with a hardware FFT module, which supports 64-point, 128-point, 256-point and 512-point FFT.
- Import FFT module
import FFT
- Input time domain data (such as audio data) and perform FFT operation
res = FFT.run(data, points, shift)
For related API explanation, please refer to FFT-API
Routine
Collect sound and perform FFT calculation, and display the calculated data as a histogram on the screen: demo_fft_spectrum
effect: