摘要随着信息时代的兴起,智能家居引起了当今时代的潮流,人们不再满足于互联网,从而逐渐探索出“物联网”这个概念。物联网即意味着物物相连,把物体加入到互联网中。而智能家居中的温室控制也越发受到人们的关注。本课题使用的树莓派是一种新型的支持大量外设的廉价小型计算机。通过这一部小小的计算机可以从零开始创造出不同的物联网应用。87149
本课题将树莓派作为传感节点,设计了系统框架的构成模型。系统分为四个模块:温度感知模块以C语言为原型完成底层数据感知,实时读取数据;监测模块通过API接口上传到Yeelink网络平台;报警模块将数据处理后进行判定预警;远程制动基于Pi4j的开发包,提出以MQTT协议作为控制理论的研究内容,连接服务端完成制动过程。
本课题的系统在连接网络的情况下可以远程查看测量的数据和远程控制。数据查询时网站界面友好,易于查看,管理人员在任何地方都可以查询温湿度的状态。测试结果和分析说明,系统的各个模块工作正常。
毕业论文关键词:物联网;MQTT;传感器;树莓派
Abstract The domain of home automation becomes the trend of the time along with the rise of the information age。 People are no longer satisfied with the Internet, so they gradually explore the concept of “the Internet of things”。 Internet of things means that things are connected each other, and people pay more attention to one part of it which we called smart greenhouse。 The Raspberry Pi is a new type cheap and small computer which supports a large number of peripherals。 We can create an outstanding application from scratch with this small computer。
This project use Raspberry pi as a sensor node, and designs a model of system's framework。 System is pided into four modules: temperature sensing module which uses C as prototype language to get the perception of the underlying data, and read data in real time; monitoring through the API interface uploads the data to Yeelink platform; alarm module processing data to determine the warning alarm; remote brake based on the development of Pi4j package proposed to use MQTT protocol as research content of control theory, the connection server finish the braking process。
In this project, the system in the case of connecting the Internet can be viewed remotely measured data and remote control the Raspberry Pi。 While querying the data, it provides user-friendly interfaces, and easy the manager to view and check the status of the temperature and humidity anywhere。
Keywords: I oT; MQTT; Sensor; Raspberry Pi
目 录
第一章 绪论 1
1。1 选题背景及意义 1
1。1。1 行业和领域背景 1
1。1。2 依赖的项目背景及其发展现状 1
1。1。3 预期收益及社会价值 2
1。3 论文工作内容 3
第二章 相关技术概述 4
2。1 MQTT理论 4
2。1。1 MQTT简介 4
2。1。2 工作原理 4
2。1。3 功能及特点 5
2。2 树莓派 5
2。3 开发平台 6
2。3。1 Yeelink 6
2。3。2 Java与Eclipse