{$cfg_webname}
主页 > 电子信息 > 单片机 >

基于单片机数字音乐盒的设计与实现(附PCB,电路图,程序)

来源:wenku163.com  资料编号:WK16311786 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9AWK16311786
资料介绍

基于单片机数字音乐盒的设计与实现(附PCB,电路图,程序)(开题报告,中期检查表,毕业论文18000字)        
摘要
传统的音乐盒多是机械音乐盒,其工作原理是通过齿轮带动一个带有铁钉的铁桶转动,铁桶上的铁钉撞击铁片制成的琴键,从而发出声音。随着电力电子技术的发展,一种基于单片机为核心的数字音乐盒逐渐取代了传统的机械音乐盒。本文设计的音乐盒,就是基于单片机的数字音乐盒。它与传统的机械式音乐盒相比更小巧,音质更优美且能演奏和弦音乐。数字音乐盒动力来源是电池,制作工艺简单,可进行批量生产,所以价格便宜。基于单片机制作的音乐盒,控制功能强大,可根据需要选歌,使用方便。所放歌曲的节奏可以根据需要进行设置,根据自己的喜好,也可自行安装歌曲。
数字音乐盒是现代电子科技与音乐结合的产物,是一种新型的音乐播放器,它在现代音乐扮演着重要的角色。单片机具有强大的控制功能和灵活的编程实现特性,它已经溶入现代人们的生活中,成为不可替代的一部分。本系统是以51系列单片机STC89C52为主控制器,几个按键、数码管、扬声器组成。系统通过各个按键的控制,基于可靠的硬件设计和精确而稳定的软件设计,能在数码管上显示当前所播放歌曲顺序的功能和选择歌曲功能。
关键词:数字音乐盒 STC89C52 扬声器 设计

Abstract
The traditional music box is the mechanical music box, its working principle is to drive a nail drum rotation through a gear, the impact of iron nails drums made of keys, and the sound. With the development of power electronic technology, a digital music box based on single chip microcomputer as the core to gradually replace the traditional mechanical music box. The music box is designed in this paper, based on the single chip microcomputer is the digital music box. It is more compact compared with the traditional mechanical music box, sound more beautiful and can play chord music. Digital music box is the source of power battery, simple fabrication process, can carry out mass production, therefore the price is cheap. Microcontroller based music box, strong control function, can according to need to choose songs, easy to use. On the rhythm of the song can be set according to need, according to their own preferences, but also can be installed to the song.
Digital music box is a product of modern electronic technology combined with music,is a music player model, it plays an important role in the modern music. SCM has powerful control functions and flexible programming characteristics, it has converged with modern people's lives, become an irreplaceable part. The system is based on the 51 Series MCU STC89C52 as the main controller, a few keys, digital tube, a loudspeaker. System through the control of each key, reliable hardware design and software design based on the accurate and stable, can display the current playing the song order function and selection of songs in the digital tube.
Keywords: digital music box  STC89C52  loudspeaker  design
 

基于单片机数字音乐盒的设计与实现(附PCB,电路图,程序)
基于单片机数字音乐盒的设计与实现(附PCB,电路图,程序)
基于单片机数字音乐盒的设计与实现(附PCB,电路图,程序)
基于单片机数字音乐盒的设计与实现(附PCB,电路图,程序)


目录
摘要    I
Abstract    II
1  绪论    1
1.1  数字音乐盒的研究背景    1
1.2  研究数字音乐盒的意义    1
1.3  国内外的研究状况    2
2  系统设计方案的选择    4
2.1  硬件的选择    4
2.1.1  主控芯片的选择    4
2.1.2  显示模块的选择    4
2.1.3  供电方式的选择    4
2.1.4  音频功率放大器的选择    5
2.1.5  按键方案的选择    5
2.2  设计方案    5
3  硬件电路设计    6
3.1  STC89C52简介    6
3.1.1  STC89C52单片机的内部结构    6
3.1.2  STC89C52芯片的引脚及特点    7
3.1.3  晶体振荡器的特性    9
3.1.4  芯片擦除    9
3.2  单片机的复位电路设计    10
3.3  显示电路设计    10
3.3.1  LED基本理论知识    10
3.3.2  数码管与单片机的简单接口实验    11
3.4  单片机的震荡电路设计    12
3.5  控制电路设计    12
3.6  LM386音频功率放大器    13
4  软件的实现    15
4.1  音乐产生的方法    15
4.2  音调和节拍的编码    18
4.3  系统开发软件的介绍    18
4.3.1  编程软件KeilC51介绍    18
4.3.2  仿真软件Proteus介绍    20
4.4  单片机程序烧写    21
4.5  软件的编写    22
5  系统调试    23
5.1  硬件调试    23
5.2  软件调试    24
5.3  调试结果    25
结论    26
致谢    27
参考文献    28
附录    29
附录A  源代码    29
附录B 电路总图    36
附录C  PCB图    37
附录D 元件清单    38
 

推荐资料