Skip to content

A demo for voltage A/D converting and doing FFT to voltage/current data using STM32 series MCU ⚡️

Notifications You must be signed in to change notification settings

ucJoyfullComp/STM32_ADC_FFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

这是一个使用STM32单片机实现的电压电流采集,AD转换并且将采集的数据进行快速傅里叶变换生成频谱图的示例代码

This is a demo using STM32F103z to convert voltages' A/D and transform basic data into spectrum using FFT algorithm

需要移植的移植库文件:

  • table_fft.h (FFT表文件)
  • stm32_dsp.h (调用DSP库函数的头文件,如果是自己编写的fft,则不需要此文件)
  • cr4fft64_stm32.scr4fft256_stm32.scr4fft1024_stm32.s (DSP傅里叶变换的可执行函数,如果是自己完成的fft则不需要此文件)
  • FFT2.c(和同一目录下FFT2) 这个是自己实现FFT的函数所在文件,其中包含简单的数据处理,滤波(如果是调用dps函数完成,则不需要此文件)
  • dsp_g2.c (测试序列发生函数,fft调用函数,串口通信函数,全部封装在一个函数内,在main函数里面调用即可,这个是自己实现的FFT)
  • dsp_asm.c (同上,不过这个是直接调用库函数的FFT,不推荐使用)

Essential library files:

  • table_fft.h (Fast Fourier Transform Table Files)
  • stm32_dsp.h (Used to call the DSP library function header files, you do not need this file if you have prepared the Fast Fourier Transform using software algorithm already)
  • cr4fft64_stm32.s and cr4fft256_stm32.s and cr4fft1024_stm32.s (Executable functions used to perform DSP's Fourier Transform, you do not need this file if you have prepared the Fast Fourier Transform using software algorithm already)
  • FFT2.c(And the FFT2 library files under the same directory) This is the function of their own FFT file, which contains a simple data processing, filtering (you do not need this file if you call dsp's function to complete)
  • dsp_g2.c (Test sequence generation function, Fast Fourier Transform call function, serial communication functions, all encapsulated in a function, inside the main function can be called.btw,this is their own implementation of the FFT algorithm)
  • dsp_asm.c (Ibid, but this is a direct call library function FFT algorithm is not recommended)

About

A demo for voltage A/D converting and doing FFT to voltage/current data using STM32 series MCU ⚡️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published