基于单片机的高精度超声波液位检测系统
High Precise Measurement System of Supersonic-Wave Fluid-Surface-Height Based on Single-Chip-Microcomputer
-
摘要: 介绍一种使用超声波进行液位检测的微机控制系统及其硬件组成及相应软件流程图。为使测量具有较高的精度,系统在测量方式上采用在容器底部放置超声波探头的回波检测法,使超声波在液体中来回传播以稳定超声波传播速度;在硬件上引入专用定时芯片8254,以提高传播时间的分辨率,同时8254的时标信号由具有较高稳定频率的多谐振荡电路产生;在软件算法上减少舍去误差。系统测量精度可准确到厘米。Abstract: This paper introduces a single-chip-microcomputer control system for supersonic-wave fluid-surface-height measurement and the hardware circuit and the software flow chart of the control system. In order to achieve high precision of measurement,the supersonic-wave sensor is set under the container to make supersonic-wave stable. And the integrated circuit 8254 is used in the system, its CLK is provided by an oscillation circuit of high frequency stability. The measurement result shows that the precision of the system reaches centimeter.