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

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

学号

密级 ××大学本科毕业论文

万能学习型红外遥控器设计

院(系)名称:××××

专业名称:××××

学生姓名:××××

指导教师:××××

二○○九年五月

BACHELOR'S DEGREE THESIS OF ×××× UNIVERSITY

Design of Universal IR Learning

Remote Controller

College :××××

Subject :××××

Name :××××

Directed by :××××

May 2009

摘 要

随着家用电器种类的增加和无线遥控产品的普及,红外遥控器的使用频率越来越高,针对国内红外遥控学习技术成熟,但产品化程度低的特点,本文自主设计一种具有红外学习和触屏显示功能的红外遥控器,借此促进红外遥控学习技术在国内市场的产品化推广。

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

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

关键词:红外学习;红外解码;单片机控制;声卡采样;触屏校验

ABSTRACT

With 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

相关文档
最新文档