资源描述:
《基于单片机的智能窗帘设计-毕业论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于单片机的智能窗帘设计DesignofsmartcurtainsbasedonMicrocontrollers摘要随着科技的飞速发展,人们对于现在的生活水平,空气环境,居住质量的要求越来越高。所以智能家居系统慢慢地步入了我们的视线,它主要就是为我们的生活提供便捷,实现我们理念中的科技家、智慧家、绿色家。而智能窗帘做为智能家居中的一个模块,它的发展潜能也是无可限量的。在硬件设计部分,我将STC89C52做为设计的核心,我先概述了单片机的运行特征和主要引脚的使用,首先介绍了有关晶振电路,复位电路的
2、作用和连接图,再介绍了时钟DS1302的特点进行概述,对它的整体排布和连接图进行介绍,再介绍了步进电路的工作原理和工作参数以及它的结构图,然后介绍了LCD1602显示器的各种功能和特性,最后介绍了传感器TSL2561的工作原理以及与单片机的连接。在软件设计部分,我先对我主程序模块的设计的操作流程图进行介绍,然后叙述了我自己设计理念,再介绍了步进电机模块、按键模块、手动控制模块、定时控制模块、光感控制模块的操作流程。最后通过调试,成功实现了本次毕业设计的手动控制、定时控制、光感强度控制窗帘开闭的功
3、能。关键词:智能家居,智能窗帘,DS1302,LCD1602,TSL2561VAbstractWiththerapiddevelopmentofscienceandtechnology,people'sdemandforthelivingstandard,airenvironmentandqualityoflivingisgettinghigherandhigher.Sosmarthomesystemslowlysteppedintoourlineofsight,itismainlytoprov
4、ideconveniencetoourlife,achieveourphilosophyofscienceandtechnology,intelligenthome,greenhome.Andtheintelligentcurtainisamoduleintheintelligenthousehold,itsdevelopmentpotentialalsoisunlimitable.Inthehardwaredesignpart,IchoseSTC89C52asthemainchipofthis
5、design.IfirstintroducedthecharacteristicsoftheSCMSTC89C52andthefunctionofthepin,thenintroducedthecrystaloscillatorcircuit,theroleoftheresetcircuitandconnectiondiagram,thenintroducesthecharacteristicsofDS1302clockaresummarized,theoverallarrangementofi
6、tandtheconnectiongraphareintroduced,thenintroducedthesteppercircuitworkingprincipleandparametersanditsstructurediagram,andthenintroducesthefunctionsandcharacteristicsofLCD1602display,finallyintroducestheconnectionprincipleofsensorTSL2561andmicrocontr
7、oller.Inthepartofsoftwaredesign,operationflowchartofthemainprogrammoduleIIdesignareintroduced,andthendescribesmyowndesignconcept,thenintroducesthesteppermotormodule,keymodule,manualcontrolmodule,timingcontrolmodule,lightcontrolmoduleoperatingprocedur
8、es.Finally,throughdebugging,thegraduationdesignofmanualcontrol,timingcontrol,lightintensitycontrol,curtainopeningandclosingfunction.Keywords:smarthome,intelligentcurtain,DS1302,LCD1602,TSL2561VV目录目录第1章引言11.1研究背景和意义11.2国内外研究现状11.2.1国外研究现状11.2.1国内研究现状2