《基于单片机的红外遥控自动窗帘学士学位论文.doc》由会员分享,可在线阅读,更多相关《基于单片机的红外遥控自动窗帘学士学位论文.doc(46页珍藏版)》请在金锄头文库上搜索。
1、31目录中文摘要2引 言 4第1章 概述41.1 选题意义41.2 窗帘红外遥控设计目的41.3 窗帘红外遥控完成的功能51.4 智能家居的现状与发展5第2章 设计基础62.1 单片机的简介、原理及引脚功能62.2 单片机的现状102.3 红外控制的工作原理和应用13第3章 总体方案设计第4章 硬件设计 4.1 红外遥控电路原理 4.2 红外遥控解码原理4.3 红外编码及接收电路 4.5 单片机时钟电路和复位电路 4.6 电机的驱动及AT7267BP的使用第5章 软件设计 5.1 主程序设计 5.2 数据处理子程序第7章 安装和调试第8章 总结第9章 参考文献附录中 文 摘 要随着电子技术产业
2、结构调整,生产工艺的飞速发展,人们生活水平的不断提高,家用电器逐渐普及,市场对于红外遥控控制系统的需求也越来越大。高精度、多功能、低功耗,是现代科技发展的趋势。在这种趋势下,窗帘的数字化、智能化已经成为现代生产研究的主导设计方向。万用遥控器存储有很多家电遥控器的编码,最大缺点是灵活性差,即使是采用同一遥控芯片的遥控器可以选取不同的识别码(客户码)和命令码(数据码),从而构成几乎无数种具体的用法。新的遥控编码组合随新的家电机型层出不穷,导致采用专用集成电路(ASIC)或掩模型单片机(MaskROM MPU)制作的万用遥控芯片总会对一些设备,而且是越来越多的设备无法起作用。学习型遥控器是将原家电遥
3、控器对准学习型遥控器的接收器逐一按键,从而准确地记录该遥控器的波形,应用时再将这一波形再现、发射出去。这样的优点是通用性强,缺点是遥控器内存储器的容量极基有限,一般只能记录数十人键的波形,更换设备就更重新学习。 家电控制器不象万用遥控器那样具体到芯片的每一种应用以及每个码的功能,也不需要象学习型遥控器那样机械地记录每个按键的波形,而是综合了遥控编码方式的诸多因素形成特征字,将需要改变的部分数据编码分离出来由PC机软件去处理,极大地节省了数据存储量而又完全不失通用性。这样一来就具备了二者的优点而克服了相应的缺点。单片机在电子产品中的应用已经越来越广泛,在很多的电子产品中也用到了红外控制。随着窗帘
4、红外控制器应用范围的日益广泛和多样,各种适用于不同场合的窗帘控制器应运而生。红外线窗帘遥控控制器是最新研制的一种高科技产品,它不但取代原有的无线遥控窗帘控制器,而且工作可靠,4种不同的工作方式任意选择,数字自动测试环境亮度,整点报时,电机工作鸣响提示,数码时钟等功能,满足不同用户的需要。AbstractAs electronic technology industrial restructuring, the rapid development of production technology, continuous improvement of living standard, househ
5、old appliances became more common, the market for infrared remote control system demand is growing. High-precision, multi-function, low power consumption, is the modern trend of technological development. In this trend, the number of curtains, intelligence has become a modern production of the domin
6、ant design direction. 10 000 with the remote storage has a lot of home appliances remote control codes, the biggest disadvantage is that flexibility is poor, even using the same remote control chip remote control can select a different identification number (customer code) and the command code (data
7、 code), which is almost countless kind of specific use. Combined with the new remote control codes emerging new appliance models, leading to use of application specific integrated circuit (ASIC) or a cover model for SCM (MaskROM MPU) chips produced by the Federation-purpose remote control for some e
8、quipment, but more and more devices can not work. Learning is the original home appliances remote control learning remote at the receiver one by one remote control button, which accurately record the waveform of the remote control, then the waveform reconstruction applications, launch out. This has
9、the advantage of versatility, drawback is the remote control base within the memory capacity of the very limited, generally only record the waveform dozens of keys, replacement of equipment is even more re-learning. Appliance controller as a universal remote control is not specific to the chip as an
10、 application, and each code for each function, do not need a learning remote so as to mechanically record the waveform of each button, but integrated remote control encoding characteristics of the many factors that form the word, will need to change some of the data encoded by a separate PC, softwar
11、e to deal with significant savings in data storage and entirely without losing generality. This way you have already had to overcome the advantages of both the corresponding shortcomings. MCU in the application of electronic products have been widely used in many electronic products also use the inf
12、rared control. As the curtain infrared controller applications become increasingly wide and diverse range, all for different occasions curtain controller came into being. Infrared remote control curtain is a newly developed high-tech products, which not only replace the original controller, wireless
13、 remote control curtains, and be more reliable, 4 arbitrary choice of different ways of working, digital automatic test environment brightness, the whole point of the newspaper Electrical work ringing tips, digital clock and other functions to meet the needs of different usersKey words: infrared rem
14、ote control, timing, events, programming引 言智能家居,或称智能住宅,以住宅为平台,兼备建筑、网络通信、信息家电、设备自动化,集系统、结构、服务、管理为一体的高效、舒适、安全、便利、环保的居住环境,尽显便捷将家中的各种设备(如音视频设备、照明系统、窗帘控制、空调控制、安防系统、数字影院系统、网络家电等)通过家庭网络连接到一起。与普通家居相比,智能家居不仅具有传统的居住功能,提供舒适安全、高品位且宜人的家庭生活空间;还由原来的被动静止结构转变为具有能动智慧的工具,提供全方位的信息交互功能,帮助家庭与外部保持信息交流畅通,优化人们的生活方式,帮助人们有效安排时间,增强家居生活的安全性,甚至为各种能源费用节约资金。第1章 概述1.1 选题意义随着社会信息化的加快,人