单片机照明灯智能控制器设计(附程序清单,PCB,电路原理图)(论文11500字)
摘 要
该夜用照明灯系统采用AT89S52单片机为核心,利用单片机的端口分别控制LCD1602标准时钟系统、可控硅和电铃,达到智能操控照明系统。我们常见的路灯、过道灯、草坪灯、广告箱灯、霓虹灯和厕所等公共场所用的一些照明灯往往彻夜通明,这不仅浪费能源,在某种程度上也造成了光污染。在今天电力能源供应比较紧张的情况下,在没有人员活动的深夜让这些灯关掉一些,不仅可以节约能源,也能够节约一些开支。本文主要介绍系统的开发背景,意义,并重点介绍了硬件设计和软件设计的过程。在硬件方面,从元件,模块,系统逐级阐述,特别是系统的核心部分AT89C52,并用PROTEL 99SE软件对原理图和电路板的制作。软件方面,用现阶段比较流行的单片机C语言编程,利用定时器中断控制标准时钟。最后是软硬件的调试,其中介绍了单片机仿真软件KEIL C51的使用。
关键词 AT89S52 可控硅 AT89c2051 LCD1602 光敏电阻 keil c51 PROTEL 99SE
Abstract
This night flare system is an system based on the AT89S52 monolithic integrated circuit, it makes use of the port of monolithic integrated to control the LCD1602 standard clock system, the silicon-controlled rectifier and the electric bell separately and then the lighting system was controlled by intelligence. Some common streets which are in public places ,such as: the aisle way light, the lawn lamp, the advertisement box lamp, the neon light and the restroom and so on the public place uses some flares often all night are brightly lit, this is not only wasting of energy, but also make the ray pollution in some kind of procedure. Nowaday , the electric power energy is in short supply, so if we turn off some when there is no people, it is not expenses. In this article,it introduces the systematic development background, the significance and especially the process of the hardware design and the software design .In the hardware aspect, this article elaborates the part, the module, the system one by one, especially the core of the system AT89C52,and uses the PROTEL 99SE. Software to the schematic diagram and the electric circuit board manufacture. In the software aspect with the present stage quite popular monolithic integrated circuit C language programming, uses the timer interrupt control standard clock. Finally it was the software and hardware debugging, in which introduced the in statons of the stations of monolithic integrated circuit simulation software KEIL C51 use.
Keyword AT89S52 silicon-controlled rectifier AT89c2051 LCD1602 photoresistance
keil c51 PROTEL 99SE
本选题是用单片机介绍一种使用AT89C2051单片机联合AT89S52制作的夜用照明灯智能控制器,采用两开两关的工作模式,即在天黑后自动开灯,过4小时后关灯;在天亮前1小时开灯,天亮后自动关灯。天黑后开灯的持续时间和天亮前提前开灯的时间可通过程序进行调整。由于本系统采用单片机对环境照度进行测试判断并进行计算,因此电路能随着季节的变化自动调节每天的开关灯的时间,从而达到自动节约电能的目的。
目 录
摘 要 I
Abstract II
1 绪论 1
1.1课题研究的背景 1
1.2 开发的意义 1
1.3 课题研究的方案 1
2 芯片选用说明 1
2.1 AT89S52 1
2.1.1 相关芯片及其引脚分析 1
2.1.2 引脚功能说明 2
2.2 AT89C2051 4
2.2.1 相关芯片及其引脚分析 4
2.3 LCD1602 5
2.3.1相关芯片及其引脚分析 5
2.3 SMC1602A参考连接: 7
3.系统硬/软件设计 8
3.1 夜用照明系统的设计 8
3.2 标准时钟显示部分设计: 10
3.3 光敏接收电路 12
3.4 接键可调部分 12
3.5 系统照明和报警部分 13
3.6 系统复位与晶振电路 13
3.7 软件设计部分 13
3.8 程序源程序:见附页1 14
4 调 试 14
4.1 硬件调试 14
4.2 软件的调试 14
5.总结与展望 16
5. 1工作总结 16
5. 2展望 16
参考文献: 17
致 谢 18
附页1: 程序清单 19
|