登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 通信工程 > 正文

基于单片机的红外万能遥控器的设计毕业论文

 2022-05-16 08:05  

论文总字数:21988字

摘 要

得益于科学技术的进步,电器产品已经在生活中无处不在。如电视,空调,电风扇,热水器这些产品,都需要遥控器。生活中常见的普通遥控器,采用了在遥控器内部预先存放固定编码的方法,导致一款遥控器只可以匹配单一型号的电器。家用电器品种繁多,问题随之而来,这么多遥控器,管理起来很麻烦。在这种情况下,人们希望生产出可以学习其他遥控器编码的遥控器来取代以往的普通遥控器。

本课题设计了一种基于单片机工作且适用于38KHZ载波的学习型遥控器。当有遥控信号输入的时侯,先利用红外一体化接收头对其进行接收,处理信号后输出给单片机。再利用单片机内部的定时器,记录这个信号的脉冲宽度,储存在EEPROM中。发射时,读取存储的红外编码,模拟38KHZ载波,将二者调制后,从单片机输出至由三极管驱动的红外发光二极管发射出去。以此来实现学习其他遥控编码的功能。

本基于单片机的红外学习型遥控器支持多种基于38KHZ载波的遥控编码格式,如NEC,KONKA KK-Y261,JVC,ITT等。之所以可以做到这点,有两方面原因:1.我所使用的红外一体化接收头只接收38KHZ载频的信号,其他载频信号过滤掉。2.我通过软件设计了单片机从检测到遥控码输入就开始记录输入信号脉宽,直到检测到没有信号输入单片机后停止记录,完成学习信号过程。本遥控器拥有一个切换键,可支持最多4套编码,13个功能按键,一套编码至多可以记忆13个按键,一共支持学习52个按键。

关键词:单片机 红外一体化接收头 三极管 驱动

Design of Universal Remote Controller Based on MCU

Abstract

With the development of science and technology, electronic products have been everywhere in the life. Television, air conditioning, electric fans, water heaters... These products all need remote controller. Common remote controller in the life presets fixed code in it self, these remote controllers can only control a single model of electrical appliances. With the num of home appliances growing, the problem follows. There are so many remote controllers, management is very troublesome. In this case, people put forward the assumption that there is a remote controller that can learn other remote control code signal to replace the normal remote controller.

This paper designs a learning remote controller based on MCU. It is suitable for remote code signal on 38KHZ carrier. When remote signal inputs in, the infrared integrated receiver receives it, then output to microcontroller. The microcontroller timer will record the pulse width of the output signal and store in the microcontroller. When launching, software will modulate the infrared coding signals with the 38KHZ carrier simulated by microcontroller timer. Then the transistor will drive infrared light emitting diode to send the modulated signal. This is the process of realization of the signal learning function.

The infrared learning remote controller based on microcontroller supports a variety of remote coding formats based on 38KHZ carrier, such as NEC, KK-Y261 JVC, KONKA, ITT, etc. We can do this for two reasons: 1.The infrared integration receiving head I use can only receives signal on 38kHz carrier. 2. By the software design, I set that the MCU records the pulse width of the input signal since it detects input of remote control code. When there is no signal inputs in, the microcontroller stops recording. Then quit the learning process. The remote controller has a switching key, which supports up to 4 sets of coding. 13 feature buttons, a set of encoding can support up to 13 keys. Totally supports 52 buttons.

Keywords: MCU; the infrared integration receiving head; transistor;drive

目 录

摘 要 I

Abstract II

第一章 绪 论 1

1.1 课题背景与研究意义 1

1.1.1 历史背景 1

1.1.2 研究现状 1

1.1.3 研究意义 2

1.2 课题研究内容 2

1.2.1 基本要求 2

1.2.2 具体要求 2

第二章 红外万能遥控器原理 4

2.1 红外线原理 4

2.1.1 红外线介绍 4

2.1.2 红外线在通信中优势 4

2.2 红外线遥控编码介绍 4

2.3 红外线调制/解调原理 5

2.4 发射原理 7

2.5 接收原理 7

第三章 红外万能遥控器设计方案 8

3.1 硬件部分设计方案 8

3.2 软件部分设计方案 9

第四章 红外万能遥控器的硬件设计详解 11

4.1 红外遥控器总电路设计 11

4.2 单片机最小系统详解 12

4.2.1 CPU时钟电路 13

4.2.2 复位电路 13

4.2.3 单片机内部EEPROM 13

4.3 键盘电路 14

4.3.1 矩阵键盘电路图 14

4.3.2 键连击现象的克服和处理 14

4.4 红外接收电路 15

4.5 指示灯电路 17

4.6 红外发射电路 18

4.6.1 红外发射电路原理图 18

4.6.2 红外发光二极管I-U特性 18

第五章 红外万能遥控器软件设计详解 20

5.1 主程序 20

5.2 EEPROM读/写/寻址程序 22

5.3 延时程序 22

5.4 红外发射初始化/发射程序 23

5.5 红外接收初始化/接收程序 24

5.6 键盘扫描/键值处理程序 25

第六章 红外遥控的调试与仿真 27

6.1 软件调试 27

6.2 硬件电路仿真 28

6.3 调试中遇到的问题和解决方法 29

6.3.1 单片机选择 29

6.3.2 定时器部分 29

6.3.3 键盘部分 29

结 语 30

参考文献 31

致 谢 32

第一章 绪 论

1.1 课题背景与研究意义

1.1.1 历史背景

上世纪50年代,科学家Robert Adler发明了遥控器。不过红外辐射是英国科学家Herschel发现的,自19世纪初Herschel发现它以来,关于红外元器件以及红外线的科研就一直在持续进行着,不过进度很迟缓。直到1940年左右才取得了大的进步,在这一段时间内,红外辐射的优势被发现了,然后迅速在军事领域得到了应用。德国在这一领域首先取得了突破,他们率先研制成硫化铅以及数种红外透射材料,并且利用这些元器件制成一些军用红外设备,如高射炮用导向仪、海岸用船舶侦查仪、船舶探测和跟踪系统等等[1]。此后,各个国家针对红外辐射在军用技术领域的开发愈演愈烈,这促成了红外线相关科技的快速发展。直到上世纪七十年代,红外线技术才逐步进入民用阶段。上世纪八十年代初,基于红外线工作的遥控器被日本的公司第一次应用在电视上。现如今,红外遥控器已经走进了家家户户的日常生活,成为了不可替代的常用产品。

1.1.2 研究现状

早期为了实现遥控多台设备的功能,厂商在遥控器内预置了几种设备的红外信号编码。但显然,采用这种方式工作的遥控器局限性很大,能遥控的电器型号固定同时数量也是有限的。

之后能够自主学习的遥控器应时而生,这种遥控器预置动态编码库,由用户自己输入遥控编码。

请支付后下载全文,论文总字数:21988字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图