【编者按】:网学网电子数电单片机为您提供基于单片机的红外遥控开关参考,解决您在基于单片机的红外遥控开关学习中工作中的难题,参考学习。
论文编号:JD767 论文字数:19702,页数:53
摘要
本次毕业设计设计了基于单片机的红外遥控开关,论文首先介绍了系统的总体组成,然后分为硬件与软件两部分进行阐述。硬件电路部分主要描述了红外接收主控制模块与各模块的相互关系,这部分主要采用MC-51作遥控发射器及接收处理器。该系统在实际使用后,证明其方便、可靠并具有实用价值。
课题涉及到硬件与软件两大部分,硬件电路部分的实现是以单片机AT89C2051为核心,作为主控制电路,其他外围电路为从属电路部分。把硬件电路可分为两个模块,控制编码模块与发射模块,再把遥控模块分为三个小模块:单片机主控,红外接收模块和电源部分。软件部分设计步骤可分为:主程序和中断程序入口程序、初始化程序中的各变量、主程序、键盘工作子程序、中断接收程序、延时子程序等。该论文就上面问题详细介绍了软硬件设计、实现和调试过程中所采用的方法,并采取相应的步骤解决问题。
关键字:红外遥控;接收编码;发送编码;单片机
Abstract
This graduation project based on monolithic integrated circuit''s infrared remote control switch, the paper first introduced system''s main assembly, then divides into the hardware and the software two parts carries on the elaboration. The hardware circuit part mainly described the infrared receive master control module with the various modules reciprocity, this part mainly uses MC-51 to do controls remotely the launcher and the receive processor. This system after actual use, proved that its convenient, reliable and has the use value. the topic involves to the hardware and the software two major parts, hardware circuit part realization is take monolithic integrated circuit AT89C2051 as a core, takes the master control electric circuit, other peripheral circuit to be subordinated the electric circuit part. May divide into two modules the hardware circuit, the control code module and the launch module, divides into again the remote control module three small modules: Monolithic integrated circuit master control, infrared receive module and power unit. The software part design procedure may divide into: Master routine and in interrupt routine entry program, initialization routine various variables, master routine, keyboard work subroutine, interrupt receive procedure, time delay subroutine and so on. This paper introduced in detail on the above question the software and hardware design, realizes the method which uses with the debugging process, and adopts the corresponding step to solve the problem.
key words: Infrared remote control; Receive yard; Send yard; The single chip microcontroller .
目录
摘要 1
Abstract 2
第一章 绪论 4
1.1 红外线技术 8
1.2 课题的提出和意义 9
1.3红外技术未来发展 10
第二章 系统电路设计 11
2.1方案确立 11
2.2原理分析 14
2.3件选择 15
2.3.1核心控制芯片 15
2.3.2红外发光二极管选择 17
2.3.3 红外接收头 18
2.3.4 ULN2003 19
2.4 红外发射电路部分 21
2.4.1单片机部分 22
2.4.2红外发射部分 23
2.5红外遥控电路 25
2.6电源电路设计 25
第三章 软件设计 27
3.1发射流程图 28
3.2接收流程图 29
第四章 电路组装调试 30
4.1 概述 30
4.2 检查元件 30
4.3 组装电路 30
4.4 电路调试 30
4.5软件调试 31
4.5调试中常见的故障 31
4.5.1 元件问题 31
4.5.2 装配问题 31
4.5.3 设计问题 31
第五章 系统开发所用工具 32
5.1硬件工具 32
5.2软件工具 33
结 论 38
致 谢 39
附录一:原理图和PCB图 40
附录三:完整代码 42