第 35 卷 第 1 期 广东海洋大学学报 Vol.35 No.1
2015 年 2 月 Journal of Guangdong Ocean University Feb. 2015
电容式液位传感器的设计
李一峰,吴振陆,樊海红
(广东海洋大学信息学院,广东湛江 524088 )
摘 要:设计了一种基于单片机的电容式液位传感器,主要由单片机系统、555 定时器、液晶显示屏组成。单片
机作为主要控制的部分,控制系统所有的部分,接收 555 定时器方波信号并读取出其频率,将频率转换成液位高
度,显示到 LCD1602 液晶显示屏幕上,软件计算液位高度,减小了电容与频率转换的线性误差,最终实现算法
的设计。
关键词:电容式液位传感器;555 定时器;多谐振荡电路;频率转换
中图分类号:TP212 文献标志码:A 文章编号:1673-9159 (2015 )01-0090-05
Design of a Capacitive Liquid Level Sensor
LI Yi-feng ,WU Zheng-lu ,FAN Hai-hong
(The Information College of Guangdong Ocean University, Zhanjiang 524088, China )
Abstract: Capacitance type liquid level sensor based on single chipwas designed. The system consists
of single-chip microcomputer system, 555 timer, LCD screen. Single chip microcomputer, as the main
control part, control all part of the system, receive a 555 timer square wave signal and read out the
frequencywhich is transformedinto the height of liquid level and is displayed on the LCD1602 liquid
crystal screen.The liquid level height is calculated by software, by reducing the linearity error of
capacitance and frequency conversion,and finally the algorithm is designed.
Key words: Capacitive liquid level sensor;555 timer;Multi-oscillator circuit ;frequency conversion
在石油化工、水利水电、农田灌溉、环境监测 出的新要求。
以及食品加工等众多行业,液位是一个重要的技术
参数。液位准确检测一直以来是传感检测技术方面 1 电容式液位传感器的工作原理
的研究热点,同时也是控制领域的一项关键技术。
通常进行液位测量的方法有 20 多种,分为直 电容式液位传感器其原理就是利用电容量的
接法和间接法。直接液位测量法是以直观的方法检 大小与电容外特征有直接关系,即是电容值与极板
测液位的变化情况,如玻璃管或玻璃板法。然而随 的面积成正比,与极板间的距离成反比,特别是与
着工业自动化规模