1、 毕业设计(论文) 题目: 舞厅彩灯控制器的设计与仿真 I 摘 要 彩灯作为一种景观,既可安装在建筑物上作为装饰增添节日气氛,也可作为一种广 告起到宣传作用,还可用在舞厅、卡拉 OK 厅、酒吧等场合增强灯光效果。本文介绍了彩 灯控制器设计的意义,概述了传统舞厅彩灯控制器的缺点,以 AT89C51 单片机为核心设 计了舞厅彩灯循环控制系统。系统采用 74LS161 实现 11 进制计数,通过单片机控制门 电路与彩灯的连接与断开以实现彩灯的亮与灭,达到了按设定时间有规律循环控制彩灯 的目的。仿真结果得到了预期的效果,证实了电路硬、软件设计的正确性。该系统结构 简单,单片机外围元件少,易于维护,节约
2、能源,可操作性强,具有广泛的推广价值。 关键词关键词:74LS161;11 进制计数器;门电路 II Abstract Lights as a kind of landscape, can be installed on the buildings as add festive decoration, also can be used as a kind of advertisement publicity effect, can also be used in a dance hall, karaoke bars, bars and other places, strengthen the
3、lighting effects. This paper introduce the significance of lights controller design, summarizes shortcomings of the traditional lights, designs the disco lights cycle control system based on the AT89C51 MCU. Hexadecimal system uses 74 ls161 11 counts, by single-chip microcomputer control circuit con
4、nected and disconnected with lights in order to realize the lights on and off, set according to time reached a regular cycle control lights. The simulation results obtained the expected effect, confirmed the correctness of the circuit hardware and software design. The system structure is simple, les
5、s micro controller peripheral components, easy maintenance, save energy, the maneuverability is strong, has wide popularization value. Keywords: 74LS161; 11 binary counter; gates III 目 录 摘 要 . I Abstract .II 第 1 章 绪 论 1 1.1 概述基本思想 . 1 1.2 设计背景 1 1.3 应用价值 2 1.4 彩灯控制器设计意义. 2 第 2 章 系统设计 3 2.1 设计任务要求 .
6、3 2.2 器件的选取. 3 2.3 方案论证 3 2.4 系统设计 3 2.5 彩灯控制器各单元电路的设计 4 第 3 章 仿真 6 3.1 11 禁止计时器的仿真. 6 3.2 总体电路的仿真 . 7 3.3 硬件结构 8 3.4 彩灯各个状态转换及端口定义 . 11 3.5 软件设计与仿真.12 第 4 章 仿真测试 14 4.1 仿真平台 .14 4.2 仿真结果 .15 第 5 章 制作与调试 16 5.1 元件的选取16 5.2 装配电路板16 5.3 整机调试 .16 5.5 现象 17 第 6 章 总 结 18 参考文献 19 致 谢 20 附录一 系统总原理图 21 附录二 元器件清单 22 附录三 循环彩灯源程序 23 1 第 1 章 绪 论 1.1 概述基本思想 本次设计主要是通过运用AT89C51单片机系统内部编程和LED彩灯结合外围电路来 设计完成对彩灯按设定的时间有规律的循环控制。 1.2 设计背景 科学改变了世界,有了灯光夜晚不在黑暗,正是电带来了温暖,白炽灯给人类以光 明,创造了巨大的财富。如今灯光已成为人民生活中必不可少的家用品。而相续发展起