基于物联网的植物智能养护系统的设计与实现
2018-12-18郭杰
郭杰
摘要:传统植物养护需要耗费大量人力,费时费力。随着物联网的发展和Android智能手机的普及,基于Wifi的土壤温度、湿度、光照传感器、监控摄像头、智能插座价格低廉,使用方便,该文通过阐述系统的总体设计、运行流程、软件功能实现。提出了通过okhttp框架获取第三方传感器数据的方法,萤石云平台获取监控视频的步骤,以及利用智能插座实现远程控制的方法,给出了一种植物养护的低成本综合解决方案。
关键词:物联网;传感器;Android;Okhttp
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2018)27-0096-03
Design and Implementation of Plant Intelligent Maintenance System Based on Internet of Things
GUO Jie
(School of electronic and information engineering, Nanjing Communications Institute of Technology, Nanjing 211188, China)
Abstract: Traditional plant maintenance requires a lot of manpower and is time consuming and labor intensive. With the development of the Internet of Things and the popularity of Android smartphones, Wifi-based soil temperature, humidity, illumination sensors, surveillance cameras, and smart sockets are inexpensive and easy to use. This article describes the overall design, operation flow, and software functions of the system. The method of obtaining third-party sensor data through okhttp framework, the steps of obtaining monitoring video by fluorite cloud platform, and the method of remote control using smart socket are presented, and a low-cost comprehensive solution for plant maintenance is given.
Key words: Internet of Things; sensor; Android; Okhttp
1 背景
随着智能手机和物联网的普及,植物种植养护逐步向智能化、无线联网化方向发展,土壤温湿度、光照传感器配备Wifi通讯模组,可以将实时采集的数据上传到云端服务器中,通过智能手机、平板电脑等移动互联网智能终端设备远程实时获取数据,随时随地掌握植物生长数据,为植物的灌溉、补光提供科学数据,切实减轻种植负担。
2 系统设计
2.1 总体设计
系统由四大模块组成,包括:植物支架系统、辅助种植养护系统、图像和数据采集系统、软件控制系统。植物支架系统由上层植物、中层控制设备、下部储水层组成。辅助种植养护系统包括:LED补光灯、水泵、皮管喷淋头、控制器。图像和数据采集系统包括:土壤温湿度传感器、光照传感器、监控摄像头、路由器、云平台服务器。传感器和摄像头通过Wifi无线网络与路由器连接,接入互联网,经过配置数据自动上传保存在第三方服务器中。软件控制系统包括Android手机客户端软件和Web服务器网站系统,Android手机App通过调用第三方开发的数据接口获取远程服务器中存储的传感器数据和监控视频,Web服务器网站提供植物库,用户交流系统。……
