Introduction - If you have any usage issues, please Google them yourself
Use the STM32 DSP library functions, the signal of the AD to the FFT transform, and display to the LCD screen. Do is 512 points fft, show the number 240, and there is a certain guarantee of accuracy. With real-time high.