单片机应用毕业论文

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

上海交通大学自学考试毕业论文1基于单片机的照明控制系统摘要随着电子技术的飞速发展,基于单片机的控制系统已广泛应用于工业、农业、电力、电子、智能楼宇等行业,微型计算机作为嵌入式控制系统的主体与核心,代替了传统的控制系统的常规电子线路。同时楼宇智能化的发展与成熟,也为基于单片机的照明控制系统的普及与应用奠定了坚实的基础。本文阐述了照明的有线、无线控制方式设计原理与实现方法。以设计过程为主线,分别从硬件和软件两个方面描述设计过程,即从硬件电路的设计方法到实现所要求功能的软件技术。该照明控制系统的主控制器、分控制器分别是以AT89C51与AT89C2051单片机为基础,实现了有线通信、无线数传、控制与显示等功能。文中详细地描述了控制电路的设计过程,包括:键盘与LED显示电路、RS485通信电路、无线数传电路、照明灯控制电路以及看门狗电路等。对于软件设计主要有主控制器、分控制器的有线通信程序设计与无线数字传输程序设计以及灯光控制、定时控制、键盘扫描与LED显示等程序设计。有线通信程序的功能是:通过RS485主从通信方式,由主控制器发出命令对全部或单个分控制器所控制的照明灯实现开启、关闭、灯光亮度调节、定时控制等功能。无线数传程序设计的功能是:通过无线数传模块实现照明灯的无线遥控,同样实现有线方式控制的功能。关键词:主控制器,分控制器,单片机,有线通信,无线数传,灯光亮度控制,定时控制上海交通大学自学考试毕业论文2TheControlSystemforLightingBasedonSingle–chipMicrocomputerAbstractWiththerapiddevelopmentofelectronictechnology,thesystemofcontrolbasedonSingle-chipMicrocomputeriswidelyappliedinindustry,agriculture,electricpower,electron,intelligentbuildingandsoon.Microcomputer,asthesubjectandcoreoftheembeddedsystemofcontrol,replacesthetraditionalsystem—electroniccircuit.Atthesametime,thedevelopmentandmaturationoftheintelligentbuildinghaveestablishedthesubstantialfoundationforthepopularizationandapplicationofthecontrolsystemforlightingbasedonsingle-chipmicrocomputer.Thepaperexpatiatesonthedesigningtheoriesandimplementationmethodofthecontrolsystemforlightingbywiredorwirelesscommunications.Takingthedesigningprocessasmainline,itdescribestheprocessofdesigningfromtworespects—hardwareandsoftware.Inanotherword,thepaperdescribestheprocessfromthemethodofcircuitdesigningtothesoftwaretechnologyofrealizingthedemandedfunctions.ThehostcontrollerofthecontrolsystemforlightingisbasedonAT89C51single-chipmicrocomputer,andtheauxiliaryonesarebasedonAT89C2051.Thesystemcandomanyjobs,suchaswiredcommunication,wirelessdatatransmitting,controllinganddisplay.Thepaperdescribesthedesigningprocessofthecircuitatlength,including:keyboardandLEDdisplaycircuit,RS485communicationcircuit,wirelesstransmittingcircuit,controlcircuitoflighting,watchdogcircuit,etc.Thedesigningofsoftwaremainlyincludestheseveralprogramming,suchaswiredcommunication,wirelessdatatransmitting,lamplightcontrolling,timedcontrolling,keyboardscanningandLEDdisplaying.ThewiredcommunicationprogrammingfunctionisthatthroughMaster-slavecommunicationmethodbasedonRS485thehostcontrollersendsorderstotheallauxiliarycontrollersoreachone,including:turning上海交通大学自学考试毕业论文3onlighting,turningofflighting,regulatingbrightnessoflighting,controllingtimedlighting,etc.Thewirelessdatatransmittingprogrammingfunctionisthatbywirelesstransmitteritrealizeswirelesscontrollingofthelighting,andachievesthefunctionsidenticaltowiredcommunication.KeyWords:Hostcontroller,Auxiliarycontroller,Single-chipmicrocomputer,Wiredcommunication,Wirelessdatatransmitting,controllingbrightnessoflighting,Timedcontrolling上海交通大学自学考试毕业论文4目录摘要·····················································1Abstract··················································2第一章序言·······················································61.1单片机应用技术···················································61.2有线通信技术···················································71.3无线数传技术···················································71.4本章小结···················································8第二章基于单片机的照明控制系统的设计框架和性能························92.1系统设计要点···················································92.2系统的结构···················································92.3系统性能指标与技术要求···········································112.4本章小结···················································12第三章基于单片机的照明控制系统的硬件电路设计·······················133.1主控制器的电路设计············································133.1.1键盘的接口设计···················································143.1.2LED数码显示的接口设计···········································143.1.3看门狗监控电路的设计··················································143.2分控制器的电路设计·················································153.2.1时钟芯片的接口设计··············································163.2.2零点检测与可控硅控制电路的设计·····························163.3RS485通信电路的设计···········································173.4无线数传电路的设计···············································203.4.1无线数传电路的连接···········································203.4.2SRWF-1模块的特性·······································203.5本章小结···················································21第四章基于单片机的照明控制系统的软件设计······························224.1人机交互程序设计··········································22上海交通大学自学考试毕业论文54.1.1键盘扫描程序设计········································234.1.2LED数码显示程序设计·············································254.2照明启停控制程序设计·············································264.2.1全部启停控制程序设计············································264.2.2单独启停控制程序设计···············································284.3照明亮度控制程序设计···············································304.3.1全部亮度控制程序设计···············································304.3.2单独亮度控制程序设计···············································324.4照明定时控制程序设计···················································334.4.1全部定时控制程序设计···················································334.4.2单独定时控制程序设计········

1 / 53
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功