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

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

学号密级××大学本科毕业论文万能学习型红外遥控器设计院(系)名称:××××专业名称:××××学生姓名:××××指导教师:××××二○○九年五月BACHELOR'SDEGREETHESISOF××××UNIVERSITYDesignofUniversalIRLearningRemoteControllerCollege:××××Subject:××××Name:××××Directedby:××××May2009摘要随着家用电器种类的增加和无线遥控产品的普及,红外遥控器的使用频率越来越高,针对国内红外遥控学习技术成熟,但产品化程度低的特点,本文自主设计一种具有红外学习和触屏显示功能的红外遥控器,借此促进红外遥控学习技术在国内市场的产品化推广。在红外解码方面,传统方法采用单片机中断或者查询方式采集红外信号,环境不理想情况下可能需要多次解码,本文借助电脑辅助记录全波形,通过相关软件优化波形,解码一次即可成功;在红外发射方面,本文通过实验发现红外发射距离受载波占空比和红外二极管贯通电流影响,通过调试将38KHz载波红外信号发射距离提高到10米;在红外接收方面,进行了红外干扰测试;在触屏校验方面,通过实验获取触屏数据,利用matlab参数估计lsqcurvefit函数求得校正参数,解决了触屏漂移问题;在彩屏显示方面,将遥控器所有按键简化为方向键和确认键,虚拟数码管显示按键位置,避免了单片机片上资源紧张的问题,此外,彩屏仅支持16位R5G6B5格式数据,一张176*220图片占用72.6KB空间,造成极大浪费,本文借此讨论了适合本系统的图片压缩技术,给出了一种具体的图片压缩格式。按照由简单到复杂的顺序,本文先后制作了遥控接收解码装置、遥控编码发射装置、万能学习型红外遥控器,以SAA3010遥控器作为典型代表(遵循飞利浦RC-5编码协议),成功的实现了红外编解码、发射接收、按键触屏双输入、彩屏显示等基本功能,昀终制作的万能学习型遥控器在功能上可以完全代替SAA3010遥控器。关键词:红外学习;红外解码;单片机控制;声卡采样;触屏校验ABSTRACTWiththekindofhouseholdappliancesincreasedandtheuseofremotecontrollerbeingmoreandmoreuniversal.ManypeoplestarttochooseIR(Infra-red)remote-operatedcontroller.ButthemarketofIR(Infrared)learningremotecontrollerisnotaswellasthetechnologyinourcountry.InpaperadesignofIRlearningremote-operatedcontrollerwithtouchscreenistobediscussedtoimprovetheproductionofIRlearningtechnology.ThetraditionalmethodforIRcodingiscollectingtheIRsignalthroughInterruptmodeorQuerymodebysingle-chipmicrocomputer.Insomeconditionthismethodneedsrepeatformanytimes.Inpaper,PC(PersonalComputer)isusedtorecordthewholewaveandoptimizethewavethroughsoftware,whichmakesiteasytofinishthedecodingforonetime;Byexperiment,theinfraredemissiondistanceisturnedtobeaffectedbythedutyratioofcarrierwaveandthecurrentofIRemittingdiode.Afterdebugging,theinfraredemissiondistanceisincreasedto10meters.Thedeviceisalsotestedbyinterferingsignal.Withthedataofexperimentandthefunctionlsqcurvefitofmatlab,thewanderingoftouchscreenissettledbythecorrectedparameters.Incolordisplay,everykeyissimplifiedbycombinationofArrowkeys、Enterkeyandvirtualdigitaltubes,whichsuccessfullysolvetheproblemofwastingtheresourcesofsingle-chipmicrocomputer.Moreover,insystemonlyBMP(R5G6B5)issupported,andtheimagesizeis176*220(72.6KB),whichistoolargetoAT89S52.Soinpaper,anewimagecompressedformatisdiscussedandthedefiniteformatisgiven.Fromsimpletocomplex,remotecontrolreceiverdecodingdevice、remotecontrollaunchercodingdeviceanduniversalIRlearningremotecontrolleraremade.then,asatypicalexampleasSAA3010remotecontroller,thecontrollerisvestedfunctionsasfollows:IRcodinganddecoding,launchandreceive,keyboardandtouchscreen,andcolordisplay.ThefinalversionofdesigncanreplaceSAA3010remotecontrollerinfunction.Keywords:IRlearning;IRdecoding;MCUcontrol;soundcardsampling;TPcalibrationI目录第1章绪论...............................................................................................11.1选题的目的意义..............................................................................................11.2红外学习研究现状..........................................................................................21.3本文研究内容..................................................................................................3第2章红外遥控学习方案设计...............................................................52.1设计目标及要求..............................................................................................52.2红外遥控方案设计..........................................................................................6第3章红外遥控解码学习.....................................................................103.1基本原理........................................................................................................103.1.1红外接收..............................................................................................103.1.2ISP技术...............................................................................................103.2红外接收解码装置设计.................................................................................113.2.1RS232串口红外接收板.......................................................................113.2.2带液晶显示的红外接收板..................................................................123.2.3制作遥控矩阵表..................................................................................133.3装置性能检测................................................................................................153.3.1红外干扰测试......................................................................................153.3.2红外解码测试......................................................................................17第4章红外遥控编码还原.....................................................................194.1基本原理........................................................................................................194.1.1红外发射..............................................................................................194.1.2红外编码..............................................................................................194.1.3声卡采样..............................................................................................224.2红外编码发射装置设计.......................

1 / 46
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功