![](https://csdnimg.cn/release/download_crawler_static/89271237/bg1.jpg)
学生承诺书
本人郑重承诺:所呈交的毕业论文(设计)是本人在导师的指导下独立进行
研究所取得的成果。除了文中已用特别标志加以标记的引述内容之外,本论文不
含有任何其他个人或集体已经发表或撰写的研究成果。对本设计研究做出过重要
贡献的个人或集体,均已在文中以明确的方式标明。若在毕业论文(设计)的各
项检查、评比中被发现有抄袭、剽窃或其他的违规行为,本人愿按学校有关规定
接受处理,并承担相应的法律责任。
签名:________________
日期:2018 年 05 月 18 日
![](https://csdnimg.cn/release/download_crawler_static/89271237/bg2.jpg)
摘 要
随着 21 世纪信息革命的到来,国家的经济的水平提高,科技实力的增强。
科技改变了人类的生活方式,物联网应用技术的不断提升,使得人类的生活变得
更舒适、更加的智能化。但是古老的生活方式仍然限制着人类生活的舒适程度,
现代科技在家居生活中的应用非常有限,为了使生活更加舒适、更快捷、更智能,
智能家居为此而诞生了。
本设计以 Arm Cortex-A8 处理器的 S5PV210 开发板为控制核心,使用 Qt 应
用编程搭建的 UI 控制界面的智能家居系统,使用温湿度传感器以及液晶显示屏
组成温湿度检测系统以及环境的降温系统和抽湿系统,同时采用火焰传感器识别
火情和使用蜂鸣器组成一个火情警报系统,使用开发板的 ADC 模块来模拟光照
强度,系统根据模拟的光照强度来自动开关室内的灯光。在系统通信数据传输模
块的构建上,使用蓝牙模块和安卓智能手机构建一个蓝牙遥控系统,用开发板上
的 LED 灯模拟室内灯的开关和蜂鸣警报器的开关和降温器的开关以及抽湿器的
开关。开发板通过 DHT11 数字温湿度传感器来获取家居环境中的温湿度数据,
然后传送到 LCD 液晶显示屏显示,同时将以上的各种传感器数据发送到安卓手
机,安卓智能手机亦能通过现成的蓝牙串口助手发送控制命令来对开发板进行遥
控。
关键词:智能家居 嵌入式技术 蓝牙通信控制 模块传感器
![](https://csdnimg.cn/release/download_crawler_static/89271237/bg3.jpg)
Abstract
With the advent of the information revolution in twenty-first Century, the level
of the country's economy improved and the strength of science and technology
increased. Technology has changed the way of human life, and the increasing
application of Internet of things has made human life more comfortable and intelligent.
But the old way of life still restricts the comfort of human life, and the application of
modern technology in home life is very limited. In order to make life more
comfortable, faster and more intelligent, the smart home is born.
This design takes the Arm Cortex-A8 S5PV210 development board as the
intelligent home system which controls the UI control interface built by Qt application
programming. The temperature humidity sensor and the liquid crystal display screen
are used to form the temperature and humidity monitoring system, the cooling system
and the dampness system of the environment. At the same time, the flame sensor is
used to identify the fire and the use of the buzz. The device forms a fire alarm system.
The ADC module of the development board is used to simulate the intensity of
illumination. The system automatically switches the indoor lights according to the
simulated intensity. On the construction of the system communication data
transmission module, a Bluetooth remote control system is constructed using the
Bluetooth module and the Android smart phone. The LED lights on the development
board are used to simulate the switch of the indoor lamp and the switch of the beeling
alarms and the cooling device, as well as the switch of the humidifier. The
development board obtains the temperature and humidity data in the home
environment through the DHT11 digital temperature and humidity sensor, then sends
it to the LCD display, and sends all the above sensor data to the Android mobile
phone, and the Android smart phone can also send control commands through the
ready Bluetooth serial port assistant to remote control the development board.
KEY WORDS: Smart home; Embedded technology; Bluetooth communication
control; Module senso
![](https://csdnimg.cn/release/download_crawler_static/89271237/bg4.jpg)
I
目 录
1 绪论.....................................................................................................................1
1.1 智能家居的起源和背景 ..............................................................................1
1.2 智能家居的现状和发展趋势 ......................................................................1
1.3 智能家居的技术特点和在生活上的实际应用 ..........................................2
1.3.1 技术特点 ...............................................................................................2
1.3.2 实际应用 ...............................................................................................2
1.4 各章节内容安排..........................................................................................3
2 智能家居系统总体分析和设计 .........................................................................3
2.1 系统需求分析..............................................................................................4
2.2 无线通信技术 —— 蓝牙 ..........................................................................4
2.3 嵌入式操作系统 —— Linux......................................................................5
2.4 智能家居系统的整体架构 ..........................................................................6
2.4.1 硬件架构 ...............................................................................................6
2.4.2 驱动程序架构 .......................................................................................7
2.4.3 应用程序的架构 ...................................................................................7
3 系统硬件架构设计.............................................................................................8
3.1 系统控制核心 S5PV210 开发板硬件说明 .................................................8
3.2 传感器模块................................................................................................10
3.2.1 温湿度传感器模块 .............................................................................10
3.2.2 火焰传感器模块 .................................................................................11
3.3 蓝牙模块....................................................................................................13
![](https://csdnimg.cn/release/download_crawler_static/89271237/bg5.jpg)
II
4 软件设计...........................................................................................................14
4.1 嵌入式开发环境的搭建 ............................................................................15
4.1.1 安装 Linux 开发环境..........................................................................15
4.1.2 交叉编译环境搭建 .............................................................................16
4.2 所使用模块底层驱动设计........................................................................17
4.2.1 温湿度传感器模块驱动 .....................................................................17
4.2.2 火焰传感器模块驱动 .........................................................................21
4.3 应用程序设计............................................................................................22
4.3.1 Qt 系统的移植 ....................................................................................22
4.3.2 蓝牙模块串口编程实现 .....................................................................24
4.3.3 Android 蓝牙串口调试助手 ...............................................................25
5 讨论与测试.......................................................................................................27
5.1 应用软件准备............................................................................................27
5.2 Qt 应用程序运行界面和结果 ...................................................................27
6 总结和展望.......................................................................................................31
6.1 总结............................................................................................................31
6.2 未来展望 ....................................................................................................32
参 考 文 献.....................................................................................................33
致 谢.........................................................................................................35