1、1 摘要摘要 作为传统的家用电器,随着空调的普及,电风扇的市场地位受到了巨大的冲 击, 传统的开关、 调速功能已经不能满足市场的需求。 人们希望电风扇在体积小, 使用方便等的基础上,能够拥有更多的功能,而红外遥控的广泛应用及单片机技 术的成熟则使得红外遥控系统成为了电风扇的发展趋势。 红外线遥控是目前使用最广泛的一种通信和遥控手段, 而红外遥控电风扇已 经过市场推广反响很好,并有专门的掩模芯片作为主控芯片,先用 AT89C52 为核 心部件,加以扩展实现红外遥控电风扇系统,并以指示灯显示档位,具有开关及 多档位等功能。经过多次的测试与电路调整,系统各项功能均能正常实现 关键词:关键词:红外遥控
2、;电风扇;单片机;芯片 2 Abstract As the traditional home appliances, with the popularization of air conditioning, electric fan market position by a huge impact, the traditional function switch, speed has been unable to meet the needs of the market. People hope the electric fan in the small volume, convenient
3、use and so on the basis of, can have more features, and the wide application of the infrared remote control and microcomputer technology maturity makes the infrared remote control system has become the development trend of electric fan. Infrared remote control is currently using a communication and
4、control means the most extensive, and infrared remote control electric fan has been marketing a very good response, and mask the special chip as the main control chip, using AT89C52 as the core component, be extended to achieve infrared remote control fan system, gear and display to light with a swi
5、tch, and a gear function. After repeated testing and adjusting of the circuit, the system can realize the function of normal Keywords: infrared remote control; electric fan; single chip; 3 目录目录 摘要 1 Abstract 2 前言 4 第一章 红外遥控及单片机的概述 5 1.1 红外遥控的发射和接收原理 5 1.2 单片机的概述 5 1.2.1 AT89C2051 单片机的介绍 . 5 1.2.2 AT
6、89C52 单片机的介绍 . 7 第二章 红外遥控电风扇原理及设计. 13 2.1 遥控器 . 13 2.1.1 红外发射 13 2.1.2 红外发射的编码方式 13 2.1.3 硬件设计 14 2.1.4 软件设计 14 2.2 电风扇控制板 15 2.2.1 工作原理及组成部分: 红外接收部分包括光电转换放大器、 解调、 解码电路。 15 2.2.2 设计方案 16 2.2.3 硬件设计:参见(图 11) . 17 2.2.4 软件设计:. 17 参考文献. 21 附录. 22 红外遥控电风扇系统设计源程序如下:. 22 致谢. 32 4 前言前言 在人们的生产生活中对于电器设备总是有更高的要求, 要求有更加方便人们 使用的各种电气设备出现,而对于人们使用的普通电风扇来说,实现遥控操作是 体现便利性的重点。 单片机做为嵌入式微控制器在工业测控系统, 而仪器和家用电器中得到了广 泛的应用,而红外遥控又是目前使用最广泛的一种通信和遥控手段。 现今红外遥控电风扇已经过市场推广反响很好, 现用 AT89C52 为核心部件, 加以扩展实现红外遥控电风扇系统的设计。 遥控电风扇控制系统分为