基于单片机的液位控制系统设计与实现

 2022-11-29 11:11

论文总字数:14153字

摘 要

论文主要设计了一种采纳STC89C52芯片为控制器的液面控制器。系统工作时通过按键设置液位阈值,利用压力传感器实时监测当前液位信息,采集到的液位信息经过模数转换模块后发送给MCU,并将液位值显示在LCD液晶显示屏上,与系统设计阈值相比,如液位超出警戒范围,则声光报警,同时启动排水泵;如低于设定阈值则报警,同时MCU启动进水泵进行抽水至上限水位。该系统可手动控制亦可自动控制,能实现液位测量、预警、控制等功能。该设计由易于液面控制的单芯片微计算机控制,具备低成本,易于调试,部件出错时不影响其他部件的工作,便于维修等优点。

这系统是基于单芯片微计算机液面操控系统,以完成水位控制。主要功能有水位高低控制、按键操控过程、显示功能模块、系统出错警报。压力传感器用于勘测水位高低,三个控制键来实现按键控制,LCD1602用于完成显示单元,这些信号经过模数转换发送到MCU,与将这些信号设定为MCU的值相比,判别MCU能否需求进行对应的动作,即能否为了完成液面电平的控制而启动补水泵,完成液面的自主控制的目标。


关键词: STC89C52 单片机;模数转换;水位控制;自动控制

Design and Implementation of Handling Robot Based on Single Chip Microcomputer

Abstract

This paper mainly designs a kind of liquid level controller, which takes STC89C52 as the controller.This system consists of a detection module, a key setting module and a display module. When the system operates, the threshold value of the liquid level is set by the key, and the actual liquid level is detected by the pressure sensor in real time, and the liquid level is displayed on the LCD 1602. The liquid level information is sent to the MCU after the analog-to-digital conversion relative to the design threshold of the system, and if the liquid level exceeds the warning range, a sound write alarm is provided and the drain pump is lower than the set threshold at which the drain pump is simultaneously activated Given an alarm, the MCU starts pumping pumps pumping water to the upper limit. The system can be controlled manually or automatically, and functions of liquid level measurement, early warning and control can be realized. This design uses a single chip microcomputer as a control core with advantages such as low cost, easy debug and easy maintenance. Easy to maintain.

The system completes water control based on one chip microcomputer level control. It mainly includes water level detection, key control, water level control, display modules, and system error alarms. Pressure sensors are used to investigate water levels. Key control is achieved using three control keys. LCD 1602 is used to complete the display unit. These signals are sent to the MCU through analog-to-digital conversion. As compared with the case in which these signals are set as the values of the MCU, it is possible to determine whether or not the MCU corresponds to the operation of the MCU, i.e., to complete the control of the level of the liquid level, to determine whether or not the make-up pump can be started.

Key words: STC89C52 single chip microcomputer;Analog digital conversion; Water level control; Automatic control

目 录

摘 要 I

Abstract II

第一章 引 言 1

1.1 课题研究的背景和意义 1

1.2 国内外研究现状 2

1.3 液位控制系统的发展与未来 2

1.4 课题任务的要求 3

第二章 系统总体设计介绍 3

2.1 总系统设计框图 3

2.2系统总体组成概述 4

2.3系统硬件电路的抉择 4

2.4系统总体软件构造的设计 10

第三章 系统电路设计 11

3.1最小系统电路设计 11

3.2 1602显示电路设计 12

3.3 压力传感器采集电路设计 12

3.4电磁继电器电路设计.............................................................................................................................12

3.5蜂鸣器电路设计.......................................................................................................................................13

第四章 系统软件设计 13

4.1 传感器程序以及主程序的编写设计 13

4.2 软件设计流程图 14

第五章 系统测试 15

5.1 AD部分调试参数................................................................................................................................15

5.2 性能验证及现象..................................................................................................................................16

5.3 调试总结.............................................................................................................................................19

结束语.................................................................................................................................................................20

致 谢 21

参考文献 22

第一章 引 言

剩余内容已隐藏,请支付后下载全文,论文总字数:14153字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;