毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

AT89S51单片机的音乐彩灯控制器设计+仿真图+源代码

时间:2017-01-05 12:27来源:毕业论文
AT89S51单片机的音乐彩灯控制器设计;从单片机的内存中取出音符的音调和节拍,音调通过单片机的定时中断来确定,节拍通过延时函数来实现,同时通过程序确定Light-Emitting Diode(LED)亮灯

摘  要:在当今的娱乐场所,音乐彩灯得到了广泛的应用;然而市场上的音乐彩灯不能真正做到音乐和彩灯的结合。本文是基于单片机的音乐彩灯控制器设计;从单片机的内存中取出音符的音调和节拍,音调通过单片机的定时中断来确定,节拍通过延时函数来实现,同时通过程序确定Light-Emitting Diode(LED)亮灯的个数,从而实现音乐彩灯的控制效果。设计出的作品能够按照要求工作,可以实现同步输出音乐和彩灯信号,并且LED的闪烁能够跟随音乐节奏的变化而变化;音乐的音调低,LED亮的个数少,音调高,则亮的个数多。
关键词:单片机;音乐彩灯;同步控制4994

Design of Music Lights Controller Based on MCU
Abstract: In today’s entertainment, music lantern has been used widely. However, most of the music lantern on the market can not really make the combination of music and lantern. This article is the design of music lantern controller based on MCU; it got the note’s pitch and beat from the memory of MCU, the tone is determined by the timer interrupt of MCU, the beat is determined by the delay function, and the number of flashing LED is determined by the program, then it can realize the effect of music lantern. The design can work in accordance with the requirements, and achieve the function that the music light controller can play music, make the lantern flashing synchronously, also the tone’s vary of music can change the color LED; when the music tone is low, only a few number of LED bright, while the tone is high, the number will be more.
Key Words: MCU; Music lantern; Synchronization control
目    录

摘要    1
引言    1
1.系统设计要求与基本原理    2
1.1设计任务    2
1.2基本原理    2
1.3歌曲简谱的编码规则    3
2.系统硬件电路的设计    5
2.1时钟振荡电路    7
2.2复位电路    7
2.3音乐演奏电路    8
2.4 LED彩灯显示电路    9
3.系统软件设计    10
3.1控制要求    10
3.2程序设计    10
4.系统仿真与调试    12
4.1应用软件概述    12
4.2系统的仿真    13
4.3系统的调试    14
5.结束语    15
参考文献    15
附录    17
附录1:系统原理图    17
附录2:生日快乐歌简谱    18
附录3:系统程序    19
附录4:系统仿真图    21
附录5:作品实物图    22
致谢    24
基于单片机的音乐彩灯控制器设计
引言
随着生活水平的提高和科技的进步,由于LED彩灯价格低廉,易于控制,使用寿命长等优点,音乐彩灯发展迅速,广泛应用于现实社会,尤其是娱乐场所,它能够很好地陶冶人们的心情,烘托环境的气氛,已深得人们的喜爱。
音乐彩灯的发展由来已久,各位前辈、同行、各种机构为之投入的人力和物力也都比较多,使得它能发展迅速,体积由大慢慢变小,可靠性逐渐增强;但目前市场上的此类产品操作不便,安装完成后功能固定,并且彩色LED的闪烁并不能反映音乐的节奏的变化。本文研究的产品使用单片机控制,操作方便,安装完成后易于切换功能,并且做到了彩色LED能够反映音乐的节奏。
1. 系统设计要求与基本原理
1.1 设计任务
本设计以单片机为控制核心,主控芯片采用AT89S51,同时在蜂鸣器、LED、按键等外围设备作用下实现系统能够播放音乐、LED电路模块按照要求显示并能反映音乐的节奏。本设计要求进行能够在仿真软件PROTEUS上实现仿真,仿真调试完成后,要求做出实物,调试完成后,所设计的作品能按照本文的要求工作。 AT89S51单片机的音乐彩灯控制器设计+仿真图+源代码:http://www.751com.cn/zidonghua/lunwen_1833.html
------分隔线----------------------------
推荐内容