当前位置:文档之家› 万能学习型红外遥控器制作(毕业设计)

万能学习型红外遥控器制作(毕业设计)

学号密级 ××大学本科毕业论文万能学习型红外遥控器设计院(系)名称:××××专业名称:××××学生姓名:××××指导教师:××××二○○九年五月BACHELOR'S DEGREE THESIS OF ×××× UNIVERSITYDesign of Universal IR LearningRemote ControllerCollege :××××Subject :××××Name :××××Directed by :××××May 2009摘 要随着家用电器种类的增加和无线遥控产品的普及,红外遥控器的使用频率越来越高,针对国内红外遥控学习技术成熟,但产品化程度低的特点,本文自主设计一种具有红外学习和触屏显示功能的红外遥控器,借此促进红外遥控学习技术在国内市场的产品化推广。

在红外解码方面,传统方法采用单片机中断或者查询方式采集红外信号,环境不理想情况下可能需要多次解码,本文借助电脑辅助记录全波形,通过相关软件优化波形,解码一次即可成功;在红外发射方面,本文通过实验发现红外发射距离受载波占空比和红外二极管贯通电流影响,通过调试将38KHz载波红外信号发射距离提高到10米;在红外接收方面,进行了红外干扰测试;在触屏校验方面,通过实验获取触屏数据,利用matlab参数估计lsqcurvefit函数求得校正参数,解决了触屏漂移问题;在彩屏显示方面,将遥控器所有按键简化为方向键和确认键,虚拟数码管显示按键位置,避免了单片机片上资源紧张的问题,此外,彩屏仅支持16位R5G6B5格式数据,一张176*220图片占用72. 6KB空间,造成极大浪费,本文借此讨论了适合本系统的图片压缩技术,给出了一种具体的图片压缩格式。

按照由简单到复杂的顺序,本文先后制作了遥控接收解码装置、遥控编码发射装置、万能学习型红外遥控器,以SAA3010遥控器作为典型代表(遵循飞利浦RC-5编码协议),成功的实现了红外编解码、发射接收、按键触屏双输入、彩屏显示等基本功能,最终制作的万能学习型遥控器在功能上可以完全代替SAA3010遥控器。

关键词:红外学习;红外解码;单片机控制;声卡采样;触屏校验ABSTRACTWith the kind of household appliances increased and the use of remote controller being more and more universal. Many people start to choose IR (Infra-red) remote-operated controller. But the market of IR (Infrared) learning remote controller is not as well as the technology in our country. In paper a design of IR learning remote-operated controller with touch screen is to be discussed to improve the production of IR learning technology.The traditional method for IR coding is collecting the IR signal through Interrupt mode or Query mode by single-chip microcomputer. In some condition this method needs repeat for many times. In paper, PC (Personal Computer) is used to record the whole wave and optimize the wave through software, which makes it easy to finish the decoding for one time; By experiment, the infrared emission distance is turned to be affected by the duty ratio of carrier wave and the current of IR emitting diode. After debugging, the infrared emission distance is increased to 10 meters. The device is also tested by interfering signal. With the data of experiment and the function "lsqcurvefit" of matlab, the wandering of touch screen is settled by the corrected parameters. In color display, every key is simplified by combination of Arrow keys、Enter key and virtual digital tubes, which successfully solve the problem of wasting the resources of single-chip microcomputer. Moreover, in system only BMP (R5G6B5) is supported, and the image size is 176*220(72. 6KB), which is too large to AT89S52. So in paper, a new image compressed format is discussed and the definite format is given.From simple to complex, remote control receiver decoding device、remote control launcher coding device and universal IR learning remote controller are made . then, as a typical example as SAA3010 remote controller, the controller is vested functions as follows: IR coding and decoding, launch and receive, keyboard and touch screen, and color display. The final version of design can replace SAA3010 remote controller in function.Key words: IR learning;IR decoding;MCU control;sound card sampling;TP calibration目 录第1章绪论 (1)1.1 选题的目的意义 (1)1.2 红外学习研究现状 (2)1.3 本文研究内容 (3)第2章红外遥控学习方案设计 (5)2.1 设计目标及要求 (5)2.2 红外遥控方案设计 (6)第3章红外遥控解码学习 (10)3.1 基本原理 (10)3.1.1 红外接收 (10)3.1.2 ISP技术 (10)3.2 红外接收解码装置设计 (11)3.2.1 RS232串口红外接收板 (11)3.2.2 带液晶显示的红外接收板 (12)3.2.3 制作遥控矩阵表 (13)3.3 装置性能检测 (15)3.3.1 红外干扰测试 (15)3.3.2 红外解码测试 (17)第4章红外遥控编码还原 (19)4.1 基本原理 (19)4.1.1 红外发射 (19)4.1.2 红外编码 (19)4.1.3 声卡采样 (22)4.2 红外编码发射装置设计 (23)4.3 装置性能检测 (25)4.3.1 红外编码还原测试 (25)4.3.2 红外发射距离测试 (27)第5章万能学习型红外遥控器实现 (28)5.1 基本原理 (28)5.1.1 触屏校准 (28)5.1.2 彩屏显示 (30)5.2 万能学习型遥控器实现 (31)5.2.1 16位RGB图片压缩 (31)5.2.2 遥控仿真面板制作 (33)5.2.3 红外编码还原实现: (34)5.3 系统性能检测 (36)第六章总结展望 (38)6.1 总结 (38)6.2 展望 (39)参考文献 (40)第1章绪论1.1 选题的目的意义上世纪八十年代初,日本率先在电视产品中使用了红外遥控技术,使用集成发射芯片来实现遥控码的发射,如东芝TC9012,飞利浦SAA3010等,它的主要特点是:遥控器内预置固定编码,一只遥控器只能控制单一型号的电器[1]。

如图1.1所示:图1.1 遥控单一种类电器的遥控器随着电子技术的发展,家用电器越来越普遍,人们希望以一只遥控器遥控所有家用电器,多用遥控器产生了。

它的主要特点是: 遥控器内预置多套编码,可供用户选择,如图1.2所示:图1.2 可遥控多种家用电器的遥控器如今,随着嵌入式的广泛应用,部分厂商推出了具备红外学习的遥控器,它的主要特点是:遥控器内置一个动态编码库,具备红外学习功能,可由用户自主录入编码,如图1.3所示:图1.3 具备学习功能的遥控器通过对具备红外学习功能的遥控器进行市场调查,本文发现:国内红外遥控编码学习技术虽比较成熟,但产品化程度较低,市场推广不够,主要原因在于设计者对用户需求的调查不够全面,以致产品不够实用,性价比较低。

从用户操作方便实用的角度出发,本文自主设计具备红外学习、彩屏虚拟遥控界面的万能学习型红外遥控器,借此促进红外遥控学习技术在国内市场的产品化推广。

1.2 红外学习研究现状现有自主学习型红外遥控器,其核心MCU主要有以下几种:MCS-51系列、Microchip PIC16系列、Winbond W741系列、Holtek HT48系列以及ARM(Advanced RISC Machines)系列。

相关主题