基于单片机的液位控制系统设计-精品

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

安徽工程大学毕业设计(论文)I基于单片机的液位控制系统的设计摘要液位测量广泛应用于工业、经济、生活等领域。本设计以水箱供水为模型,用于对水箱液位信号进行测量监控记录。基于单片机的液位测量装置具有测量准确、重复性好、功耗低、使用寿命长的特点,是广泛采用的技术。在深入学习科学发展观的同时,电子设备的设计也需融入可持续发展的设计理念。故此,在基于单片机的液位测量装置基础上,扩展实时监控、数据采集、计算机串行通信等功能,从而能够通过科学的方法将液位测量与统计科学结合,合理调度水资源,降低能源消耗。本文从系统方案选择与论证,硬件电路设计,系统软件与上位机软件设计等几个方面介绍了基于单片机的液位测量监控系统的设计过程,最终实现了液位的实时测量与监控。最后,本文总结了设计过程中出现的问题及解决方法,简要叙述了所获数据的处理方法,引出了进一步设计开发的思路。关键词:单片机;液位测量;实时监控;串口通信金小龙:基于单片机的液位控制系统的设计IITheDesignofLiquidLevelControlSystemBasedonMCUAbstractTheliquidlevelmeasurementiswidelyusedinindustry,economy,lifeandotherfields.Thisdesigntakethewatertankwatersupplyasamodel,usesincarriesonthesurveytothewatertankfluidpositionsignaltomonitortherecord.TheliquidlevelmeasurementdevicebaseonMCUiswidelyusedbecauseofmanycharacteristicssuchashighmeasurementaccuracy,goodrepeatability,lowpowerconsumptionandlongusefultime.WhenwestudyScientificOutlookonDevelopmentthoroughly,thedesignofelectronicaidshouldincludethethoughtofsustainabledevelopment.So,beyondtheliquidlevelmeasurementdevicebasedonMCU,expandthefunctionsofreal-timemonitoring,dataacquisition,serialcommunication.Throughthenewfunctions,thescientificmethodoftheliquidlevelmeasurementcouldbecombinedwithStatisticalScience,beusedtomanagethewaterresourcesreasonable,reduceenergyconsumption.Thisthesisintroducesthedesignprocessoftheliquidlevelcontrolsystembyseveralpartsassystemschema,thedesignofhardwarecircuit,thesoftwareofhostcomputerandsystemsoftware,ultimatelyachievedthelevelofreal-timemeasurementandmonitoring.Finally,thepapersummarizestheproblemsandsolutionsofthedesignprocess,describesbrieflythemethodofdataprocessing,andleadstoideasofthefurtherdesignanddevelopment.Keywords:MCU;LiquidLevelMeasurement;Real-timemonitoring;SerialCommunication安徽工程大学毕业设计(论文)III目录引言.....................................................................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时间模块设计方案...............................................72.3.6A/D转换模块设计方案...........................................82.3.7通信模块设计方案...............................................92.3.8电机控制模块设计方案..........................................10第3章硬件电路设计....................................................113.1AT89S52硬件设计..................................................113.2按键设计..........................................................133.3显示单元硬件设计..................................................143.4存储单元硬件设计..................................................153.5时间单元硬件设计..................................................173.6A/D转换单元硬件设计..............................................183.7通信单元硬件设计..................................................193.8其他外围电路的设计................................................20第4章系统软件设计....................................................224.1系统软件..........................................................224.1.1系统软件编译开发环境..........................................224.1.2系统主程序流程图..............................................224.1.3系统初始化....................................................224.1.4显示与A/D转换的数据处理......................................244.1.5按键部分软件设计..............................................254.1.6显示模块的软件设计............................................264.1.7A/D转换模块软件设计..........................................264.1.8电机控制模块软件设计..........................................264.1.9通信协议及通信模块软件设计....................................274.1.10时间模块软件设计.............................................294.2上位机软件设计....................................................304.2.1上位机软件开发编译环境........................................30金小龙:基于单片机的液位控制系统的设计IV4.2.2上位机软件的界面设计..........................................314.2.3上位机串口通信功能的实现......................................324.2.4上位机软件中的数据处理........................................34结论与展望..............................................................35致谢....................................................................37参考文献................................................................38附录A系统电路原理图...................................................39附录B外文文献及译文...................................................40附录C主要参考文献的题录及摘要.........................................49附录D系统软件源代码...................................................52安徽工程大学毕业设计(论文)V插图清单图2-1系统总体框图………………………………………………………………………1图3-1AT89S52引脚及网络标号…………………………………………………………11图3-2复位电路及时钟电路………………………

1 / 63
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功