基于51单片机的自学习型遥控器设计与实现

  • 格式:doc
  • 大小:332.50 KB
  • 文档页数:43

下载文档原格式

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

基于51单片机的自学习型遥控器设计与实现

摘要

红外线遥控是目前最广泛使用的一种遥控和通信遥控方式,并且其具有体积小、结构简单、功能强、功耗低、成本低等优点,因此大规模应用于空调机、彩电、录像机、CD设备,并且在工业控制中也广泛使用。在人们生活中对家电的需要日益增加的时候,促使使用红外遥控器的机会也越来越多。但是因为红外遥控器不同产品编码格式的不同,不能用同一个遥控器控制,给人们生活带来诸多不便,在这我就是设计了一款自学习型的遥控器。

目前在国内大多数学习型遥控器为了达到学习目的都是采用拷贝遥控器红外波形,其实现起来方便,方法也较简单,。缺点是采用专用遥控集成的芯片,造成成本高,设计复杂的缺陷,为了使其集成度高遥控器的红外信号采用的是红外线遥控发射芯片,以致价格昂贵。

本毕业设计是以AT89C51单片机为核心的学习型遥控器,其原理是红外一体化接收头输出信号,通过测量并原样地记录其输出码形,其次将其码型保存在EEPROM中,最后利用单片机的定时器中断产生38 千赫兹的载波信号,使软件代替硬件,节约了许多资源。目前在市场上遥控器大部分的编码方式都是NEC,所以该学习型红外遥控器能成功地学习各种红外遥控设备的NEC编码方式,并通过38千赫兹载波发送学习到的码型信号。实现了对该类编码方式的红外遥控的学习,从而可以学习各种遥控器NEC的编码方式。

其优点硬件电路简单,软件功能完善,性价比较高等特点,具有一定的使用和参考价值。

关键词:AT89C51;学习型遥控器;红外遥控器;编码方式

Abstract

Infrared remote control is currently the most widely used a remote control and communication control method, and it has small volume, simple structure, strong function, low power consumption, low cost advantages, so large-scale application in air conditioning equipment, TV, VCR, CD, and are widely used in industrial control. An increasing need for home appliance of in people's life, prompted the use of infrared remote control is also more and more opportunity. But because the infrared remote control encoding format of the different products is different, can't use the same remote control, give people's life bring inconvenience, in this I was designed a learning remote control.

At present at home most of the learning remote control copy in order to achieve learning goals are using remote control infrared wave, its implementation user-friendly, the method is simple,. Defect is using special remote control integrated chip, resulting in high cost and complex design defects, in order to make its high level of integration of the remote control infrared signal which is infrared remote control transmitting chip, so that the price expensive.

This graduation design is based on AT89C51 single-chip microcomputer as the core of the learning remote control, its principle is the integration of infrared sensor output signal, through the measurement and the same form to record the output code, followed by the block type stored in the EEPROM ,the use of single-chip timer interrupt to produce 38000 hz carrier signal, the software instead of hardware, save a lot of resources. Currently on the market most of the encoding NEC remote control, so the learning infrared remote controller can successfully study all kinds of infrared remote control equipment of NEC encoding, and through the 38000 hz carrier send the study to the type of signal. Implements the learning of this kind of coding method of infrared remote control, which can learn all kinds of remote control NEC encoding. Its advantage hardware circuit is simple, software function is perfect, high cost performance characteristics, has certain use and reference value.

Key words: AT89C51, a learning remote control, infrared remote control, the encoding style