好文档 - 专业文书写作范文服务资料分享网站

基于单片机液位控制的设计

天下 分享 时间: 加入收藏 我要投稿 点赞

单片机原理与应用 课程设计报告

题 目: 基于单片机的液位控制器设计 学 院: xxxxxxxxxxxxxxxxxx 班 级: xxxxxxxxxxxx 学 号: xxxxxx 姓 名: xxx 联系方式: xxxxxxxx 指导教师: xxxxxxxxxx

报告成绩:

xx年 xx月xx日

目录

1 绪论.............................................................. 5 2 系统总体设计...................................................... 6

2.1设计思路..................................................... 6 2.2 系统框图 .................................................... 6 2.3 设计原理分析 ................................................ 7 2.4 电路工作原理................................................................................................错误!未定义书签。

3 系统硬件设计...................................................... 9 3.1 驱动电路设计................................................ 9

3.2 报警电路设计 ................................................ 9 3.3液位指示电路设计............................ 错误!未定义书签。 3.4压力自动控制模拟和手动操作控制电路设计 .... 错误!未定义书签。 3.5晶振电路.................................... 错误!未定义书签。 3.6 复位电路 ................................................... 14 4 系统软件设计..................................................... 15

4.1 软件设计说明 ............................................... 15 4.2主程序流程图................................................ 15 4.3液位控制程序流程图.......................................... 15 5 设计的结果...................................................... 18 6 总结............................................ 错误!未定义书签。 附录............................................... 错误!未定义书签。

2

摘要

该设计是由单片机AT89C51控制的锅炉水位控制器,它主要有硬件和软件部分共同完成控制系统功能。其中硬件部分主要由水位检测电路、驱动电路、夜位指示电路以及压力自动控制模拟和手动控制等部分组成;软件部分主要由汇编语言所编写的程序组成。本系统可实现液位报警、控制和压力控制等功能,并对液位进行数字显示。

电路主要实现功能是液位检测和报警,然后控制水泵的启停。液位控制主要的控制的对象是水泵,容器是锅炉,液位的检测可根据探测器探测得到。液位正常情况下控制在一定测量点距离段之间,当液位低于或高于正常水位段下限和上限是进行光报警,若液位在正常液位时,则解除报警。当液位低于液位下限时,水泵一直注水,而高于上限实则关闭水泵,并且当液位处于不同探测电时,可显示相应数字来显示液位。压力检测主要由一个开关来模拟压力的高低,并用指示灯的亮灭来模拟风机的运行和停止,另设手动操作按钮,用以人为启动水泵和风机。

关键词:单片机 控制 检测 报警

3

ABSTRACT

The design of boiler water level controller is controlled by single chip microcomputer AT89C51, it mainly are part of the complete control system hardware and software functions. The hardware part is mainly composed of water level indication circuit detection circuit, drive circuit, night and pressure parts such as simulation of automatic control and manual control; Software part is mainly composed of programs written in assembly language. This system can realize the function such as liquid level alarm, control and pressure control, and the liquid level digital display.

Circuit functionality is largely liquid level detection and alarm, and then control the pump start-up. Liquid level control of main control object is the water pump, a container is boiler, liquid level detection can be obtained according to the detector. Liquid level control in a certain period of measurement point distance between normal, when the liquid level is less than or higher than the normal water level is lower limit and upper limit alarm light, if the liquid level in the normal level, cancel the alarm. When the liquid level is less than level lower limit, the pump has been flooding, above the ceiling actually shut down pumps, and when the liquid level in different detecting electric, it can display the corresponding number to display liquid level. Pressure testing is mainly composed of a switch to simulate the stress of high and low, and destroy the light of lights to simulate the operation of the fan and stop, the other a manual button, to start the pump and fan.

Key words: single chip microcomputer control detection alarm

4

第一章 绪论

我国燃烧锅炉的现象很普遍而且数量众多,因此耗煤量巨大,十分浪费资源。并且大多数锅炉处于能耗大、浪费大、环境污染严重的工作状态。 锅炉微机控制,是近年来新开发的一项新技术,它是微型计算机软件、硬件、自动控制、锅炉节能等几项技术紧密结合的产物,工业锅炉采用的是微机控制和原有的仪表控制,微机控制有以下明显优势:

1)可以直观地显示锅炉的运行参数,显示液位、压力等状态。

2)在运行中可以修改各种各样的运行参数的初始值以及系统的控制参数,还可以很方便的改变液位、压力。

3)可以提高锅炉的热效率,节约能源,符合国家的节能减排政策,有利于我国经济的可持续发展。

4)锅炉系统中包含鼓风机和水泵等大型电动机,采用微机控制更加节约电能,可以节约成本。

5)作为锅炉控制系统装置,其主要任务是保证锅炉的安全、稳定、经济运行,减少劳动人员的劳动强度。

综合以上的种种优点可以预见采用计算机控制系统是行业的大势所趋。单片机是在一块芯片上集成了一片微型计算机所需的cpu、存储器、输入、输出等部件。单片机自问世以来,性能不断提高和完善,体积小、速度快、功耗低的特点使它的应用领域非常广泛。

在现代社会中,随着工业的发展,居民生活区的集中热力供应量的需求量越来越大,蒸汽锅炉的容量不断高,对操作过程的要求也更加严格,锅炉的液位控制直接影响人们自身和设备的安全。液位过低可能使锅炉出现干烧现象,液位过高则又会使锅炉蒸汽压力过高发生危险。传统的液位控制自动化程度低,调节精度差等缺点,而且单靠人工操作已不能适应控制系统改造的必要性。 随着科学技术的不断进步,被控对象越来越复杂,人们对控制精度的要求越来越高。随着单片机技术和自动控制技术的发展,利用单片机及外围芯片实现锅炉液位控制已经成为一种趋势,单片机体积小,安装方便,功能齐全,性价比好,应用前景广,本系统即是基于AT89C51单片机设计的,简单易行并且有着较

5

基于单片机液位控制的设计

单片机原理与应用课程设计报告题目:基于单片机的液位控制器设计学院:xxxxxxxxxxxxxxxxxx班级:xxxxxxxxxxxx学号:xxxxxx
推荐度:
点击下载文档文档为doc格式
0jdsi4cdal8xswm2y1ep
领取福利

微信扫码领取福利

微信扫码分享