基于单片机的液位控制系统设计的-毕业设计论文.doc

基于单片机的液位控制系统设计的-毕业设计论文.doc

沈阳工业大学硕士学位论文格式规范 PAGE - - PAGE I 摘 要 本课题是基于单片机的液位控制系统的设计,使用在日常生活和工业应用中广泛应用的水塔作为被控装置,水塔液位和水压作为被控对象;本设计采用液位检测装置和电容式差压变送器对液位高度和压力进行实时检测并传送到单片机进行实时处理,从而使水塔水位自动保持在指定的范围。其中,液位控制系统的硬件电路主要包括水位和水压检测电路、A/D转换电路、键盘显示电路、报警电路、电机控制电路等五大部分;该系统使用电容式差压变送器对水塔水压进行检测并将检测到的信号送给A/D转换器,A/D转换器将对应的模拟电压信号转换成数字量传给单片机AT89C51进行处理,单片机将处理的结果通过数码管显示出来,并完成对排水、抽水电动机的控制;在单片机进行实时处理的同时,可以通过按键对控制系统进行相应的功能切换。 该系统各个部分的硬件电路采用C51语言编写控制程序,从而实现使用键盘调整被控参数水压的上、下限以及软件复位功能;利用四位一体共阴极数码管显示水压;通过逻辑代码达到对电机控制电路的控制,使电机在一定的条件下进行抽水或者排水操作;最终使被控对象被控制在指定的水位和水压范围内。 在将系统的硬件电路设计和软件程序设计完成后,需要将硬件电路部分和软件程序部分结合起来进行液位控制系统的调试,如果发现问题,就需要找到合适的解决方案,修改错误的部分;并且将这两者结合进行液位控制系统仿真结果的测试,观察实验的结果是否符合课题的设计要求,不然修改不符合课题要求的部分,最终达到液位控制系统的课题目标。 关键词:AT89C51单片机;A/D转换;液位控制 PAGE II Abstract This topic is the design of control system based on single-chip liquid level control, using the tower as a controlled device which is often seen in daily life and industrial application, the liquid level of the water tower and water pressure as the object; this design uses the liquid level detection device and capacitive differential pressure transmitter to monitor the liquid level and pressure and real-time processing, so that the water level automatically keeps in the specified range. The hardware circuit of control system mainly has five parts, which includes water pressure and liquid level detection, A/D converter, keyboard display circuit, alarm circuit, motor control and so on; the system uses capacitive differential pressure transmitter to detect the tower pressure and the detected signal is sended to the A/D converter; A/D converter will convert this analog voltage signals into digital signals which send to the AT89C51 single-chip, and the micro-controller processes the results, which can use the nixie tubes to display, and accomplish the control of drainage and pumping motor; At the same time of real-time processing in the SCM, the corresponding button can switch to different functions of the control system. Each part of the hardware circuit of the

文档评论(0)

1亿VIP精品文档

相关文档