常州刘国钧高等职业技术学校毕业论文论文名称基于单片机的教室灯光控制系统的设计系部机电工程系专业电气自动化班级1164姓名周新成学号1164192016年4月1日基于单片机的教室灯光控制系统的设计摘要:本文针对高校教室照明的特点和应用需求,提出了一种基于单片机的照明控制系统。AT89S51单片机作为控制模块的核心部件,热释电红外传感器检测人I体的存在,采用光敏三极管构成的电路检测环境光的强度;根据教室合理的信号灯和环环境光信号的识别和判断,对人的身体状况,对教室照明智能控制,避免随着大量浪费电教室。该系统具有报警功能,还采用了软/硬件“看门狗”等抗干扰措施。该系统能满足各类高校对照明控制的要求,在很大程度上达到节能的目的。关键词:单片机;智能控制;热释红外传感器;X5045IIDesignofLightingControlSystemBasedonMCUAbstract:Thispapercopiouslystudiedusingfeatures,lightingrequirementsandtheexistingproblemsoftheuniversityclassroom,atlastakindoflightingcontrolsystembasedonmcuofclassroomwasputforward.ThesystemusedAT89S51microcontrollerasacorecomponentofthecontrolmodule.Itintroducedpyroelectricinfraredsensortodetecttheexistenceofhumanbody,andusedcircuitwhichconstitutedofphotosensitivetriodetodetectthestrengthofenvironmentlighting.Thenavaraccordingtotheresonableconditionsofturningonclassroomlightandtheidentificationofsignalaboutenvironmentallightingandexistingofhumanbody,achievedtheintelligentcontrolofclassroomlighting.Atlast,itavoidthewasteofelectricity.Italsohadalarmingfunction,atthesametimeanti-interferencemeasuressuchasthesoftware/hardware"watchdog"wasadopt.Thesystemcanmeetinstitutionrequirementsforclassroomlightingcontrol,largelyachievedthepurposeofenergysaving.Keywords:Microcontroller;Intelligentcontrol;Pyroelectricinfraredsensor;X5045II目录摘要...............................................................ⅠABSTRACT...........................................................Ⅱ第1章引言........................................................11.1课题研究的目的与意义..........................................11.2采用智能照明控制系统的优势....................................11.3智能照明控制系统的研究现状....................................21.4本章小节......................................................3第2章教室灯光控制器简介与方案分析.................................42.1大学教室照明控制现状.........................................42.2教室灯光控制器简介...........................................42.3系统控制方案分析..............................................42.4本章小节......................................................5第3章系统控制模块的硬件设计.......................................63.1系统控制模块的硬件构成........................................63.2系统控制的主要硬件电路........................................73.2.1系统主控电路.............................................73.2.2系统供电电路.............................................83.2.3系统复位电路.............................................93.2.4数据采集电路............................................103.2.5系统时钟电路............................................133.2.6继电器驱动电路..........................................153.2.7超时报警电路............................................153.2.8按键控制电路............................................163.3本章小节.....................................................17第4章控制模块软件设计............................................184.1系统监控主程序模块.........................................