基于树莓派的智能家居

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

摘要随着物联网技术的发展,智能家居产业迅速崛起。在此背景下,我们研究了智能家居管理系统的设计与实现。本文所设计的智能家居管理系统采用分层架构设计,分别为感知层、中间层以及应用层。感知层利用温湿传感器、火焰探测器、土壤湿度检测器等来采集我们需要的数据。中间层利用数据平台为我们采集到的数据进行存储与展示。应用层利用树莓派来对采集到的数据进行分析处理,如果发现异常则采取相对应的措施。在Linux环境下,以树莓派为硬件平台,实现智能家居管理系统。在树莓派的平台上完成对智能家居系统设计与实现后,能够较好的实现设计的基本功能,采集数据都正确,系统比较稳定,并且该系统较好的完成异常处理。关键字:智能家居,树莓派,传感器,PythonAbstractWiththedevelopmentofInternetofthingstechnology,smarthomeindustryhaverapidrise.Inthiscontext,westudythedesignandimplementationofintelligenthomemanagementsystem.Inthispaper,theintelligenthomemanagementsystemadoptsthehierarchicalarchitecturedesign,whichisthesensinglayer,themiddlelayerandtheapplicationlayerrespectively.Thesensinglayerusestemperatureandhumiditysensors,flamedetectors,soilmoisturedetectorsandothersensorstocollectthedatathatweneed.Themiddlelayerusesthedataplatformtostoreanddisplaythedatawecollect.ApplicationlayeruseRaspberryPitoanalysisthedatathatwecollect,andittakecorrespondingactioniffoundtheexception.UndertheLinuxenvironmentandRaspberryasthehardwareplatform,weachievedintelligenthomemanagementsystem.Intheraspberrypiplatformtocompletetheintelligenthomesystemdesignandimplementation,tobetterachievethebasicfunctionsofthedesign,datacollectionarecorrect,thesystemisrelativelystable,andthesystembettertocompletetheexceptionhandling.Keywords:Smarthome,RaspberryPi,Sensor,Python山东科技大学本科毕业设计(论文)目录1绪论..............................................11.1课题背景与意义..........................................11.2国内外研究现状.........................................21.3课题的主要工作.........................................31.4本文的组织结构.........................................41.5本章小结...............................................52系统关键技术介绍..................................62.1树莓派硬件应用.........................................62.2Yeelink数据平台.......................................82.3面向对象Python........................................102.4本章小结..............................................133系统需求与总体设计...............................143.1系统需求概述..........................................143.1.1照明控制模块需求..................................................................................143.1.2草木智能浇水模块需求..........................................................................143.1.3窗帘控制模块需求..................................................................................153.1.4厨房火焰探测模块需求..........................................................................153.1.5展示需求..................................................................................................153.1.6数据存储需求...........................................................................................153.1.7异步事件..................................................................................................163.1.8性能..........................................................................................................163.1.9易用性.......................................................................................................163.2整体系统概述..........................................163.2.1系统硬件架构设计..................................................................................173.2.2系统软件架构设计...................................................................................183.3功能模块设计[22]........................................193.4本章小结..............................................204系统详细设计与实现...............................214.1数据库设计.............................................214.2数据读写接口.........................................23山东科技大学本科毕业设计(论文)4.3发送邮件...............................................264.3.1打开smtp服务........................................................................................264.3.2构造邮件..................................................................................................274.3.3发送邮件..................................................................................................284.4数据通信接口.........................................304.4.1Yeelink获取数据...................................................................................304.4.2Yeelink修改编辑数据...........................................................................314.5照明系统控制模块实现..................................334.5.1Python控制继电器.................................................................................334.5.2抖动...........................................................................................................354.5.3Python控制HC-SR501模块...................................................................354.5.4照明系统控制组合..................................................................................384.6智能浇水模块实现......................................394.6.1Python控制土壤湿度传感器.................................................................394.6.2利用继电器控制抽水机...........................................................................404.6.3智能浇水模块组合..................................................................................414.7厨房火焰检测模块......................................414.7.1Python控制火焰探测器.........................................................................41

1 / 72
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功