基于单片机的照明控制系统(电气2班焦普)

  • 格式:docx
  • 大小:505.81 KB
  • 文档页数:27

word文档可自由复制编辑 毕业论文

论文题目:基于单片机的照明控制系统

word文档可自由复制编辑 摘要

用日益广泛,已成为现代电子系统中最重要的智能化核心部件。它伴随着微电子技术的发展而产生,是一个将计算机各主要功能部件集成在一块半导体芯片上的完整的数字处理系统。单片机的类型繁多,具有优良的特性,用途极为广泛。基于单片机的控制系统已经广泛的应用到工业,农业,电力电子,楼宇智能化等领域。楼宇智能化的发展也为基于单片机的照明控制系统奠定了良好的发展基础。

本文阐述了照明的有线、无线控制方式设计原理与实现方法。以设计过程为主线,分别从硬件和软件两个方面描述设计过程,即从硬件电路的设计方法到实现所要求功能的软件技术。该照明控制系统的主控制器、分控制器分别是以AT89C51与AT89C2051单片机为基础,实现了有线通信、无线数传、控制与显示等功能。文中详细地描述了控制电路的设计过程,包括:键盘与LED显示电路、RS485通信电路、无线数传电路、照明灯控制电路以及看门狗电路等。对于软件设计主要有主控制器、分控制器的有线通信程序设计与无线数字传输程序设计以及灯光控制、定时控制、键盘扫描与LED显示等程序设计。有线通信程序的功能是:通过RS485主从通信方式,由主控制器发出命令对全部或单个分控制器所控制的照明灯实现开启、关闭、灯光亮度调节、定时控制等功能。无线数传程序设计的功能是:通过无线数传模块实现照明灯的无线遥控,同样实现有线方式控制的功能。

With the increasingly widespread, has become the most important

intelligent core components in modern electronic systems. It is

accompanied by the development of microelectronic technology and

production, is a major functional components of computer integrated

complete digital processing system in a semiconductor chip. Single chip

type many, has excellent properties, use a very wide range of. To industry,

application of SCM control system has been based on agriculture, power

electronics, intelligent building and other fields. The development of

intelligent building is also the lighting control system MCU laid a good

foundation for the development based on.

This paper expounds the method and Realization of wired, wireless

lighting control design principle. In the design process as the main line,

describe the design process from two aspects of hardware and software,

from the hardware circuit design method to realize the required function

word文档可自由复制编辑 of software technology. The lighting control system of the main controller,

controller is based on AT89C51 and AT89C2051 microcontroller based

implementation of the cable, communication, wireless data transmitting,

controlling and display function. This paper describes in detail the

design process, the control circuit including: the keyboard and LED

display circuit, RS485 communication circuit, wireless transmitting

circuit, control circuit of lighting and a watchdog circuit. Software

design for the main controller, wired communication program design of

controller and wireless digital transmission program design and lighting

control, timing control, keyboard scanning and display program design LED.

The wired communication programming function is: through RS485

master-slave communication mode, function command lamp control on all or

the individual sub controller achieve open, close, lamp brightness,

timing control issued by the main controller. The function of wireless

data transmission program design is: wireless remote control lamp by the

wireless data transmission module, achieve the same wired control

function.

关键词:单片机,主控制器,分控制器,有线通信,无线数传,灯光亮度控制,定时控制等。

目录

word文档可自由复制编辑 摘要···················································

前言······················································

第一章 序言·················································

1.1 单片机的基本概念及基本结构···································

1.2 单片机的应用技术···········································

1.3 有线通信技术和无线数传技术································

1.4 小结·················································

第二章 基于单片机的照明控制系统的设计框架和性能·····················

2.1 系统设计要点··················································

2.2 系统的结构··················································

2.3 系统性能指标与技术要求··········································

2.4 小结················································

第三章 基于单片机的照明控制系统的硬件电路设计·······················

3.1 主控制器的电路设计·········································

3.1.1 键盘的接口设计·············································

3.1.2 LED数码显示的接口设计·········································

3.2 分控制器的电路设计·················································

3.2.1 时钟芯片的接口设计··············································

3.2.2 零点检测与可控硅控制电路的设计·····························

3.3小结··················································

第四章 基于单片机的照明控制系统的软件设计······························

4.1 照明启停控制程序设计·············································

4.1.1 全部启停控制程序设计············································

4.1.2 单独启停控制程序设计···············································

4.2 照明亮度控制程序设计···············································

4.2.1 全部亮度控制程序设计···············································

4.2.2 单独亮度控制程序设计···············································

4.3 照明定时控制程序设计···················································

4.3.1 全部定时控制程序设计······································

4.3.2 单独定时控制程序设计···················································