华科学院本科毕业设计(论文)基于单片机的自动窗帘系统设计摘要目前,家庭居住环境的采光及避光问题主要采用的是手动开闭窗帘,手动开闭不仅费力而且很多方面不够人性化,会对用户造成一定的困扰,本文设计的自动窗帘控制系统可以解决这些问题。本文主要阐述了自动窗帘控制的设计过程。以AT89C51单片机为控制核心,以光敏电阻和雨滴传感器为传感器件,以步进电机为执行器件。在设计的同时对单片机的理论基础和外围扩展知识进行了比较全面准备。硬件采用分块的模式,对整个系统的电路设计进行分析,分别给出了系统整体框图、显示电路、检测电路、系统总控制模块、等相关电路;随后说明系统软件的编写过程,同样采用的是分块的模式,且每一个模块都给出了相应的流程图。本设计利用单片机实现了半自动控制、自动控制、定时控制的相互转换,智能的控制窗帘的动作。通过调试,时钟控制、手动开关窗帘、自动开关窗帘等控制方面的设计基本达到了预期效果。具有较强的实用价值。关键词:单片机,自动窗帘,步进电机,自动控制。I路媛:基于单片机的自动窗帘系统设计SystemdesignbasedonsinglechipmicrocomputerautomaticII华科学院本科毕业设计(论文)curtainAbstractNow,accordingtotherequirementsoflivingenvironments.Thispaperdescribestheprocessofintelligentcurtaincontroller.ThisdesignusesAT89C51microcontrollerasthecontrol,introducemicrocontroller-basedopticalcurtaincurtainsystem,themainstructuralprincipleofthehardwareandsoftwareprogrammingtoexplain.Inthedesignformonolithicintegratedcircuits,andperipheraltoexpandthebasicthetheoriesofknowledgewasfairlycomprehensivepreparation.Blockthemodelofhardwareused,thecircuitdesignoftheentiresystemtoanalyzetheoverallblockdiagramofthesystemaregiven,displaycircuit,photoelectricswitchcircuit,systemcontrolmodule,powerconversioncircuits,protectioncircuitsandotherrelatedcircuit;thendescribesthesoftwarethepreparationprocess,butalsobythesub-blockpattern,witheachmoduletodrawacorrespondingflowchart.Inthispaper,usetheAT89C51microcontroller,accordingtotheirdifferentmodes,toachievesemi-automaticcontrol,automaticcontrol,timingcontroloftheconversionandintelligentmotioncontrolcurtains.Debuggingbysimulation,clockcontrol,manualswitchcurtains,thecurtainsautomaticallyswitchthebasicdesignofsuchcontroltoachievethedesiredeffect,withastrongpracticalvalue.Keywords:SCM、intelligentcurtain、steppingmotor、automaticcontrol.III路媛:基于单片机的自动窗帘系统设计IV华科学院本科毕业设计(论文)目录摘要...........................................................................IAbstract.....................................................................III第1章绪论................................................................-1-1.1研究目的和意义.....................................................-1-1.2国内外发展状况.....................................................-2-1.3课题的目的任务和要求...............................................-2-第2章系统方案论证........................................................-5-2.1方案选取...........................................................-5-2.2总体设计方案.......................................................-8-2.2.1系统基本功能..................................................-8-2.2.3系统总体结构设计..............................................-9-第3章系统硬件分析设计...................................................-11-3.1系统硬件总设计....................................................-11-3.2各单元电路设计....................................................-12-3.2.1控制电路设计........