摘 要
随着家用电器种类的增加和无线遥控产品的普及,红外遥控器的使用频率越来越高,针对国内红外遥控学习技术成熟,但产品化程度低的特点,本文自主设计一种具有红外学习和触屏显示功能的红外遥控器,借此促进红外遥控学习技术在国内市场的产品化推广。
在红外解码方面,传统方法采用单片机中断或者查询方式采集红外信号,环境不理想情况下可能需要多次解码,本文借助电脑辅助记录全波形,通过相关软件优化波形,解码一次即可成功;在红外发射方面,本文通过实验发现红外发射距离受载波占空比和红外二极管贯通电流影响,通过调试将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: control learning;remote 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 致谢 41