In this video I want to explain you how to realize audio spectrum analysis based on FFT function on the STM32.
0:01 - General Introduction
7:27 - Code review
12:36 - Testing with tone generator
14:14 - Testing with music
For further details on the STM32 hardware configuration and the DMA usage, please watch my first video on the STM32 audio-dsp sessions where I explained this topic in detail:
https://youtu.be/lNBrGOk0XzE
More detailed explanation on the block-based processing approach with the help of the CMSIS DSP library you can watch here:
https://youtu.be/vCcALaGNlyw
Download the code here:
https://github.com/YetAnotherElectronicsChannel/STM32_FFT_Spectrum_Analysis
Used hardware:
Pmod I2S2 Stereo In/Out Board
https://store.digilentinc.com/pmod-i2s2-stereo-audio-input-and-output/
STM32F407G-DISC1 Evalboard
https://www.digikey.de/short/pd8tnp