1、1 水文站的水位自动监测系统设计水文站的水位自动监测系统设计 摘要摘要 本文是为了实现对大坝水位进行多点水位采集,然后通过远距离传输,并且有数据显 示和越限报警功能,单片机作为下位机,负责大坝现场各水位点的选通和采集,作为上位 机的 PC 机, 则负责大坝水位的集中显示和管理记录, 而 PC 机与单片机之间的通讯方式主 要采用 RS-485 总线技术。本文阐述了通过超声波液位传感器等对大坝水位进行自动监测 系统,主要由硬件部分和软件部分组成。 硬件部分主要是传感器主要是超声波传感器,数据采集部分采用多路开关方式进行, 利用超声波传感器进行模拟数据采集,为了满足生产中多通道的要求,设计了 8 个
2、模拟数 据采集通道。传感器将非电量信号变为电信号,经放大器放大后送入 8 位串行模数转换器 TLC0838, 数据处理部分采用 AT89S52 单片机为核心控制器件, 当 AT89S52 单片机接到控 制软件发出的通道采集指令,采集的信号通过串行接口送入单片机,由显示芯片 HD7279 八驱动 LED 数码管进行现场显示,再通过 RS-485 通信总线上传至上位机,由上位机进行 显示。 软件部分主要采用汇编语言编程进行了数据采集处理、 数据显示、 报警等程序的设计。 针对电磁干扰对系统的干扰,本文提出了去藕电容的配置等三点抗干扰措施,以增加系统 的稳定性。 关键词:超声波传感器;AT89S52
3、单片机;数据采集通信;上位机 2 Design of Automatic Monitoring System of the Water Level in Hydrological Station Abstract The paper mainly describes the method of the ultrasonic liquid level through the dam of water level sensors for automatic monitoring system, which is consist of the hardware part and software p
4、art. In this paper, uses the host who and the monolithic integrated circuit is composed by PC machine from the type many machine networking system, the monolithic integrated circuit took the lower position machine, is responsible for the dam scene various gauging stations the selection and gathering, in the achievement position machine PC machine, then is responsible for the dam water level the centralism demonstrate and manage the record, but PC machine and between the monolithic integrated cir