摘要
利用STM32CubeMx快速编程软件和移植STM32 DSP库函数,设计一种以STM32F103C8T6为核心的OLED音乐频谱显示器。该显示器通过音频信号采集电路来获取外部音频模拟信号,STM32F103C8T6内部ADC转换器将音频模拟信号转为数字信号,调用DSP库中的傅里叶(FFT)函数对音频数字信号进行频谱换算,OLED特效显示算法运算。经过实践设计与测试,OLED音乐频谱显示器运行稳定,能够实现多种显示特效,程序代码具有较高的可移植性和易用性。
Using STM32 CubeMx rapid programming software and STM32 DSP library functions,an OLED music spectrum display with STM32 F103 C8 T6 as the core is designed.STM32 F103 C8 T6 internal ADC converter converts audio analog signal into digital signal,and USES FFT function in DSP library to convert frequency spectrum of audio digital signal and calculate special effect display algorithm of OLED.Through practical design and test,OLED music spectrum display runs stably,can realize various display effects,and has high portability and ease of use.
作者
高锋
叶成彬
陈贤钰
GAO Feng;YE Cheng-bin;CHEN Xian-yu(Electrical and Electronic Innovation Laboratory of Guangzhou College of South China University of Technology,Guangzhou 510800,China)
出处
《电子设计工程》
2020年第11期156-160,共5页
Electronic Design Engineering