基于51单片机的教室智能照明控制系统
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
目录
绪论
1教室灯光自动控制整体描述
1.1 灯光控制总体思想 (7)
1.2 灯光控制方案分析 (8)
1.3本章小结 (9)
2 硬件电路设计
2.1微控制器 (10)
2.1.1核心控制模块 (11)
2.2 教室人数检测模块 (11)
2.2.1热释电红外传感器的原理 (11)
2.2.2教室人数检测模块的功能实现 (12)
2.3 教室光照强度检测模块 (14)
2.3.1光敏电阻的选择及功能简述 (14)
2.3.2 光敏电阻检测光强原理 (16)
2.4 按键控制模块 (17)
2.5 液晶显示模块 (18)
2.6 时钟模块 (19)
2.7本章小结 (21)
3 系统软件设计
3.1系统监控主程序模块 (21)
3.2系统自检及初始化 (22)
3.3 系统主程序流程图 (22)
3.4系统子程序流程图 (22)
3.4.1按键控制流程图 (23)
3.4.2液晶显示流程图 (24)
4 系统仿真
4.1调试方法与步骤 (27)
4.2 主要问题分析 (27)
5总结与展望
5.1总结 (28)
5.2展望 (28)
参考文献 (29)
致谢 (30)
摘要
该课题的研究对象是当前的各大院校对于不合理使用电力资源的现象,综合分析了传统照明系统和智能照明系统对灯光的控制方法,提出了以51单片机为核心的教室智能照明控制方案。在此基础上,将此照明系统分为硬件和软件两个部分,其中硬件部分包括核心控制模块、液晶显示模块、时钟模块、红外检测模块和灯控模块等,STC89C52单片机作为该控制系统的核心元件,处理来自各个模块传输而来的信息,人体的存在通过热释电红外传感器来检测,教室中的光强度则利用光敏电阻设计的电路来检测,分析开灯所需的必要条件,该系统通过对人体是否进入教室里面,和教室中光强的检测以及是否达到设定开关时间段等条件的判断,将这些信息综合处理之后,从而实现对教师灯光智能控制的目的,避免大量浪费电力资源。该系统具有安装方便、工作稳定、实用性强等优点,在很大程度上,能够帮助各高等院校实现对教室灯光的智能控制,从而在一定范围内实现对能源的节约和利用,本系统所采用的编程语言是C语言,采用模块化的设计思想,结构清晰合理,可移植性好,便于改进和扩展。
【关键词】:灯光控制;热释红外传感器;光敏电阻;AT89C52
The Auto -control System of Classroom Lights
Abstract
The research object of this topic is the phenomenon of unreasonable use of electric power resources in the major institutions. The paper analyzes the control method of lighting in traditional lighting system and intelligent lighting system, and puts forward the classroom intelligent lighting control scheme with 51 single chip as the core The On this basis, the lighting system is divided into two parts: hardware and software, including hardware control module, liquid crystal display module, clock module, infrared detection module and light control module lamp. AT89C52 microcontroller as the core components of the control system, the existence of the human body with a pyroelectric infrared sensor to detect the classroom light intensity is the use of photosensitive resistor design circuit to detect, according to the necessary conditions for classroom lighting, the system through Whether the human body into the classroom, and the classroom light intensity detection and whether to set the time to switch the conditions of the judge, after the integrated treatment to achieve the purpose of classroom lighting intelligent control, thus avoiding the classroom power resources, a lot of waste. The system has the advantages of small size, high reliability, convenient control, practicality and high cost performance. It can help the colleges and universities to realize the intelligent control of classroom lighting to a large extent, so as to realize the energy saving and Use, the system used by the programming language is C language, the use of modular design ideas, clear and reasonable structure, good portability, easy to improve and expand.
【Key words】light control;heat release infrared sensor;photoconductive dynatron AT89C52