1、 I 目 录 第 1 章 引言 . 1 1.1 传感器的概述和应用前景. 1 1.2 课题目的和意义. 2 1.3 课题的主要组成和设计要求. 3 第 2 章 方案比较与论证 4 2.1 设计思路. 4 2.2 方案设计比较. 4 2.3 方案的确定. 5 第 3 章 硬件电路设计 5 3.1 设计思路与方法. 5 3.2 基本功能模块电路 . 6 3.2.1 温度采集模块 6 3.2.2 系统控制模块 9 3.2.3 数据存储模块 9 3.2.4 显示模块 10 3.2.5 红外发送与接收模块 12 3.2.6 单片机引脚分配图 15 第 4 章 系统程序设计 15 第 5 章 设计演示结果
2、 27 5.1 硬件演示效果. 27 第 6 章 结论与展望 31 6.1 结论. 31 6.2 结束语. 31 致谢 32 参考文献 33 附录一 系统原理图 34 附录二 程序清单 34 I 智能空调节电控制器智能空调节电控制器 本文本文摘要摘要 本文设计了一种基于 STC89C52 单片机能学习各种 32 位空调遥控指令并自动依据检 测到的温度调节空调的运行状态的空调控制装置的实现方案,以及硬件设计和软件设计的 方法。本设计充分利用了单片机价格低、功能强、抗干扰性能好等优点。针对环境温度检 测和空调红外控制给出了实用的硬件设计和软件编程,成功实现了控制器对空调的智能控 制。整个装置采用
3、DS18B20 实时采集环境中的温度,同时显示在数码管上;用红外线发射 与接收与空调进行数据指令通信,将外部中断扑捉到得指令信号存储到掉电非易失性外部 E2PROM 存储器中,单片机根据实时采集到的温度向空调发送相应的指令信号。 关键词:关键词:单片机,单片机,DS18B20 温度采集,红外通信,温度采集,红外通信,I2C 总线通信总线通信 II Intelligent Air Conditioning Power Controller Abstract: This text has designed a Implementation Scheme, which is an air-condi
4、tioning control device based on STC89C52 micro-controller, it can learn all kinds of 32 bits air-conditioning remote control instructions and adjust the air-conditionings running automaticly according to the temperature detected. The design makes full use of low cost single chip, functional strength, and good anti-jamming, For infrared temperature detection and control of air conditioning gives practical hardware design and software programming, the controller successfully intelligent control