《教室智能照明系统设计-附录the Profibus DP protocol implemented on Ethernet》由会员分享,可在线阅读,更多相关《教室智能照明系统设计-附录the Profibus DP protocol implemented on Ethernet(50页珍藏版)》请在金锄头文库上搜索。
1、1教室智能照明系统设计摘要摘要本研究针对教室灯光的控制方法,尤其是教室灯光的智能控制方面的发展现状,分析了教室灯光智能控制的原理和实现方法,提出了基于单片机的教室灯光智能控制系统的设计思路,并在此基础上开发了智能控制系统的硬件装置和相应软件。该系统以 AT89C52 单片机作为控制装置的智能部件,采用热释红外人体传感器检测人体的存在,采用光敏三极管构成的电路检测环境光的强度;根据教室合理开灯的条件,系统通过对人体的存在信号和环境光信号的识别和智能判断,完成对教室照明回路的智能控制,避免了教室用电的大量浪费。系统还具有多种报警功能;同时还采用了软/硬件的“看门狗”技术等抗干扰措施。单片机软件采用
2、汇编语言编制,采用模块化结构设计、条理清晰、通用性好,便于改进和扩充。该系统具有体积小,控制方便,可靠性高,专用性强,性价比合理等优点,可以满足各类大、中专院校教室灯光控制的要求,很大程度的达到节能目的。关键词关键词: :人体;红外线;传感器;自动控制;热释电2AbstractCurrently light intelligent control systems are not efficiently used in the classroom. In order to improve the system, based on control and current methods of ho
3、w to keep control,developing intelligent classroom light control system and developed the hardware and software system.This classroom light intelligent control system the theory of the light put forward methods ofon the basis of AT89C52 is developed, which machine of AT89C52 is a major part, and the
4、 environment of development is better than before. This system can satisfy the following functions, such as controlling the circuit of illumination, testing and processing daylight signal, testing and processing the signal of human body that illuminates the back track exists, reporting to the warnin
5、g devices,etc.In order to satisfy these functions, the system adopted the homologous methods respectively, and to the gearing of the system, analyzing how to install,test and run the system.The microcontroller software was developed based on assemble language. Assemble language is one kind of struct
6、ured program languages, it has more advantages than other high-level languages. Assemble language adopts building block design. Its commonality is very good and easy to improve and expand. It could be used to develop larger 一 scale system with more perfect performance. At the same time, the anti-jam
7、ming technologies, such as watchdog, are necessary when developing hardware and software.This system had many advantages. For example, the physical volume was small,the system was conveniently controlled, the credibility was high, the appropriation was strong, and its price proportion was ideal,etc.
8、 The experiment proved that the system can satisfy the control command of the classroom s light device, so it could largely reduce the consuming of energy resources. Key words: Human body, infrared ray, sensor, automatic control,heat to release the electricity1.3目录目录摘要摘要-1ABSTRACT-21.1.引言引言-51.1 本课题
9、研究的意义-5 1.2 国内外教室灯光控制器研究的现状及其存在的问题-5 1.3 本课题研究的内容和目标-71.3.1 研究内容-71.3.2 研究目标-7 1.4 本课题拟解决的关键问-82.2.教室灯光控制器简介及控制方案的分析教室灯光控制器简介及控制方案的分析-82.1 教室灯光控制器简介-8 2.2 系统控制方案的分析-83.3.系统控制模块的硬件设计系统控制模块的硬件设计-93.1 控制模块的硬件构成-9 3.2 控制系统的主要硬件电路- -93.2.1 系统主控电路-103.2.2 在线编程模块电路-103.2.3 系统供电电路-113.2.4 数据采集电路-123.2.5 系统时
10、钟电路-163.2.6 系统看门狗电路-193.2.7 继电器驱动接口电路- -213.2.8 超时报警电路-214 4 控制模块软件设计与开发控制模块软件设计与开发-224.1 系统监控主程序模块-234.1.1 系统自检初始化-234.1.2 定时中断处理-244.1.3 多任务操作系统的构建-24 4.2 数据采集模块-254.2.1 人体存在传感器的优缺点-254.2.2 数据采集软件设计的实现-254.2.3 人体存在传感器的抗干扰措施-264.2.4 人体存在传感器的安装要求-27 4.3 时钟模块-274.3.1 数据输入输出-274.3.2 时钟内部寄存器的使用-2844.3.3 时钟自检初始化-294.3.4 时钟程序设计-30 4.4 显示驱动模块-30 4.4.1 ULN2803 驱动器的应用-324.4.2 显示程序设计-32 4.5 系统键功能-334.5.1 键功能处理程序-335 5 系统调试运行及问题分析系统调试运行及问题分析-345.1 单片机系统调试方法及步骤-345.2 出现的主要问题及分析解决-356.6.结论和建议结论和建议-366.1 结论-36 6.2 建议-377.7.致谢致谢-