摘要
介绍了一个以MSP430F5529和STM32F103单片机为核心的小型音乐喷泉系统。装置利用快速傅里叶变换(FFT)从音频信号中提取出频谱,使用单片机PWM波控制喷泉水柱形状,使得喷泉水柱的高度实时显示出音乐频谱形状。同时也给出了双单片机各自的功能和互相通信的原理。经实践验证,该系统采样准确,稳定可靠。本装置的制作过程理论与实践结合紧密,涉及单片机控制、FFT转换、双单片机串行通信和PWM波调制等内容,具有较高的理论和实践价值。
A small size music fountain system has been built up with MSP430F5529 and STM32F103 as controllers. To extract the frequency spectrum, fast Fourier transform(FFT) is used calculated by SCM. And the height of water columns is determined by PWM waves, so that different water columns of the fountain show frequency spectrum of music. A method for two SCMs is introduced to communicate with each other. Through verification of experiments, the system is reliable and has a high accuracy in frequency sampling. Production process of this device involves SCM controlling method, Fast Fourier Transform, communication by serial ports, PWM waves and so on, which have high theoretical and practical value.
作者
杨蕴哲
李昌禄
杨业昆
张倪
晁志腾
YANG Yunzhe;LI Changlu;YANG Yekun;ZHANG Ni;CHAO Zhiteng(School of Microelectronics,Tianjin University,Tianjin 300072,China;School of Electrical and Information Engineering,Tianjin University,Tianjin 300072,China)
出处
《实验科学与技术》
2020年第3期43-49,共7页
Experiment Science and Technology
关键词
音乐喷泉
快速傅里叶变换
单片机控制
串行口通信
music fountain
fast Fourier transform
SCM controlling
serial ports communication