摘要二十一世纪是高科技时代,科技正在进展,一些传统的测控方式也会随着科技的进展而改革更新。现代的工业、农业的生产中不仅要求液位控制系统更精准,更稳定,还要求其更新自动化程度快和性价比高。基于单片机的液位控制系统具有测量精准度高、性能稳定可靠、能量消耗低而使用寿命较长的特点,将科学与液位测量相结合,而达到合理调配资源,降低能源消耗的目的。超声波能在不同媒质中传播,且方向性强,传播距离远,消耗能量缓慢,碰到障碍物会产生反射,形成反射回波。所以超声波常常被用于测量距离。本设计采纳超声波模块测量液面的高度,并把数据传送给 AT89C51 单片机。单片机处理数据信息后推断是否开启水泵抽水来实现水位的基本控制功能。本系统由 LCD1602 显示器、键盘、传感器、电源和水泵组成。关键词:单片机;超声波;LCD1602;传感器 Abstract21st century is the era of high technology, technology is being developed, some of the traditional measures will be updated with the development and reform of science and technology. Modern industry and agriculture requires not only a more intuition and stable performance, but also fast update automation and high cost-effective with the cost in reducing production equipment requirements. Liquid level control system based on microcontroller with its high control accuracy, reliable performance, low energy consumption and long working life set to be applied to the liquid level system characteristics of the control. Combine science with liquid level measurement to achieve a reasonable allocation of resources and reduce the purpose of energy consumption.Ultrasonic propagation in different media, and strong direction, transmission distance, slow energy, obstacles will produce reflection to form echo. Ultrasound is often used to measure distance. This design uses ultrasonic to measure the height of liquid level, then sent the data to AT89C51 microcontroller. Microcontroller determines whether to open the pump after...