中文题目:基于单片机的音乐喷泉控制系统设计外文题目:DESINGOFMUSICFOUNTAINCONTROLSYSTEMBASEDONSINGLECHIPMICROCOMPUTER毕业设计(论文)共58页(其中:外文文献及译文15页)图纸1张完成日期2017年6月答辩日期2017年6月I摘要随着人们生活水平的提高和建立绿色城市的向往,音乐喷泉以其独特的魅力和特殊的功能,愈来愈成为休闲娱乐产业中的一项重要产品,音乐喷泉的兴建也越来越多。根据目前音乐喷泉的发展现状,本文将介绍一个以单片机为控制核心的小型音乐喷泉控制系统。本文设计的音乐喷泉控制系统是以STC89C52单片机为控制核心的。音乐信号通过功放芯片LM386进行放大,然后再由ADC0832芯片对音频信号进行模数转换,ADC0832芯片再把转换后数字信号传送给单片机,单片机根据接受到数字信号的强弱来对应地控制彩灯和喷泉的变化,从而实现了彩灯、喷泉水姿与音乐节奏的同步变化。经过硬件和软件的调试,最终实现了音乐喷泉的功能。关键词:音乐喷泉;单片机STC89C52;发光二极管;模数转换IIABSTRACTWiththeimprovementofpeople'slivingstandardandyearnforbuildinggreencity,musicfountainismoreandmorepopularforitsuniquecharmandspecialfunctionlargenumbersofmusicfountainisincreasinglybuilt.Accordingtothepresentsituationofmusicfountainnow,controlsystemofminitypemusicFountainbasedonSTC89C52SCMwasintroduced.ThisdesignofthemusicfountaincontrolsystemisSTC89C52microcontrollerasthecorecontrol.MusicsignalthroughtheamplifierchipLM386toenlarge,andthenbytheADC0832chipontheaudiosignalanalog-to-digitalconversion,ADC0832chipandthenconvertthedigitalsignaltothemicrocontroller,themicrocontrolleraccordingtothestrengthofthedigitalsignaltocontrolthecorrespondinglanternsandFountainchanges,inordertoachievethelantern,fountainwaterandmusicrhythmsynchronizedchanges.Afterhardwareandsoftwaredebugging,andultimatelytoachievethefunctionofthemusicfountain.KeyWords:musicfountain;STC89C52;led;Analog-to-dig目录1绪论.......................................................................................................................11.1音乐喷泉的发展现况........................................................................................11.2本课题研究的意义............................................................................................11.3本文主要内容.....................................................................................................22音乐喷泉系统的设计方案...................................................................................32.1研究内容及设计目标.........................................................................................32.2系统方案的选择.................................................................................................32.3单片机的选型.....................................................................................................42.4模数转换芯片的选型.........................................................................................52.5微型潜水泵的选型............................................................................................53音乐喷泉系统的硬件电路设计...........................................................................73.1AltiumDesigner软件的介绍.............................................................................73.2单片机电路........................................................................................................83.2.1STC89C52的概述...........................................................................................83.2.2单片机最小系统电路.....................................................................................93.3音乐信号的采集..............................................................................................103.3.1LM386芯片的概述.......................................................................................103.3.2采样定理的应用...........................................................................................123.4AD转换电路的设计........................................................................................133.4.1ADC0832芯片的概述...................................................................................133.4.2ADC0832与STC89C52的连接...................................................................143.4.3输入电路的设计...........................................................................................163.5潜水泵调速硬件方案设计...............................................................................173.6灯光硬件方案设计...........................................................................................183.7解决系统时间滞后硬件电路设计...................................................................204系统软件设计.....................................................................................................214.1keil软件介绍....................................................................................................214.2主程序流程图...................................................................................................224.3延迟程序的设计..............................................................................................234.4ADC0832数据读取的程序设计......................................................................234.5彩灯程序的设计..............................................................................................264.6潜水泵调压程序的设计..................................................................................285系统测试与结果分析..........................................................................................305.1软件仿真...........................................................................................................305.2实验验证....................................................................................................