基于单片机的音乐喷泉系统设计
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
3.4.2 ADC0832 与 STC89C52 的连接................................................................... 14 3.4.3 输入电路的设计 ........................................................................................... 16 3.5 潜水泵调速硬件方案设计............................................................................... 17 3.6 灯光硬件方案设计........................................................................................... 18 3.7 解决系统时间滞后硬件电路设计................................................................... 20 4 系统软件设计 ..................................................................................................... 21 4.1 keil 软件介绍 .................................................................................................... 21 4.2 主程序流程图 ................................................................................................... 22 4.3 延迟程序的设计 .............................................................................................. 23 4.4 ADC0832 数据读取的程序设计...................................................................... 23 4.5 彩灯程序的设计 .............................................................................................. 26 4.6 潜水泵调压程序的设计 .................................................................................. 28 5 系统测试与结果分析.......................................................................................... 30 5.1 软件仿真 ........................................................................................................... 30 5.2 实验验证 ........................................................................................................... 30 6 结 论 .................................................................................................................... 34 致 谢 ....................................................................................................................... 35 参考文献 ................................................................................................................. 36 附录 A 译文 ............................................................................................................ 37 附录 B 外文文献 .................................................................................................... 43 附录 C 部分程序 .................................................................................................... 52 附录 D 系统原理图................................................................................................ 58
II
目录
1 绪论 ....................................................................................................................... 1 1.1 音乐喷泉的发展现况 ........................................................................................ 1 1.2 本课题研究的意义 ............................................................................................ 1 1.3 本文主要内容 ..................................................................................................... 2 2 音乐喷泉系统的设计方案 ................................................................................... 3 2.1 研究内容及设计目标......................................................................................... 3 2.2 系统方案的选择................................................................................................. 3 2.3 单片机的选型 ..................................................................................................... 4 2.4 模数转换芯片的选型......................................................................................... 5 2.5 微型潜水泵的选型 ............................................................................................ 5 3 音乐喷泉系统的硬件电路设计 ........................................................................... 7 3.1 Altium Designer 软件的介绍 ............................................................................. 7 3.2 单片机电路 ........................................................................................................ 8 3.2.1 STC89C52 的概述........................................................................................... 8 3.2.2 单片机最小系统电路 ..................................................................................... 9 3.3 音乐信号的采集 .............................................................................................. 10 3.3.1 LM386 芯片的概述....................................................................................... 10 3.3.2 采样定理的应用 ........................................................................................... 12 3.4 AD 转换电路的设计 ........................................................................................ 13 3.4.1 ADC0832 芯片的概述................................................................................... 13
中文题目:基于单片机的音乐喷泉控制系统设计 外文题目:DESING OF MUSIC FOUNTAIN CONTROL SYSTEM BASED ON SINGLE CHIP MICROCOMPUTER
毕业设计(论文)共 58 页(其中:外文文献及译文 15 页)图纸 1 张
完成日期 源自文库017 年 6 月
This design of the music fountain control system is STC89C52 microcontroller as the core control. Music signal through the amplifier chip LM386 to enlarge, and then by the ADC0832 chip on the audio signal analog-to-digital conversion, ADC0832 chip and then convert the digital signal to the microcontroller, the microcontroller according to the strength of the digital signal to control the corresponding lanterns and Fountain changes, in order to achieve the lantern, fountain water and music rhythm synchronized changes. After hardware and software debugging, and ultimately to achieve the function of the music fountain. Key Words: music fountain;STC89C52;led;Analog - to - dig
答辩日期 2017 年 6 月
摘要
随着人们生活水平的提高和建立绿色城市的向往,音乐喷泉以其独特的魅力和特殊的 功能,愈来愈成为休闲娱乐产业中的一项重要产品,音乐喷泉的兴建也越来越多。根据目前 音乐喷泉的发展现状,本文将介绍一个以单片机为控制核心的小型音乐喷泉控制系统。
本文设计的音乐喷泉控制系统是以 STC89C52 单片机为控制核心的。音乐信号通过功 放芯片 LM386 进行放大,然后再由 ADC0832 芯片对音频信号进行模数转换,ADC0832 芯片再把转换后数字信号传送给单片机,单片机根据接受到数字信号的强弱来对应地控制 彩灯和喷泉的变化,从而实现了彩灯、喷泉水姿与音乐节奏的同步变化。经过硬件和软件 的调试,最终实现了音乐喷泉的功能。 关键词:音乐喷泉;单片机 STC89C52;发光二极管;模数转换
I
ABSTRACT
With the improvement of people's living standard and yearn for building green city, music fountain is more and more popular for its unique charm and special function large numbers of music fountain is increasingly built.According to the present situation of music fountain now, control system of mini type music Fountain based on STC89C52 SCM was introduced.