1、 1 摘要 智能家居作为家庭信息化的实现方式,已经成为社会信息化发展的重 要组成部分,物联网因其巨大的应用前景,将是智能家居产业发展过程中 一个比较现实的突破口,对智能家居的产业发展具有重大意义。本文基于 容易实现,方便操作,贴近使用的设计理念,采用 STC89C52 单片机为控制 核心,为控制终端,并采用包括红外遥控、按键、Web 界面等在内的多个控 制源来控制家用电器。本文的二至四章描述了整个设计的软、硬件部分的 具体实现,第五章是根据设计好的功能搭建了一个具体的环境实例。 关键词关键词:物联网、智能家居、单片机、STC89C52、多源控制 2 Abstract Smart Home as
2、 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 design co
3、ncept 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 paper des
4、cribes 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 智能家居控制系统功能 . 6 第 2 章 总体设计 . 7 2.1 整体介绍 . 7 2.2 系统设计方案 . 7 2.3 功能设计: . 7 2.3.1 多源控制 . 8 2.3.2 温度控制 . 9 2.3.3 湿度控制 . 10 2.3.4 风阀开度控制 11 2.3.5 模式控制 11 第 3 章 硬件设计 . 13 3.1 最小系统模块 13 3.2 串口模块 14 3.3 湿度传感器模块 . 14 3.4 温度传感器模块 . 14 3.5 LCD 模块 . 16 3.6 键盘模块 19 3.7 继电器模块 19 3.8 AD 模块 . 20 3.9 串口
6、转以太网模块 21 第 4 章 软件系统设计 . 24 4.1 MCGS 组态软件介绍 24 4.1.1 MCGS 窗口与编辑 . 24 4.1.2 MCGS 启动退出策略 . 30 4.1.3 模拟调试软件 . 34 第 5 章 环境实例搭建 . 40 5.1 实例环境选择 40 5.2 实例环境布置 . 40 5.2.1 所控电器 . 40 5.2.2 布线 . 41 5.2.3 控制模式 . 41 5.2.4 远程控制 . 42 第 6 章 总结 . 44 谢辞45 参考文献 . 46 4 第第 1 1 章章 背景背景 1.11.1 智能家居的概念智能家居的概念 智能家居(Smart Home)是以家为平台,兼备建筑、自动化,智能 化于一体的高效、舒适、安全、便利的家居环境。家居智能化技术起源于 美国,最具代表性的是 X-10 技术,通过 X-10 通信协议,网络系统中的各 个设备便可实现资源的共享。因其布线简单、功能灵活,扩展容易而被人 们广泛接受和应用。至今,X-10 技术产品的销售已超过两亿个,仅在美国 一个国家,便有超过 600 万个家庭在使用。自动化的智能家居