4基于单片机的无线遥控技术

无锡太湖学院

信机 系 电子信息工程 专业

毕 业 一、题目及专题:

设 计论 文 任 务 书 1、题目 基于单片机的无线遥控技术 2、专题 单片机控制电路的软硬件设计

二、课题来源及选题依据

随着社会的不断发展,智能设备的不断出现,遥控器的运用越来越广泛。无线遥控器由于控制距离远,抗干扰性强,已经越来越多的出现在生活的各个方面。本文介绍了一款通用的无线遥控器,采用AT89C51作为核心并采用专用的编码解码电路,由于其体积小,价格低廉,因此可以非常方便的移植到遥控机器人、遥控小车上等,实现远距离控制。本设计从实际出发要求设计一个基于单片机控制的无线遥控装置,整个控制系统中运用了模拟电路和单片机等相关知识,适合本科生作为毕业设计题目。 三、本设计(论文或其他)应达到的要求:

当无线遥控器的某个按键按下时,由单片机判断是否有按键发生并检测出键值。单片机根据检测到的键值发出相应的码值,无线发射器负责将

I

按键信号以编码的形式在315MHz的频率上发射出去。无线接收器接收并放大发射信号同时解调出TTL电平信号送至单片机进行处理,单片机通过

比较和识别接收来的无线遥控编码便可执行相应的遥控功能。 四、接受任务学生:

电信83 班 姓名 李佳明 五、开始及完成日期:

自2011年10月25日 至2012年 月 日

六、设计(论文)指导(或顾问):

指导教师 签名

签名

签名

教研室主任

学科组组长

研究所所长

〕 签名

系主任 签名

2012年 月 日

II

摘 要

无线遥控是指实现对被控目标的非接触遥远控制,在工业控制、航空航天、家电领域应用广泛。无线遥控和无线传输系统与有线和红外设备相比提高了移动自由度。由此使无线遥控装置和无线传输系统在工业领域的应用越来越多。相对电缆连线的优点在于安装成本低提高了灵活性并降低了维护成本。遥控系统一般由发射器和接收器两部分组成。发射器一般由指令键、指令编码电路、调制电路、驱动电路、发射电路等几部分组成。指令编码电路产生相应的指令编码信号,编码指令信号对载体进行调制,再由驱动电路进行功率放大后由发射电路向外发射经过调制的指令编码信号。接收器一般由接收电路、放大电路、解调电路、指令译码电路、驱动电路和执行电路几部分组成。接收电路将发射器发射的已调制的编码指令信号接收下来,并进行发大后送解调电路。解调电路将以调制定编码解调下来,即还原为编码信号。指令译码器将编码指令信号进行译码,最后由驱动电路来驱动执行电路实现各种指令的操作。

本文介绍了一款基于单片机AT89C51、无线发射接受芯片SZSAW系列的0733编码发射芯片和CZS-7接收解码芯片的硬件设计。具备无线遥控的功能。通过最后的硬件调试表明,该设计能完成期望的目标。

关键词:无线遥控、发射器、接收器、AT89C51、无线收发模块

III

Abstract

Wireless remote control technology is the non-contact means of accused targets based on remote control,it's wildly used in industrial controls , aviation and aerospace , home appliances.Wireless remote control and wireless transmission system is more freedom than cable and infrared devices.So it makes the wireless remote control and W- -ireless transmission system applicate more and more in the field of industrial application . Relative to the advantage of cable , wireless's low cost improve flexibility and reduce the maintenance costs.Remote control system is made up of transmitter and receiver in general. Transmitter is composed of sections such as instruction keys , instruction coding circuit , modulation circuit , drive circuit , transmitter. Instruction coding circuit instructions encoded signal, the signal make a modulation to the carrier, then after driving circuit for power amplifier by the transmitter out launch signals after modulation.Receiver is made up of receiving circuits, amplifier, demodulation circuit, instruction decoding circuits, driver, implementation of circuits.Receiving circuit launchers have been received modulation signal of the coded instructions, and zoom evacuation demodulation circuit.Demodulation circuit to reduce the development of encoding and demodulation off,it is restored as coded signals.Instruction decoder encoded instruction signal decoding, at last performed by the driver to drive circuit implementation instructions.

This article describes the design of a hardware based on single-chip AT89C51, wireless sending and receiving chips 0733 code launch of SZSAW series chip and CZS-7 receiver decoder.It has a function which is wireless remote control. By the hardware debugging showed that the design can be completed at the end of the expectations.

Keywords:wireless remote control, transmitters, receiver, AT89C51, wireless transceiver modules

IV

目录

摘要 ..................................................................................................................................................................... III Abstract .............................................................................................................................................................. IV 目录 ...................................................................................................................................................................... V 1.绪论 ....................................................................................................................................................................1 2.硬件设计 ............................................................................................................................................................2

2.1无线通信 .................................................................................................................................................2

2.1.1 无线通讯的先驱 .........................................................................................................................2 2.2 无线遥控 ................................................................................................................................................3

2.2.1 无线遥控的分类 .........................................................................................................................3 2.2.2 无线遥控的应用 .........................................................................................................................3 2.3 设计思路 ................................................................................................................................................4 2.4 无线遥控工作原理及电路的实现方法 ................................................................................................4 2.5 单片机 ....................................................................................................................................................5

2.5.1 单片机的应用 .............................................................................................................................5 2.5.2 AT89C51单片机 ..........................................................................................................................6 2.5.3 收发模块主要参数 .....................................................................................................................9 2.5.4 接收板发射板模块 .....................................................................................................................9 2.6 总体电路图描述 ..................................................................................................................................12

2.6.1 单片机最小系统 .......................................................................................................................12 2.6.2 复位电路 ...................................................................................................................................12 2.6.3 振荡电路 ...................................................................................................................................13 2.6.4 按键输入电路 ...........................................................................................................................13 2.6.5 指示器电路 ...............................................................................................................................14 2.7 发射模块电路设计 ..............................................................................................................................14 2.8 接收模块电路设计 ..............................................................................................................................15 2.9 总电路图 ..............................................................................................................................................16 3.软件设计 ..........................................................................................................................................................16

3.1软件设计语言 .......................................................................................................................................17

3.1.1 C语言简介 ................................................................................................................................17 3.1.3 C语言的优点 ............................................................................................................................17 3.1.4 C语言的结构 ............................................................................................................................18 3.2 程序框图及设计思想 ..........................................................................................................................18 3.2.总程序 ...................................................................................................................................................19 4.总结 ..................................................................................................................................................................19 5.致谢 ..................................................................................................................................................................20 参考文献 .............................................................................................................................................................21 附录1 ..................................................................................................................................................................22 附录2 ..................................................................................................................................................................23

V

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4