基于单片机的水塔水位控制系统设计及仿真要点

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

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

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

资源描述

佳木斯大学毕业论文基于单片机的水塔水位控制系统设计及仿真学院信息电子技术专业通信工程班级12级2班学籍号12100640108姓名李方鹏指导教师周经国佳木斯大学2016年6月10日佳木斯大学学士学位论文佳木斯大学信息电子技术学学院ii摘要随着社会的进步,生产工艺和生产技术的发展,人们对液位检测提出了更高的要求。由于新型电子技术、微电子技术和微型计算机被广泛的应用,单片机控制系统以其控制精度高,性能稳定可靠,设置操作方便,造价低等诸多特点,被应用到液位系统的控制中来。单片微机在许多过程控制设备和产品中都得到广泛的应用。由于其体积小,价格低,具有逻辑判断、定时计数、程序控制等多种功能,在各个领域、各个行业都得到了广泛应用。本文介绍了以LM型液位传感器,A/D转换芯片ADC0809,以及AT89C51单片机作为主控元件的液位检测系统的设计方法。通过软件和硬件的联合调试,实现了在一定范围内对水位的调节,动态显示出水位结果,实现报警,完全实现了任务书上的要求。关键词:液位检测;A/D转换;LM型液位传感器;超限报警佳木斯大学学士学位论文佳木斯大学信息电子技术学学院iiiiAbstractAssocietyadvances,thedevelopmentofproductionprocessesandproductiontechnologies,thedetectionofthelevelcontrolsystemhaveahigherdemand.Newelectronictechnologyofmicroelectronicstechnologyandminiaturecomputersiswidelyused.Singlechipcontrolsystemtosetupoperationswithhighcontrolaccuracy,reliableperformance,convenient,lowcost,isappliedtothelevelcontral.ThisarticledescribestheLM-typeliquidlevelsensorandA/DconversionchipADC0809,andAT89C51microcontrollerasthemaincontrolcomponentoftheliquidleveldetectionsystemdesignmethods.Thisarticlerespectivelyfromtheliquidleveldetection,A/Dconverter,Digitaldisplay,Limitalarmandseveralaspectsofthehardwarecircuithaveconductamoredetaileddescription.ThentheA/Dconversionprocess,Digitaltubedisplayprogram,Limitalarmprocedureshaveafairlydetailed,andusingaflowchartforfurtherexplanation.Throughjointdebuggingofsoftwareandhardware,Thebasicrealizationoftheregulationonthelevelwithinacertainrangeofliquidlevelregulation,Dynamicallyshowsthelevelresults,Achievealarm,EntirelyAchievetherequirementsofthemissionstatement.Keywords:theliquidleveldetection,A/Dconverter,lm-typeliquidlevelsensor,limitalarm佳木斯大学学士学位论文佳木斯大学信息电子技术学学院I目录摘要.........................................................................................................................iAbstract......................................................................................................ii第1章绪论..............................................................................................................11.1液位检测系统的概况...........................................................................11.2国内外研究动态...................................................................................11.3本次毕业设计的意义...................................................................................21.4本次毕业设计的任务....................................................................................2第2章硬件电路设计............................................................................................42.1硬件电路工作原...............................................................................................42.2硬件电路设计....................................................................................................42.2.1系统总体设计框图................................................................................42.2.2核心芯片的介绍.................................................................................52.3硬件电路各模块设..............................................................................102.3.1电源电路设计................................................................................102.3.2单片机最小系统电路设计...................................................................102.3.3显示电路设计................................................................................112.3.4液位传感器的接口电路设计................................................................132.3.5AT89C51与ADC0809的接口电路设计............................................132.3.6报警电路设计......................................................................................152.4硬件电路总结....................................................................................15第3章软件设计.........................................................................................173.1AT89C51的I/O口应用......................................................................173.1.1P0口的信号输入.................................................................................173.1.2P1口的信号输入.................................................................................173.1.3P2口的信号输入..................................................................................173.1.4P3口的信号输入...................................................................................183.2软件模块设计......................................................................................193.2.1主程序的设计..................................................................................193.2.2A/D转换的设计..............................................................................203.2.3显示子程序的设计...........................................................................213.2.4报警子程序的设计...........................................................................243.3软件设计总结.....................................................................................25第4章联机调试.....................................................................................264.1仿真电路调试.....................................................................................264.2硬件电路调试............................................................................

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

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

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

×
保存成功