红外遥控开关设计毕业论文
2021-04-14 23:25:23
摘 要
传统的按键开关,因为它的不便捷,已经到不到人们的要求。在这个时候,红外遥控技术能够帮助我们革新开关按键技术,使其能够适应这个飞速发展的新时代。本文将使用外红遥控技术,设计一种开关,满足新时代背景下,人们的要求。
红外遥控是一种可以有一定空间距离的遥控技术,这种技术具有很强抗干扰能力,对比之前的无线电传输,红外遥控技术要更加的稳定和便捷。本文将使用红外遥控技术,对电风扇进行改进,并能使用Proteus软件进行仿真。红外遥控分为发射和接收两个部分,发射部分由按键电路、调制电路和数码管显示等组成,接收部分由红外遥控的解码译码电路、电机驱动电路以及倒计时显示等构成。
本设计基于AT89C51单片机,能够通过红外遥控,实现对电风扇的开关控制,风速大小、类型控制,并能够控制电风扇的正转和反转,来实现电风扇的摇头功能。
关键字: 红外遥控; 单片机; 电风扇;
Abstract
The traditional key switch, because of its inconvenience, has not reached people's requirements. At this time, infrared remote control technology can help us to innovate switch button technology so that it can adapt to this new era of rapid development. This article will use external red remote control technology to design a switch that satisfies people's requirements in a new era.
Infrared remote control is a kind of remote control technology that can have a certain spatial distance. This kind of technology has strong anti-interference ability. Compared with the previous radio transmission, the infrared remote control technology should be more stable and convenient. This article will use infrared remote control technology to improve the electric fan and use Proteus software for simulation. Infrared remote control is divided into launch and receive two parts, the launch part by the button circuit, modulation circuit and digital display and other components, the receiving part of the infrared remote control decoding and decoding circuit, motor drive circuit and countdown display and other components.
This design is based on the AT89C51 single-chip microcomputer. It can realize the on-off control of the electric fan through infrared remote control, the size and type control of the wind speed, and can control the forward and reverse rotation of the electric fan to realize the function of shaking the head of the electric fan.
Keywords: Infrared remote control; MCU; Electric fan;
目录
摘 要 I
Abstract II
第1章 绪论 1
1.1设计的目的及意义 1
1.2系统设计要求及内容 2
第2章 课题的方法设计与论证 3
2.1红外编码方案 3
2.2红外接收方案 4
第3章 系统的硬件结构设计 5
3.1单片机的时钟电路和复位电路 5
3.1.1单片机的时钟电路 5
3.1.2单片机的复位电路 5
3.2键盘矩阵 6
3.3数码管 6
3.4电机调速与控制模块设计 7
3.4.1 L298芯片介绍 7
3.4.2电机调速原理 8
3.4.3电机调速模块设计 9
3.5 定时器/计数器 10
3.5.1 工作方式寄存器TMOD 10
3.5.2 控制寄存器TCON 10
3.5.3 定时器/计数器的四种工作方式 10
第4章 系统的软件设计 12
4.1 遥控码的发射 12
4.1.1 遥控码的发射 12
4.1.2 发射端程序流程图 12
4.2 红外接收 14
4.2.1 红外接收信号的处理 15
4.2.2 接收端程序流程图 16
第5章 系统仿真与调试 18
5.1 按键部分仿真 18
5.2 电机调速仿真 19
5.3 定时显示仿真 21
结 论 22
致 谢 23
参考文献 24
附录 25
附录A.发射程序 25
附录B.接收程序 30
附录C.Proteus仿真图 36
第1章 绪论
本部分主要介绍本次设计的目的、意义以及设计的具体内容。
1.1设计的目的及意义
“In order to solve the problems of mechanical switch such as high contact resistance, easy abrasion, low reliability and short service life, a kind of infrared remote control switch was presented. Its design principle was that infrared remote control transmitting circuit sent control signal to the receiving circuit and the circuit was controlled by signal amplification and frequency discrimination.[1]”为解决机械开关接触电阻高,易磨损,可靠性差,寿命短等问题,提出了一种红外遥控开关。红外遥控开关的设计原理是对信号的控制,这里的信号,指的是发射和接收过程中的信号。
在今天,在生产、生活的各个方面,红外遥控技术已经被广泛的应用了。它不仅用于航空航天等高端技术,还用于日常生活中的各种遥控器。因此设计了基于单片机的红外遥控模拟系统。 “The remote control simulation system is mainly designed for household appliances requiring remote control.[2]” 遥控模拟系统主要设计用于需要遥控的家用电器。