摘要
为准确测量油井中的油位,以便提高抽油机工作效率,研究设计了基于单片机实现的测控系统。系统以AT89C2051单片机为主控制器,用新型振动模式超声波探头和超声波接收器构成油液位检测电路及LED数字显示器,从而对油井油位检测、显示和对抽油机工作状态进行控制。采用单线数字温度传感器为核心的温度补偿电路,以校正由于检测电路工作环境温度变化引起的测量误差,提高了系统抗干扰性。系统软件由C语言实现,采用中断方式,完成超声波发射到接收从石油液面反射回波的时间记录和处理,以得到准确的油位高度。系统通过实验调试,运行可靠、测量准确,具有一定的推广价值。
A system based-on single-chip is designed to measure and control oil level accurately to improve the efficiency of pumping unit. The system uses AT89C2051 as main controller, uses a new type vibratory ultrasonic detector and receiver to form an oil level detecting circuit and a LED digital display to control the states of oil pump. A single-line digital temperature sensor is used as the core of compensator to correct the errors caused by the changes of surroundings temperature, As a result, the system anti-jamming ability is improved. The system software is written in C language. Interrupt modes are used to record and deal with the time from ultrasonic emission to receiving reflection wave from oil level to get the accurate height of oil level. The system has the merits of running reliably and measuring truly through debugging, so it is worthy of extending.
出处
《电气自动化》
2013年第4期82-83,共2页
Electrical Automation
基金
学院重点科研基金资助项目(ZK11029)
关键词
单片机
超声波检测
油位
控制
抽油机
MCS
ultrasonic detection
oil level
control
pumping unit