基于单片机的花样彩灯设计论文 下载本文

内容发布更新时间 : 2024/5/2 11:03:53星期一 下面是文章的全部内容请认真阅读。

基于单片机的花样彩灯设计

摘要:近年来,彩灯对于美化、亮化城市有着不可轻视的重要作用。因此作为城市装饰的彩灯需求量越来越大,对与彩灯的技术和花样也越来越高。目前市场上各种式样的LED彩灯多半是采用全硬件电路实现,存在电路结构复杂、功能单一等局限性,因此有必要对现有的彩灯控制器进行改进。本文介绍了一种简易LED彩灯控制系统的软硬件设计过程,以AT-89S52单片机作为主控核心与辅助硬件电路相结合,利用软件实现对LED彩灯进行控制。本系统具有电路结构简单、操作容易、硬件少、成本低等特点。

关键词:LED彩灯;AT-89S52单片机;彩灯控制器

I

Design of Lantern Controller based on Single-chip

Abstract:In recent years, the lantern for the landscaping, lighting the city has an important role should not be underestimated. So the city decorated with lanterns as the growing demand for technology and lanterns have become more sophisticated and synchronized. Currently on the market a variety of style LED lantern is the most hardware-wide realization of the existence of complex circuit structure, functions and other limitations of a single, it is essential to the current controller to improve the lantern. This paper introduces a simple control system of the LED lantern design process of hardware and software, with AT-89S52 single-chip microcomputer as the master core and supporting the combination of hardware circuitry, using software control of the LED lanterns. The specialties of this system are simple structure, easy control, less hardware, low cost, and so on.

Keywords: LED lantern; AT-89S52 single-chip microcomputer; Lantern controller

II

目 录

一、论文正文

引言 ................................................................................................................................................. 0 1 系统设计 .................................................................................................................................... 1

1.1 设计任务与要求 .......................................................................................................... 1 1.1.1 设计任务 ................................................................................................................... 1 1.1.2 设计要求 ................................................................................................................... 1 1.2 方案的选择与论证 ..................................................................................................... 1 2 系统硬件设计........................................................................................................................... 1

2.1 控制器模块 ................................................................................................................... 3 2.2 按键模块 ....................................................................................................................... 5 2.3 LED显示模块 ............................................................................................................... 5 2.4 接口模块 ....................................................................................................................... 6 2.5硬件电路调试 ............................................................................................................... 9 2.6硬件元件清单 ............................................................................................................... 9 3软件设计与仿真 ..................................................................................................................... 10

3.1仿真软件简介 ............................................................................................................. 10 3.2 程序设计 ..................................................................................................................... 11 3.3 仿真结果 ..................................................................................................................... 12 3.4 系统调试 ..................................................................................................................... 13 4 结论 ........................................................................................................................................... 14 附录程序 ...................................................................................................................................... 15 参考文献 ...................................................................................................................................... 18 谢辞 ............................................................................................................................................... 19

二、附录

1 开题报告 .................................................................................................................................. 20 2 结题报告 .................................................................................................................................. 21 3 答辩报告 .................................................................................................................................. 22