毕业设计(论文)题目:基于单片机的高校节能灯光控制系统的设计学院:信息与控制学院I摘要现在的大学,由于学校开放型的管理模式,加之学生节能意识的淡薄,学校的很多教室在白天室内照度很高的情况下,仍然存在开灯现象;或者夜间许多教室,即使仅有几个学生在教室自习,但教室内照明全部开启。长明灯到处都是,人离开不熄灯的现象处处可见。这种有意和无意的浪费,不仅是浪费了国家资源,而且给学校带来了沉重的负担。本文设计了基于单片机的室内灯光控制系统及其原理,提出了有效的节能控制方法。本系统以AT89S52单片机为主控制器,实现了控制与警告提示等功能。该系统采用了当今比较成熟的传感技术和计算机控制技术,利用多参数来实现对学校教室室内照明的控制,从而达到节能的目的。关键词:灯光控制系统;AT89S52;热释电;节能;AD采集电路IIAbstractNowdays,duetotheopenmanagementstyleandstudents’weakenergy-savingawarenessinhighschool,lightsinmanyclassroomsarekeptonatthedaytimewiththehighbrightness,andalso,lightsarealloninaroomwithonlyafewstudentsstudyingatnight.Wecanfindtheever-burninglampseverywhere.Thoseconsciousandunconsciouswasteleadtothesquanderingnationalresources,meanwhile,itbringscollegesatremendousburden.ThispassagedisplaysanefficientenergycontrolmethodbasedontheprinciplesofSCMindoorlightingcontrolsystem.ThissystemachievedthecontrolandalertfunctionwithAT89S52SCMasitsmaincontroller.Itadoptedtheadvancedtechnologyofripesensingandcomputercontrolmethod,basedonthecharacterstocontrolthelightingconditionofclassroomsoastosaveenergy.Keywords:Lightingcontrolsystem;AT89S52;Pyroelectric;Energysaving;ADacquisitioncircuitIII目录绪论................................................................................................................................11教室灯光控制器简介及控制方案的分析..................................................................31.1教室灯光控制器简介...............................................................................................31.2系统控制方案的分析...............................................................................................31.2.1硬件方案论证..............................................................................................31.2.2微处理器的选择..........................................................................................31.2.3传感器的选择..............................................................................................42系统控制模块的硬件设计..........................................................................................52.1控制模块的硬件构成.................................................................................................52.2控制系统的主要硬件电路.......................................................................................52.2.1AT89S52单片机...........................................................................................52.2.2光线强度检测模块....................................................................................102.2.3单片机对ADC0832的控制........................................................................132.2.4热释电红外人体检测模块电路................................................................142.2.5按键管理模块电路....................................................................................172.2.6超时报警电路............................................................................................172.2.7系统的其他模块........................................................................................183控制模块软件设计与开发........................................................................................203.1系统监控主程序模块.............................................................................................203.1.1系统自检初始化........................................................................................213.1.2定时中断处理............................................................................................213.1.3ADC0832数据读取程序流程....................................................................223.2数据采集的实现.....................................................................................................233.3系统键功能.............................................................................................................243.4系统显示功能.........................................................................................................253.7看门狗模块.............................................................................................................263.8超时报警系统.........................................................................................................27IV结论..............................................................................................................................29致谢..............................................................................................................................30参考文献..........................................................................................................................31附录A系统电路原理图...............................................................................................32附录B系统源程序…………………………………………………………………...34附录C硬件实物图.......................................................................................................44沈阳理工大学应用技术学院学士学位论文1绪论随着科学技术和社会经济的发展,人们的生活水平在不断提高,导致用电量的加剧,又因为世界性的能源危机,能源缺乏已成为世界所面临的重大问题。而此问题对我国来说更加严重。随着各类高等院校的扩招,教室的扩建,教室照明的需求也越来越大,而教室照明的管理不严格,往往造成电能的巨大浪费,在这种情况下,提高教室用电效率便成为首要考虑的问题。我国的能源储量位居世界前列,中国是世界第二大能源生产国,同时也是第二大能源消费国。我国一次能源资源总储备估为4万亿吨标准煤左右。但是,人均能源资源占有量却远远低于世界的平均水平。二十世纪九十年代,中国人均探明煤储备量147吨,为世界平均水平的41.4%;人均探明石油储备量2.9吨,为世界平均水平的11%;人均探明天然气为世界平均水平的4%;人均探明可开