在互联网发展迅速的时代,基于互联网的远程监控、远程操作设备越来越有价值。基于树莓派3B+为主控制器,选取DS18B20温度传感器、HC-SR04超声波传感器和BMP180气压传感器分别作为线上数据监控节点,用OneNet物联网服务器实现数据通信和存储,用户可在微信小程序及物联网终端上实时查看数据,最终实现在微信小程序上进行实时监控的功能。测试结果表明,系统具有成本低、体积小、功耗低、数据传输精确度高等特点,符合设计要求。
Abstract
The remote monitoring and remote operation equipment based on internet is more and more valuable in the era of rapid development of internet.The Raspberry Pi 3B+ is used as the main controller,DS18B20 temperature sensor is selected,HC-SR04 ultrasonic sensor and BMP 180 pressure sensor are used as the online data monitoring nodes,and OneNet is used to communicate and store the data.Users can view data in real time through Wechat applet and IoT terminals.Finally we realized the function of real-time monitoring on Wechat applet.The test results show that the system has the characteristics of low cost,small size,low power consumption,high data transmission accuracy,and meets the design requirements.
关键词
树莓派 /
传感器 /
OneNet物联网 /
微信小程序 /
通信协议
Key words
Raspberry Pi /
sensor /
OneNet Internet of Things /
Wechat applet /
communication protocol
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 钱志鸿,王义君.面向物联网的无线传感器网络综述[J].电子与信息学报,2013,35(1):215-227.
[2] Pereira R I S,Dupont I M,Carvalho P C M,et al.IoT embedded linux system based on Raspberry Pi applied to real-time cloud monitoring of a decentralized photovoltaic plant[J].Measurement,2018(114):286-297.
[3] Liu Y,Huang J,Lu N.Research on Environmental Monitoring System Based on Microservices and Data Mining[C]//E3S Web of Conferences.EDP Sciences,2020(143):02031.
[4] 邓怀俊,邓杰.基于OneNET云平台的物联网监控系统[J].单片机与嵌入式系统应用,2019,19(9):58-61.
[5] 郭志彪.一种基于中国移动oneNET平台的智能硬件敏捷创新方法[J].中国新通信,2018,20(18):54-55.
[6] 王春梅,杨文龙.树莓派接入OneNET实现物联网系统的设计[J].电子设计工程,2019,27(7):133-137,143.
[7] 李珊.基于微信小程序的学生活动管理系统的设计与实现[D].广州:广东工业大学,2019.
[8] 李雪钊.基于微信小程序的慢出行共享系统的设计与实现[D].北京:首都经济贸易大学,2018.
[9] 张学敏.基于微信小程序的体质健康管理系统设计与实现[J].电脑知识与技术,2019,15(22):103-106.
[10] 金莹.基于微信小程序的个人电台系统的设计与实现[D].长春:吉林大学,2017.
基金
*陕西省教育厅科学研究资助项目(No.17JK0346);陕西省技术创新引导专项-科技成果转移与推广计划资助项目(No.2020CGXNG-009)。