杨蕴哲, 李昌禄, 杨业昆, 张倪, 晁志腾. 基于单片机的音乐喷泉设计[J]. 实验科学与技术, 2020, 18(3): 43-49. DOI: 10.12179/1672-4550.20190306
引用本文: 杨蕴哲, 李昌禄, 杨业昆, 张倪, 晁志腾. 基于单片机的音乐喷泉设计[J]. 实验科学与技术, 2020, 18(3): 43-49. DOI: 10.12179/1672-4550.20190306
YANG Yunzhe, LI Changlu, YANG Yekun, ZHANG Ni, CHAO Zhiteng. Design of a Music Fountain Based on SCM[J]. Experiment Science and Technology, 2020, 18(3): 43-49. DOI: 10.12179/1672-4550.20190306
Citation: YANG Yunzhe, LI Changlu, YANG Yekun, ZHANG Ni, CHAO Zhiteng. Design of a Music Fountain Based on SCM[J]. Experiment Science and Technology, 2020, 18(3): 43-49. DOI: 10.12179/1672-4550.20190306

基于单片机的音乐喷泉设计

Design of a Music Fountain Based on SCM

  • 摘要: 介绍了一个以MSP430F5529和STM32F103单片机为核心的小型音乐喷泉系统。装置利用快速傅里叶变换(FFT)从音频信号中提取出频谱,使用单片机PWM波控制喷泉水柱形状,使得喷泉水柱的高度实时显示出音乐频谱形状。同时也给出了双单片机各自的功能和互相通信的原理。经实践验证,该系统采样准确,稳定可靠。本装置的制作过程理论与实践结合紧密,涉及单片机控制、FFT转换、双单片机串行通信和PWM波调制等内容,具有较高的理论和实践价值。

     

    Abstract: 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.

     

/

返回文章
返回