基于MODBUS协议的温湿度采集系统设计  

Design of Temperature and Humidity Acquisition System Based on MODBUS Protocol

在线阅读下载全文

作  者:袁亚琦 Yuan Yaqi

机构地区:[1]盐城工学院电气工程学院,江苏盐城

出  处:《变频器世界》2024年第7期104-107,共4页The World of Inverters

摘  要:本文提出了一种基于ModbuS通信协议的温湿度采集系统。硬件方面,选择STM32F103ZGT6单片机作为核心控制器,DHT11作为温湿度传感器,PC与STM32之间经过USB-RS-485转换器进行通信。软件方面,DHT11使用单总线通信将采集到的温湿度值发送给STM32,STM32基于ModbuS-RTU通信协议将温湿度值传输到上位机。本文给出了STM32主控电路,改进了RS-485电气接口电路,并讲述了DHT11和Modbus-RTU通信协议软件实现的关键步骤。本系统可以以Modbus-RTU通信协议的数据格式传输温湿度值到PC,符合设计要求。This study proposes a temperature and humidity acquisition system based on Modbus communication protocol.In terms of hardware,the STM32F103ZGT6 microcontroller is selected as the core controller,and DHT11 is used as the temperature and humidity sensor.Communication between the PC and STM32 was carried out through a USBRS-485 converter.In terms of software,the sensor sends the temperature and humidity values to STM32 through singlebus communication.After that,STM32 transmits the temperature and humidity values to the host computer based on Modbus-RTU communication protocol.This study gives the main control circuit of the STM32,and the circuit of RS-485 electrical interface is improved.This study describes the key steps to implement DHT11 data acquisition and Modbus-RTU communication protocol.This system can transmit temperature and humidity values to the host computer based on Modbus-RTU communication protocol,which meets the design requirements.

关 键 词:STM32 DHT11 RS-485 Modbus-RTU 

分 类 号:P412.11[天文地球—大气科学及气象学]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象