多功能自动窗帘控制系统设计摘要从古至今的家庭生活环境的光照问题的处理方案通常是手动开闭窗帘来解决的,手动开闭窗帘不但浪费了人的体力并且在许多方面都不够人性化,会对窗帘的使用用户形成使用体验的不理想。随着现代科学技术的发展以及电子和集成电路的逐渐成熟,出现了智能化的自动窗帘。该控制系统是以型号为STC89C52RC的单片机作为主要的控制中心,以光敏电阻等敏感元器件作为传感器件来感受外界的变化,以步进电机作为主要的驱动器件控制窗帘的开闭。硬件方面使用分模块的方式,对整个控制系统进行分析和设计,分别做出了系统整体框图、外部电源模块、显示电路模块、传感器检测电路模块、控制系统模块等相关的电路模块;之后写出系统的软件编程方面,也是采用的分块的设计形式,并且关于每个模块都有与之对应的流程图用来方便浏览程序。该系统设计主要实现了手动控制、自动控制、定时控制和红外遥控控制的功能,从而控制窗帘的开启和关闭。关键词:单片机/光敏电阻/步进电机/自动控制MULTI-FUNCTIONAUTOMATICCURTAINCONTROLSYSTEMDESIGNABSTRACTInthemodernsocietyfamilylivingenvironmentlightingproblemsolutionisusuallyaddressedbymanualopenandclosethecurtain,manualopenandclosethecurtainofthephysicalstrengthnotonlywastetheinhumaneandinmanyways,tousetheuserexperienceproblemsandinconveniencecaused.Withthedevelopmentofmodernscienceandtechnologyandthegradualmaturityofelectronicandintegratedcircuits,intelligentautomaticcurtainshaveappeared.ThecontrolsystembasedonmodelSTC89C52RCMCUasthemaincontrolcore,sensitivecomponentssuchasphotosensitiveresistanceasasensortofeelthechangeoftheoutsideworld,drivenbystepmotorasthemaindevicetocontroltheopeningandclosingofthecurtain.Hardwareblockmodelisusedtoanalyzeanddesignthewholecontrolsystem,respectivelymadeanoverallsystemblockdiagram,externalpowersupplymodule,displaycircuitmodule,detectionmodule,controlsystemmoduleandrelatedcircuitmodule;Thenwritethesoftwareprogrammingaspectofthesystem,whichisalsothedesignmethodofblockdesign,andtherearecorrespondingflowchartsforeachmoduletofacilitatethereadingprogram.Thesystemdesignmainlyrealizesthefunctionofmanualcontrol,automaticcontrol,timingcontrolandinfraredremotecontrol,soastocontroltheopeningandclosingofthecurtain.KEYWORDS:singlechipmicrocomputer,photoresistance,steppermotor,automaticcontrol目录中文摘要............................................................I英文摘要............................................................II1绪论................................................................1课题目的和意义............................................1国内外发展现状..........................................1课题的目的和要求......................................22系统方案论证................................................3方案选取........................................................3单片机的选择............................................3自动控制方案的选择................................3总体方案设计................................................43系统硬件电路设计........................................5系统硬件电路总设计....................................5各单元电路设计............................................5控制电路设计............................................5检测电路设计................................................8驱动模块电路设计..................................10键盘/显示接口电路................................12红外遥控电路..........................................154系统软件设计..............................................16系统软件总设计.....