池塘水位水温实时远距离监测装置的设计

2017-09-25 04:34:00龙光利
现代电子技术 2017年18期

龙光利

摘 要: 针对目前池塘水位水温测量不精确、实时性较差等问题,设计一种池塘水位水温实时远距离监测装置。该装置包括硬件和软件两部分。硬件由单片机最小系统、水位传感器、水温传感器、SIM模块、液晶显示模块等组成。软件由主程序、温度采集子程序、液晶显示子程序等组成。水温水位采集模块将水位和温度信息传送到数据处理模块;通过键盘可以设置温度和水位的上下限值,单片机把水位和温度传感器传送来的数据经过处理,产生相应的显示代码驱动液晶显示模块进行显示,同时能将水位水温信息实时发送到手机上,并可进行远程控制。实践表明,装置工作稳定、监测距离远,池塘水位水温测量比较准确、实时性好。

关键词: 水位监测; 水温监测; 实时监测装置; 短消息; STC89C52

中图分类号: TN931+.3?34; TP212.9 文献标识码: A 文章编号: 1004?373X(2017)18?0143?04

Design of real?time remote monitoring device for water level and

water temperature in pond

LONG Guangli

(School of Physics and Telecommunication Engineering, Shaanxi University of Technology, Hanzhong 723001, China)

Abstract: Aiming at low accuracy and poor real?time performance of monitoring the water level and water temperature in pond, a real?time remote monitoring system of water level and water temperature in pond was designed. The device includes hardware and software. The hardware is composed of the MCU minimum system, water level sensor, water temperature sensor, SIM module, liquid crystal display module, etc. The software is composed of the main program, temperature acquisition subprogram, liquid crystal display subprogram, etc. The water level and water temperature acquisition module transmits the water level and water temperature data to data processing module. The upper and lower limits of water temperature and water level are set by means of keyboard. MCU processes the data transmitted by water level and water temperature sensors, then generates the corresponding display code to drive the liquid crystal display module for display, and sends the water level and water temperature information to mobile phone in real time for remote control. The practice results show that the device can work stably, has long monitoring distance, and can measure the water level and water temperature accurately and in real time.

Keywords: water level monitoring; water temperature monitoring; real?time monitoring device; short message; STC89C52

0 引 言

水库按容量可分为大、中、小型。容量大于1亿m3的为大型水库,容量在1 000万~1亿m3的为中型水库;容量在10万~1 000万m3的称为小型水库(其中100万~1 000万m3的称为小(一)型水库,10万~100万m3的称为小(二)型水库);容量小于10万m3的称为池塘或堰塘,不能称为水库[1]。水库的主要功能是农田灌溉和汛期防洪,以及为居民生活、养殖用水提供有利条件,一般有专门的机构管理。而池塘的功能以养殖为主,兼顾农田灌溉和汛期防洪。良好的水环境是水产养殖的重要环节,随着水产养殖业的迅猛发展,水产养殖方式由简单的散养转化为大规模的集约化养殖,且大……

登录APP查看全文