基于-单片机的液位控制系统设计.doc
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《基于-单片机的液位控制系统设计.doc》由会员分享,可在线阅读,更多相关《基于-单片机的液位控制系统设计.doc(64页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、|基于单片机的液位控制系统的设计摘 要液位测量广泛应用于工业、经济、生活等领域。本设计以水箱供水为模型,用于对水箱液位信号进行测量监控记录。基于单片机的液位测量装置具有测量准确、重复性好、功耗低、使用寿命长的特点,是广泛采用的技术。在深入学习科学发展观的同时,电子设备的设计也需融入可持续发展的设计理念。故此,在基于单片机的液位测量装置基础上,扩展实时监控、数据采集、计算机串行通信等功能,从而能够通过科学的方法将液位测量与统计科学结合,合理调度水资源,降低能源消耗。本文从系统方案选择与论证,硬件电路设计,系统软件与上位机软件设计等几个方面介绍了基于单片机的液位测量监控系统的设计过程,最终实现了液
2、位的实时测量与监控。最后,本文总结了设计过程中出现的问题及解决方法,简要叙述了所获数据的处理方法,引出了进一步设计开发的思路。关键词:单片机;液位测量;实时监控;串口通信|The Design of Liquid Level Control System Based on MCUAbstractThe liquid level measurement is widely used in industry, economy, life and other fields. This design take the water tank water supply as a model, uses i
3、n carries on the survey to the water tank fluid position signal to monitor the record. The liquid level measurement device base on MCU is widely used because of many characteristics such as high measurement accuracy, good repeatability, low power consumption and long useful time. When we study Scien
4、tific Outlook on Development thoroughly, the design of electronic aid should include the thought of sustainable development. So, beyond the liquid level measurement device based on MCU, expand the functions of real-time monitoring, data acquisition, serial communication. Through the new functions, t
5、he scientific method of the liquid level measurement could be combined with Statistical Science, be used to manage the water resources reasonable, reduce energy consumption.This thesis introduces the design process of the liquid level control system by several parts as system schema, the design of h
6、ardware circuit, the software of host computer and system software, ultimately achieved the level of real-time measurement and monitoring. Finally, the paper summarizes the problems and solutions of the design process, describes briefly the method of data processing, and leads to ideas of the furthe
7、r design and development.Keywords:MCU;Liquid Level Measurement;Real-time monitoring;Serial Communication|目 录引言 .1第 1 章 绪论 .21.1 课题背景与研究意义 .21.2 国内外研究现状及发展 .21.3 本课题主要研究内容 .3第 2 章 系统总体方案 .42.1 系统设计要求 .42.2 系统框图 .42.3 硬件设计方案 .42.3.1 主控模块设计方案 .52.3.2 键盘模块设计方案 .52.3.3 显示模块设计方案 .62.3.4 数据存储模块设计方案 .62.3.5
8、 时间模块设计方案 .72.3.6 A/D 转换模块设计方案 .82.3.7 通信模块设计方案 .92.3.8 电机控制模块设计方案 .10第 3 章 硬件电路设计 .113.1 AT89S52 硬件设计 .113.2 按键设计 .133.3 显示单元硬件设计 .143.4 存储单元硬件设计 .153.5 时间单元硬件设计 .173.6 A/D 转换单元硬件设计 .183.7 通信单元硬件设计 .193.8 其他外围电路的设计 .20第 4 章 系统软件设计 .224.1 系统软件 .224.1.1 系统软件编译开发环境 .224.1.2 系统主程序流程图 .224.1.3 系统初始化 .22
9、4.1.4 显示与 A/D 转换的数据处理 .244.1.5 按键部分软件设计 .254.1.6 显示模块的软件设计 .264.1.7 A/D 转换模块软件设计 .264.1.8 电机控制模块软件设计 .264.1.9 通信协议及通信模块软件设计 .274.1.10 时间模块软件设计 .294.2 上位机软件设计 .304.2.1 上位机软件开发编译环境 .30|4.2.2 上位机软件的界面设计 .314.2.3 上位机串口通信功能的实现 .324.2.4 上位机软件中的数据处理 .34结论与展望 .35致谢 .37参考文献 .38附录 A 系统电路原理图 .39附录 B 外文文献及译文 .4
10、0附录 C 主要参考文献的题录及摘要 .49附录 D 系统软件源代码 .52|插图清单图 2-1 系统总体框图 1图 3-1 AT89S52 引脚及网络标号 11图 3-2 复位电路及时钟电路13图 3-3 系统按键电路14图 3-4 74LS273 及 74LS47 引脚图 14图 3-5 显示部分电路图15图 3-6 62256 引脚图 16图 3-7 存储的单元电路16图 3-8 DS1302 引脚图17图 3-9 时间单元电路17图 3-10 ADC0804 引脚图18图 3-11 A/D 转换单元电路图19图 3-12 MAX485 引脚图 19图 3-13 串行通信模块电路图 20
11、图 3-14 继电器部分电路图 20图 3-15 电源指示灯电路图 21图 4-1 主程序流程图23图 4-2 键盘程序流程图25图 4-3 液位检测流程图27图 4-4 通信检测流程图28图 4-5 上位机软件界面效果图33图 4-6 水箱液位控制结构图33图 5-1 MATLAB 绘制图形36|表格清单表 3-1 端口引脚第二功能12表 4-1 初始化参数及含义22表 4-2 A/D 转换幅值数据关系对照表 24表 4-3 通信协议28表 4-4 RS 状态标志及含义 29表 4-5 界面功能描述31|引 言上世纪 40 年代,电子计算机的诞生,标志着人类电子技术进入了一个新的阶段。197
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 控制系统 设计
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内