1、 本科生毕业设计说明书(毕业论文) 题 目:基于单片机的双容水箱 液位控制器设计 学生姓名: 学 号: 专 业:测控技术与仪器 班 级: 指导教师: I 基于单片机的双容水箱液位控制器基于单片机的双容水箱液位控制器设计设计 摘摘 要要 液位作为工业生产过程中的主要的被控参数之一,被广泛应用于冶金、建材、化工、 食品、石油等工业中,工艺过程中液位的控制效果直接影响着所生产出的产品质量。现 代工业中的液位控制系统规模日趋复杂化、大型化,液位控制已逐渐成为目前过控领域 的一个研究热点。基于单片机的液位控制器具有性能稳定、可靠,控制精度高,造价低, 设置方便,操作方便等优点。 本设计利用单片机实现对双
2、容水箱液位的控制,该系统是以上下两个串联的水箱为 研究对象,把下水箱的液位作为被控参数,通过压力变送器测量水箱的液位,并把测量 结果送到以单片机为核心的控制器作为反馈信号,控制器再根据预先设置的增量型 PID 控制算法进行运算,发出控制命令控制执行机构之一的调节阀开度大小,从而改变进入 上水箱中水的流量大小,实现水箱液位的自动控制,整个控制过程中,水泵电机保持匀 速供水。 关键词:关键词:单片机 STC89C52,液位控制,增量式 PID 控制算法,LED 显示 内蒙古科技大学毕业设计说明书(毕业论文) II Based on single chip dual tank water level
3、 controller design Abstract The level is charged with one of the parameters of the industrial production process, the most important, widely used in metallurgy, building materials, chemicals, food, petroleum and other industries, the level of control in the process directly influences the production
4、 of productsquality. Level Control System scale of modern industry are becoming increasingly complex, large-scale, level control has gradually become the Process Control field of a hot research topic. Based on single chip water level controller has many advantages, such as stable performance, reliab
5、le, high control precision, low cost, easy set up, easy operation. The design use single chip achieve dual-tank water level control system is based on the two upper and lower water tanks in series for the study, the following tank level is controlled parameters, the pressure transmitter to measure t
6、he level of the water tank, and the measurements gave microcontroller as the core controller as the feedback signal, the controller based on incremental PID control algorithm is pre-set computing, issue control commands to control the actuator valve opening size, thus changing into the flow of water on the tank size. tank liquid level automatic control. Key words: single chip STC89C52,liquid level control, incremental PID control algorithm, LED display 内蒙古科技大学毕业设计说明书(毕业论文) III 目目 录录 摘 要 . I