嵌入式以太网远程温湿度监控系统的设计
2019-09-10钟滨王亚星童莲
钟滨 王亚星 童莲


摘 要:该文以AM2301/DHT21数字温湿度传感器模块为例,具体介绍了I2C通信,串行通信以及网络通信的过程和方式。讨论了基于单片机的嵌入式以太网远程温湿度监控系统的设计方案,提出了嵌入式以太网远程温湿度监控的一种设计方法。通过本设计方法,温湿度传感器采集温湿度信号后传输到控制单元,所采集的信号数据经控制单元处理后传输到本地液晶,以及本地终端和远程终端。系统能够实时监测温、湿度数据,提供本地液晶显示、本地终端显示、网络远程终端显示三种工作方式,提供可配置的温度、湿度独立上下限报警和温湿度混合报警功能,提供连续环境监测记录、查询、报警提示功能,系统还可以扩展自动调节温湿度功能。
关键词:温湿度监控;AM2301;以太网;嵌入式
中图分类号:TP277 文献标识码:A 文章编号:2096-4706(2019)24-0189-03
Abstract:This article takes the AM2301 / DHT21 digital temperature and humidity sensor module as an example,and specifically introduces the processes and methods of I2C communication,serial communication,and network communication. The design scheme of remote temperature and humidity monitoring system based on embedded Ethernet based on single chip microcomputer is discussed,and a design method of remote temperature and humidity monitoring based on embedded Ethernet is proposed. Through this design method,the temperature and humidity sensor collects temperature and humidity signals and transmits them to the control unit. The collected signal data is processed by the control unit and transmitted to the local LCD,local terminal,and remote terminal. The system can monitor temperature and humidity data in real time,provide local LCD display,local terminal display,network remote terminal display three working modes,provide configurable temperature and humidity independent upper and lower limit alarms and temperature and humidity mixed alarm functions,and provide continuous environmental monitoring records,query,alarm prompt function. The system can also be extended with automatic temperature and humidity adjustment.
Keywords:temperature and humidity monitoring;AM2301;Ethernet;embedded
0 引 言
该文的主要目的是在温湿度传感器、单片机以及网络应用的理论知识的基础上,选用TI公司的MSP430F149完成一种可以提供不间断监控记录,能够提供网络远程终端、本地主机终端和本地液晶三种工作方式以及能够报警的远程网络温湿度监控系统。
本系统主要是温湿度传感器采集温湿度信号后传输到控制单元,所采集的信号数据经控制单元处理后传输到本地液晶、本地终端和远程终端分别显示,本地终端将接收到的数据进行显示和存储,终端上位机可以设置温湿度阈值并进行报警。本系统能够实时监测温湿度数据,提供多种终端显示工作方式,提供可配置的温度、湿度独立上下限报警和温湿度混合报警功能,提供连续环境监测记录、查询功能。……
