- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
摘要
本文设计了一种基于AT89C52单片机的红外窗帘控制器,系统分为两个部分,一是红外遥控器部分,分别设置了启动/停止、打开、关闭、速度减小、速度增加和自动6个按键,当不同的按键被按下时红外发射二极管便发出不同的按键编码。二是接收控制器部分,其功能是用单片机通过一体化红外接收头接收遥控器发出的编码并进行解调,然后根据编码的功能来控制步进电机的运行状态。系统包括手动和自动两种模式,在手动模式下可通过按键来控制窗帘的打开,关闭或停止。在自动模式下可根据室内光线的强度自动控制窗帘的打开或关闭。从而实现手动和自动控制窗帘的目的。
单片机红外遥控窗帘
Abstract
This design is an infrared curtain controller based on the STC89C52 single chip micro computer. The system can be divided into two parts. The first part is the IR remote control which sets the 6 buttons of start/stop, open, close, slow down, speed up and automatic. The infrared emitting diode will send different code when different button is pressed. The second part is the receiving controller which would make use of the single chip micro computer to receive the code sent by the remote control through the integrated infrared receiver and make demodulation. Then it would control the running situation of the stepping motor according to the functions of the code. The system includes two kinds of models manual and automatic. Under the manual model, you can make the curtain be opened, closed or stopped by pressing the buttons. Under the automatic model,opening or closing the curtain can be controlled automatically according to the intensity of the indoor light. In this way, the curtain can be controlled manually and automatically.
Key words: Single chip micro computer; infrared;remote control;curtain
目录
第1章 绪论 1
1.1遥控窗帘国内外发展现状 1
1.2遥控窗帘的优势与特点 2
第2章 单片机的介绍 4
2.1 单片机简介 4
2.2 单片机的特点 4
2.3 单片机的应用 5
2.4 单片机AT89C52的结构原理 5
第3章 系统总体设计 10
3.1 系统硬件电路设计 10
3.1.1 红外发射模块 11
3.1.2 红外接收模块 12
3.1.3 显示模块 13
3.1.4 光控模块 15
3.1.5 步进电机驱动模块 16
3.1.6 窗帘框架构造设计 18
3.2 系统软件设计 19
3.2.1 红外遥控器的编码 19
3.2.2 二进制信号的调制 20
3.2.3 二进制信号的解码 21
3.2.4 红外遥控器模块程序设计 22
3.2.5 红外接收模块程序设计 24
3.2.6 LCD1602模块程序设计 27
第4章 系统调试 29
第5章 结束语 31
参考文献 32
附录 34
Ⅰ:红外遥控器系统电路原理图 34
Ⅱ:红外接收控制器系统电路原理图 35
Ⅲ:源程序 36
致谢 43
第1章 绪论
1.1遥控窗帘国内外发展现状
近几年来,随着科学技术的发展和人民生活水平的日益提高,城市化建设的步伐也在不断的加快,一栋栋居民楼、写字楼、酒店拔地而起。智能家居已经覆
原创力文档


文档评论(0)