资源描述:
《基于单片机楼宇照明控制系统设计正文》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、摘要摘要随着电子技术的飞速发展,基于单片机的控制系统已广泛应用于工业、农业、电力、电子、智能楼宇等行业,微型计算机作为嵌入式控制系统的主体与核心,代替了传统的控制系统的常规电子线路。同时楼宇智能化的发展与成熟,也为基于单片机的照明控制系统的普及与应用奠定了坚实的基础。本文阐述了照明的设计。以设计过程为主线,分别从硬件和软件两个方面描述设计过程,即从硬件电路的设计方法到实现所要求功能的软件技术。该照明控制系统的主控制器、分控制器分别是以AT89C51与AT89C2051单片机为基础,实现了有线通信、控制与显示等功能。文中详细地描述了控制电路
2、的设计过程,包括:键盘与LED显示电路、RS485通信电路、照明灯控制电路以及看门狗电路等。对于软件设计主要有主控制器、分控制器的有线通信程序设计、灯光控制、定时控制、键盘扫描与LED显示等程序设计。有线通信程序的功能是:通过RS485主从通信方式,由主控制器发出命令对全部或单个分控制器所控制的照明灯实现开启、关闭、灯光亮度调节、定时控制等功能。关键词:主控制器;分控制器;灯光亮度控制;定时控制;RS48545AbstractAbstractWiththerapiddevelopmentofelectronictechnology,the
3、systemofcontrolbasedonSingle-chipMicrocomputeriswidelyappliedinindustry,agriculture,electricpower,electron,intelligentbuildingandsoon.Microcomputer,asthesubjectandcoreoftheembeddedsystemofcontrol,replacesthetraditionalsystem—electroniccircuit.Atthesametime,thedevelopmenta
4、ndmaturationoftheintelligentbuildinghaveestablishedthesubstantialfoundationforthepopularizationandapplicationofthecontrolsystemforlightingbasedonsingle-chipmicrocomputer.Thispaperdescribesthedesignoflighting.Todesignthemainline,respectively,bothfromthedescriptionofhardwar
5、eandsoftwaredesignprocess,fromhardwaredesignmethodstoachievetherequiredfunctionalityofsoftwaretechnology.Thelightingcontrolsystem,themaincontrollerandsubcontrollerAT89C2051AT89C51microcontrollerisrespectivelybasedonachievingacablecommunications,controlanddisplay.Described
6、indetailthecontrolcircuitdesignprocess,including:keyboardandLEDdisplaycircuit,RS485communicationcircuit,lightingcontrolcircuitandwatchdogcircuit.Themaincontrollersoftwaredesignmainly,wirelinecommunicationsub-controllerprogramming,lightingcontrol,timingcontrol,keyboardscan
7、ningandLEDdisplayprogramming.Wiredcommunicationprogramfunctionsare:master-slavecommunicationviaRS485,themastercontrollerwillsendcommandstoallorasinglesub-controllerunderthecontroloflightinglampstoachieveopenandclose,lightsdimming,timingcontrolandotherfunctions.Keywords:Ma
8、incontroller;sub-controllers;lightintensitycontrol;timingcontrol;RS48545河北工程大学毕业设计说明书1绪论随着我国近几十年