文档介绍:学号
密级
××大学本科毕业论文
万能学习型红外遥控器设计
院(系)名称:××××
专业名称:××××
学生姓名:××××
指导教师:××××
二○○九年五月
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 puter. In some condition this method
needs repeat for many times. In paper, PC (puter) 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