基于单片机的智能家居控制系统设计_毕业设计论文 下载本文

江苏科技大学毕业论文 基于单片机的智能家居控制系统设计

毕业设计论文

基于单片机的智能家居控制系统设计

摘要

智能家居作为家庭信息化的实现方式,已经成为社会信息化发展的重要组成部分,物联网因其巨大的应用前景,将是智能家居产业发展过程中一个比较现实的突破口,对智能家居的产业发展具有重大意义。本文基于容易实现,方便操作,贴近使用的设计理念,采用STC89C52单片机为控制核心,为控制终端,并采用包括红外遥控、按键、Web界面等在内的多个控制源来控制家用电器。本文的二至四章描述了整个设计的软、硬件部分的具体实现,第五章是根据设计好的功能搭建了一个具体的环境实例。

关键词:物联网、智能家居、单片机、STC89C52、多源控制

1

江苏科技大学毕业论文 基于单片机的智能家居控制系统设计

Abstract

Smart 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 Home`s development .Networking means a lot to the Smart Home .This article base on the design 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 paper 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 word: Networking、Intelligent、Home、Microcontroller、STC89C52、

multi-source control

2

江苏科技大学毕业论文 基于单片机的智能家居控制系统设计

目录

摘要..... ................................................................................................................................1 Abstract............................................. .................................................................................. 2 第1章 背景....................................................................................................................... 4

1.1智能家居的概念....................................................................................................4 1.2物联网的出现........................................................................................................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

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 附录:单片机控制程序................................................................... 错误!未定义书签。

3