1、摘 要 I 摘摘 要要 为了有效利用教室灯光、节约能源,设计了以 AT89C2051 单片机作为控制核心的教室灯 光控制系统,能根据学校作息时间、光照情况自动调节教室灯光的打开或关闭。调试结果证 明该系统具有很好的人机交互界面,能对教室灯光进行智能控制,且电路简单,成本低,节 约能源,可移植性好。也可应用于图书馆、会议室、办公室、办公等场所,具有很好的实际 应用价值和广泛的应用空间。 本课题针对教室灯光的控制,分析了教室灯光智能控制的原理和实现方法, 提出了基于单片机设计教室灯光智能控制系统的思路,并在此基础上开发了智能 控制系统的硬件模块和相应软件部分。 该系统以 AT89S51 单片机作为
2、控制模块的核心部件, 采用热释红外人体传感 器检测人体的存在,采用光敏三极管构成的电路检测环境光的强度;根据教室合 理开灯的条件,通过对人体存在信号和环境光信号的识别与判断,完成对教室灯 光的智能控制,避免了教室用电的大量浪费。系统还具有报警功能;同时还采用 了软/硬件的“看门狗”等抗干扰措施。 本系统程序部分采用 C 语言编写,采用模块化结构设计、条理清晰、通用性 好,便于改进和扩充。该系统具有体积小,控制方便,可靠性高,针对性强,性 价比高等优点,可以满足各类院校对教室灯光控制的要求,很大程度的达到节能 目的。 关键词关键词:智能控制器 热释红外传感器 单片机 Abstract In or
3、der to make effective use of classroom lighting, energy saving, to design the AT89C2051 MCU as the control core of the lighting control system for classroom, according to the school calendar, light automatic adjustment of classroom lighting in the open or close. Debugging results show that the syste
4、m has a very good man-machine interface, for classroom lighting intelligent control, and has the advantages of simple circuit, low cost, energy saving, good portability. Can also be applied in the library, conference room, office, office and other places, and has good practical application value and broad application space. The topic for classroom lighting control, analysis of classroom lighting intelligent control principle and realization method, is put forward based on the SCM design clas