1、 I 基于单片机的锅炉液位控制系统 摘 要 本文主要设计了一种基于单片机的锅炉液位控制系统,它以 STC89C52 单片机作为核 心控制器,通过 STC89C52 单片机,温度传感器、压力传感器和模数转换器,数码管显示 等硬件系统和软件设计方法实现具有液位检测报警和控制双重功能. 本系统在设计中主要有水位检测、温度检测、压力检测、按键控制、水位控制、显 示部分、 故障报警等几部分组成来实现液位控制。 主要用液位传感器检测液位, 用 DS18B20 温度传感器来检测水温,用三个控制按键来实现按健控制,用三位 7 段 LED 显示器来完 成显示部分,用 MOC3041 双向可控硅来控制水泵的开关,
2、用压力传感器检测锅炉内部压 力,并且通过模数转换把这些信号送入单片机中。把这些信号与单片机中内部设定的值 相比,以判断单片机是否需要进行相应的操作,即是否需要开启水泵,来实现对液位的 控制,从而实现单片机自动控制液位的目的。本设计用单片机控制易于实现锅炉液位、温 度和压力的控制,而且有造价低、程序易于调试、一部分出现故障不会影响其他部分的工 作、维修方便等优点。 关键词:STC89C52 单片机,液位控制,显示,报警 II ABSTRACT Designed in this paper is a boiler liquid level controll system, which STC89C
3、52 as a controller, through hardware and software design ,such as STC89C52 single chip, temperature sensor,pressure sensor and ADC, a system of digital display, reach to liquid level detection and alarm dual function control. The design of the system are mainly include the water level detection, tem
4、perature detection, pressure detection, key control, water level control, display, fault alarm, such as a few parts to achieve the level control. Detection of the main level with the water level sensors, temperature sensors DS18B20 is used to detected water temperature, with three control buttons to achieve the health control, with three 7 LED display to complete the display, using MOC3041 TRIAC to control the circulating pump switch ,with pressure sensor