1、 1 摘要摘要 智能家居作为家庭信息化的实现方式, 已经成为社会信息化发展的重要组成 部分,物联网因其巨大的应用前景,将是智能家居产业发展过程中一个比较现实 的突破口, 对智能家居的产业发展具有重大意义。 本文基于容易实现, 方便操作, 贴近使用的设计理念,采用 STC89C52 单片机为控制核心,为控制终端,并采用 包括红外遥控、按键、Web 界面等在内的多个控制源来控制家用电器。本文的二 至四章描述了整个设计的软、硬件部分的具体实现,第五章是根据设计好的功能 搭建了一个具体的环境实例。 关键词:关键词:物联网、智能家居、单片机、STC89C52、多源控制 2 Abstract Smart
2、Home as the implement mode of Family Information has become an important part of the social information development .The networking because of its huge prospect to develop .It will be a real way during the Smart Homes development .Networking means a lot to the Smart Home .This article base on the de
3、sign concept of trying to use easiest way to deliver handle and closing to use .We take the STC89C52 as the control core of the design .The relay as the control terminal mean .While we also use the trared remote control key webpage etc to control the home appliances . Two to four chapters of this pa
4、per describes the design of software and hardware to achieve the specific. Chapter V is based on features designed to build a specific environment instance. Key wordKey word: Networking、Intelligent、Home、Microcontroller、STC89C52、 multi-source control 3 目录目录 摘要1 Abstract. .2 第 1 章 背景4 1.1 智能家居的概念4 1.2
5、 物联网的出现4 1.3 智能家居控制系统功能5 第 2 章 总体设计6 2.1 整体介绍6 2.2 系统设计方案6 2.3 功能设计:6 2.3.1 多源控制7 2.3.2 室温控制8 2.3.3 灯光控制8 2.3.4 光线控制9 2.3.5 模式控制9 第 3 章 硬件设计10 3.1 最小系统模块.10 3.2 串口模块.10 3.3 红外接收模块. 11 3.4 传感器模块. 11 3.5 LCD 模块12 3.6 键盘模块.13 3.7 继电器模块.13 3.8 AD 模块15 3.9 串口转以太网模块.16 第 4 章 软件系统设计18 4.1 STC89c52 开发工具介绍18
6、 4.1.1 keil uVision2 新建项目与编辑.18 4.1.2 keil uVision2 编译与调试运行.27 4.1.3 程序烧写32 4.2 单片机总控制流程图 错误错误!未定义书签。未定义书签。 4.3 键盘与红外遥控键位功能 错误错误!未定义书签。未定义书签。 4.4 Web 软件开发工具简要介绍. 错误错误!未定义书签。未定义书签。 4.4.1 Eclipse. 错误错误!未定义书签。未定义书签。 4.4.2 tomcat. 错误错误!未定义书签。未定义书签。 4.5 Web 端网页界面设计. 错误错误!未定义书签。未定义书签。 第 5 章 环境实例搭建37 5.1 实例环境选择.37 5.2 实例环境布置37 5.2.1 所控电器37 5.2.2 布线37 5.2.3 控制模式38 5.2.4 远程控制39 第 6 章 总结40 谢辞41 参考文献42 附录:单片机控制程序43 4 第第 1 章章 背景背景 1.11.1 智能家居的概念智能家居的概念 智能家居(Smart Home)是以家为平台,兼备建筑、自动化,智能化于 一体的高效、舒适、安全、便利