内容发布更新时间 : 2024/11/14 11:08:22星期一 下面是文章的全部内容请认真阅读。
摘 要
随着人们生活水平的提高和建立绿色城市的向往,音乐喷泉以其独特的魅力和特殊的功能,愈来愈成为休闲娱乐产业中的一项重要产品,音乐喷泉的兴建也越来越多。
根据目前音乐喷泉的发展现状,介绍了一个以AT89C51单片机为核心的小型音乐喷泉控制系统。给出了一个简洁的单片机控制电路,分析了输出地址,描述了不同类型的输出电路和输入电路;介绍了从特定构造的喷池中获得决定喷池动作的喷池数据的原理;给出了主程序框图和看门狗子程序。采用程序控制来控制花型。音频信号还影响灯光色彩和灯光光线明暗的变化。从而使灯光色彩、灯光的闪烁和喷泉水姿随音乐节奏而变化。
关键词:音乐喷泉;单片机;单片机控制;喷池数据
1
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 AT89C51 SCM was introduced.A succinct SCM control circuit was pre—to obtain data from a specific fountain pool .Was elaborated,which will affect actions of the p001.Finally, the structure drawing of main program and the watchdog program were put forward. The flower shapes are controlled by program controlling or man-made keystroke controlling electromagnetic valves. The color、the light and shade of ray are changed by musical signals. So that the color、the light and shade of ray、the spring form is changed with music’s rhythm when music is played.
Key Words: music fountain;SCM;SCM control;watchdog program
2
目录
摘 要.............................................................................................................................. 1 ABSTRACT ................................................................................................................... 2 第1章 绪 论................................................................................................................ 4
1.1课题背景........................................................................................................... 4 1.2 音乐喷泉的发展和现状.................................................................................. 4 第2章 音乐喷泉控制系统硬件设计.......................................................................... 6
2.1 控制系统硬件总体设计方案.......................................................................... 6 2.2音乐信号的采集............................................................................................... 6
2.2.1 音频放大电路的设计............................................................................ 6 2.2.2 采样定理................................................................................................ 8 2.3 单片机电路...................................................................................................... 9
2.3.1 单片机的概述........................................................................................ 9 2.3.2 时钟电路的设计.................................................................................. 10 2.4 AD转换电路 .................................................................................................. 10
2.4.1 ADC0809与单片机89C51的连接 ..................................................... 11 2.4.2输入电路............................................................................................... 12 2.5潜水泵调速硬件方案设计............................................................................. 13 2.6灯光硬件方案设计......................................................................................... 14 2.7解决系统时间滞后硬件电路设计................................................................. 14 第3章 喷泉控制系统软件设计.............................................................................. 16
3.1喷池数据......................................................................................................... 16 3.2主程序框图..................................................................................................... 17 3.3 控制潜水泵软件设计模块............................................................................ 17
3.3.1 潜水泵开关调速的原理...................................................................... 18 3.3.2潜水泵开关调速的软件设计............................................................... 19 3.4控制电磁阀软件设计模块............................................................................. 20 3.5 歌曲存储模块................................................................................................ 20
3.5.1音频脉冲的产生................................................................................... 20 3.5.2音乐程序............................................................................................... 22 3.6灯光控制模块................................................................................................. 25 3.7看门狗子程序................................................................................................. 25 3.8实验仿真......................................................................................................... 26 结 论............................................................................................................................ 28 致 谢............................................................................................................................ 29 参考文献...................................................................................................................... 30 附 录............................................................................................................................ 31
附录1.................................................................................................................... 31 附录2.................................................................................................................... 32
3