您好,欢迎访问三七文档
摘要本文设计了一种基于AT89C52单片机的红外窗帘控制器,系统分为两个部分,一是红外遥控器部分,分别设置了启动/停止、打开、关闭、速度减小、速度增加和自动6个按键,当不同的按键被按下时红外发射二极管便发出不同的按键编码。二是接收控制器部分,其功能是用单片机通过一体化红外接收头接收遥控器发出的编码并进行解调,然后根据编码的功能来控制步进电机的运行状态。系统包括手动和自动两种模式,在手动模式下可通过按键来控制窗帘的打开,关闭或停止。在自动模式下可根据室内光线的强度自动控制窗帘的打开或关闭。从而实现手动和自动控制窗帘的目的。关键词:单片机;红外;遥控;窗帘AbstractThisdesignisaninfraredcurtaincontrollerbasedontheSTC89C52singlechipmicrocomputer.Thesystemcanbedividedintotwoparts.ThefirstpartistheIRremotecontrolwhichsetsthe6buttonsofstart/stop,open,close,slowdown,speedupandautomatic.Theinfraredemittingdiodewillsenddifferentcodewhendifferentbuttonispressed.Thesecondpartisthereceivingcontrollerwhichwouldmakeuseofthesinglechipmicrocomputertoreceivethecodesentbytheremotecontrolthroughtheintegratedinfraredreceiverandmakedemodulation.Thenitwouldcontroltherunningsituationofthesteppingmotoraccordingtothefunctionsofthecode.Thesystemincludestwokindsofmodelsmanualandautomatic.Underthemanualmodel,youcanmakethecurtainbeopened,closedorstoppedbypressingthebuttons.Undertheautomaticmodel,openingorclosingthecurtaincanbecontrolledautomaticallyaccordingtotheintensityoftheindoorlight.Inthisway,thecurtaincanbecontrolledmanuallyandautomatically.Keywords:Singlechipmicrocomputer;infrared;remotecontrol;curtain目录第1章绪论...............................................................................................................................11.1遥控窗帘国内外发展现状..........................................................................................11.2遥控窗帘的优势与特点..............................................................................................2第2章单片机的介绍...............................................................................................................42.1单片机简介.................................................................................................................42.2单片机的特点.............................................................................................................42.3单片机的应用.............................................................................................................52.4单片机AT89C52的结构原理.....................................................................................5第3章系统总体设计.............................................................................................................103.1系统硬件电路设计...................................................................................................103.1.1红外发射模块.................................................................................................113.1.2红外接收模块.................................................................................................123.1.3显示模块.........................................................................................................133.1.4光控模块.........................................................................................................153.1.5步进电机驱动模块.........................................................................................163.1.6窗帘框架构造设计.........................................................................................183.2系统软件设计...........................................................................................................193.2.1红外遥控器的编码.........................................................................................193.2.2二进制信号的调制.........................................................................................203.2.3二进制信号的解码.........................................................................................213.2.4红外遥控器模块程序设计.............................................................................223.2.5红外接收模块程序设计.................................................................................243.2.6LCD1602模块程序设计..................................................................................27第4章系统调试.....................................................................................................................29第5章结束语.........................................................................................................................31参考文献...................................................................................................................................32附录.........................................................................................................................................344Ⅰ:红外遥控器系统电路原理图.................................................................................344Ⅱ:红外接收控制器系统电路原理图.........................................................................355Ⅲ:源程序.....................................................................................................................366致谢.........................................................................................................................................433遥控窗帘电路的设计作者:王宪第1页共43页第1章绪论1.1遥控窗帘国内外发展现状近几年来,随着科学技术的发展和人民生活水平的日益提高,城市化建设的步伐也在不断的加快,一栋栋居民楼、写字楼、酒店拔地而起。智能家居已经覆盖家庭自动化,家庭网络,信息家电等几大块,随着高新技术及电子器件的发展,光控,温控,及遥控技术应运而生,给人们的生活带来了很大的方便,同时也为人们的生活环境以及智能家居的实现提供了依据。单片机控制的红外窗帘控制器,既能解决每天用手打开或关闭窗帘的不便,又显示
本文标题:遥控窗帘电路的设计
链接地址:https://www.777doc.com/doc-5983653 .html