基于单片机的智能窗帘控制系统设计.docx
《基于单片机的智能窗帘控制系统设计.docx》由会员分享,可在线阅读,更多相关《基于单片机的智能窗帘控制系统设计.docx(39页珍藏版)》请在第壹文秘上搜索。
1、摘要IAbstractII引言11控制系统设计31.1 系统方案设计31.2 系统工作原理42硬件部分设计62.1 控制模块设计62.2 时钟模块82.3 红外线接收模块92.4 光敏检测模块电路92.5 步进电动机控制电路102.6 液晶显示112.7 电源电路123系统原理图134软件设计144.1 系统主程序设计144.2 步进电机子程序设计144.3 按键子程序设计155焊接与调试175.1 电路焊接175.2 系统调试17结论19参考文献20附录1原理图22附录2源程序清单23致谢27摘要为了解决家居环境中手动调节窗帘调整采光避光问题,满足人们智能地调控窗帘的需求,本文设计了单片机控
2、制的智能窗帘系统。该系统含两种控制方式:手动和自动。当处于手动控制状态时,人们可以自主选择打开关闭窗帘。当系统是自动控制状态的时候,利用光照传感器与光敏电阻来进行当前环境的检测,系统控制功能则由单片机完成。单片机将检测到的光强数据经过分析处理传递给执行模块,从而控制电动机正反转。该窗帘系统能够根据所处环境的光照强度与时间来实现窗帘的自动打开和关闭,当光照强度比最低预设值小的时候,窗帘自动打开,相反,光照强度超出最高预设值时,窗帘自动关闭。本次所设计智能窗帘系统不仅能够根据光照变化实现窗帘的自动打开与关闭控制,而且可以通过设定的时间进行窗帘的开关,操作简洁易懂。这款用单片机控制的窗帘控制彻底解放
3、人们亲自开窗帘的麻烦。整套系统在运行中表现极好,其智能、便捷的特点也备受消费者的欢迎。关键词:STC89C52单片机;光强检测;ULN2003驱动芯片;显示模块AbstractInordertosolvetheproblemofmanuallyadjustingthecurtaintoadjustthelightandavoidthelightinthehomeenvironment,andtomeettheneedsofpeopietointelligentlyadjustthecurtain,anintelligentcurtainsystemcontrolledbysinglechipm
4、icrocomputerisdesigned.Thissystemincludestwocontrolmodes:manualandautomatic.Whenitisundermanualcontrol,peoplecanchoosetoopenthecurtains.Whenthesystemisinthestateofautomaticcontrol,peoplecanopenandclosethecurtainsattheirowndiscretion.andthesystemcontrolfunctioniscompletedbysinglechipmicrocomputer.The
5、single-chipmicrocomputertransmitsthedetectedlightintensitydatatotheexecutivemodulethroughanalysisandprocessing,soastocontroltheforwardandreverserotationofthemotor.Thecurtainsystemcanautomaticallyopenandclosethecurtainaccordingtothelightintensityandtimeoftheenvironment.Whenthelightintensityissmallert
6、hantheminimumpresetvalue,thecurtainwillautomaticallyopen.Onthecontrary,whenthelightintensityexceedsthemaximumpresetvalue,thecurtainwillautomaticallyclose.TheintelligentcurtainsystemdesignedinthispapercannotonlyrealizetheautomaticopeningandclosingcontrolofcurtainaccordingtothechangeofIight,butalsocan
7、switchthecurtainthroughthesettime,theoperationissimpleandeasytounderstand.Thecurtaincontrolcontrolledbysingle-chipmicrocomputercompletelyliberatesthetroubleofpeopleopeningthecurtainthemselves.ThewholesystemPerformswellinoperation,anditsintelligentandconvenientfeaturesarealsopopularwithconsumers.Keyw
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 智能 窗帘 控制系统 设计
