摘要
研究了基于Arduino+Modbus-RTU的程序设计技术,以Arduino Mega2560为核心搭建小型气象站多节点物联网数据采集系统,分别获取风速、风向、温湿度、光照、雨量数据,主站与从站均通过RS-485接入网络,基于Modbus-RTU协议设计Arduino程序实现主站对各从站的LED控制及对应传感器数据的请求,完成整体设计与Proteus仿真测试,为类似系统开发提供参考。
The program design technology based on Arduino+Modbus RTU is studied.Multi-node Internet of Things data collection system for small weather stations is built with Arduino Mega2560 as the core,and wind speed,wind direction,temperature and humidity,light,rainfall data are obtained respectively.Both master and slave stations access the network through RS-485.The Arduino program based on Modbus-RTU protocol is designed to realize LED control of master station to slave station and request corresponding sensor data.The overall design and Proteus simulation test are completed to provide reference for similar system development.
作者
彭伟
PENG Wei(Wuhan City Polytechnic,Wuhan 430064,China)
出处
《电工技术》
2022年第21期135-138,共4页
Electric Engineering
基金
产教融合背景下传感器课程实践教学创新研究(编号2019GB204)。