APP下载

基于STC15W204S的温室智能变送器的设计

2018-11-06梅建虎

安徽农学通报 2018年15期

梅建虎

摘 要:针对温湿度传感器信息采集时驱动程序多集成在仪表端的现状,设计了1种基于微型处理器在温湿度传感器端进行驱动化处理并输出帧格式数据的温湿度传感模块。此设计采用温湿度传感器SHT10,LCD1602液晶屏,并通过串口通信将温湿度数据及时送到计算机显示,同时将显示的数据与设定值进行对比,若温湿度超过设定的范围,则启动蜂鸣器及LED灯报警。通过设计原理图,焊接电路,硬件调试,证明了该系统的可行性。

关键词:温湿度传感器SHT10;变送器;STC15W204S

中图分类号 TP273 文献标识码 A 文章编号 1007-7731(2018)15-0127-03

Abstract:in view of the temperature sensor information acquisition and integrated driver more explicit degrees in the status quo,this paper designed a kind of microprocessor based on temperature and humidity sensors to drive processing and output data of temperature and humidity sensor module frame format. This design USES the temperature and humidity sensor SHT10,LCD1602 LCD screen,and through a serial port communication will timely sent to the computer display,temperature and humidity data will display data compared with the set value at the same time,if the scope of the temperature and humidity more than set alarm buzzer and LED lamp is started. The feasibility of the system is proved by designing schematic diagram,welding circuit and hardware debugging.

Key words:Temperature and humidity sensor SHT10;The transmitter;STC15W204S

1 引言

溫室大棚在农产品生产和观赏花卉栽培方面起着重要作用,因此需要改善和提高温室大棚的科技水平和降低大棚建设的成本。目前,应用于温室大棚的温度检测系统多采用有模拟温度传感器、多路转换开关、A/D转换器及单片机等组成的传输系统。这种温度采集系统需要在温室大棚内布置大量的测温电缆,才能把传感器信号送到采集卡上,安装和拆卸繁杂,成本也高[1-5]。也有一部分设计研究使用的是PT100作为温度采集器,但其缺点在于需外接A/D转换模块,采集速度和精度不高。本设计所用的温湿度检测电路由SHT10、微控制器STC15W204s和MAX485组成,每个传感器使用同一个驱动电路,当上位机给出接受信号后,驱动电路工作,开始信号采集,且MAX485的传输距离可达到2km,方便远距离传输,此设计减少了驱动模块,体积小,成本低,具有明显优势。

2 系统总体方案设计

系统设计主要分为硬件电路设计和软件程序设计,硬件电路主要分为温湿度采集电路、单片机控制电路、报警电路、显示电路及串口电路。……

登录APP查看全文