您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 其它相关文档 > 基于单片机的液位控制系统(本科毕业设计)
徐州工程学院毕业设计(论文)I摘要二十一世纪是高科技时代,科技正在发展,一些传统的测控方式也会随着科技的发展而改革更新。现代的工业、农业的生产中不仅要求液位控制系统更精准,更稳定,还要求其更新自动化程度快和性价比高。基于单片机的液位控制系统具有测量精准度高、性能稳定可靠、能量消耗低而使用寿命较长的特点,将科学与液位测量相结合,而达到合理调配资源,降低能源消耗的目的。超声波能在不同媒质中传播,且方向性强,传播距离远,消耗能量缓慢,碰到障碍物会产生反射,形成反射回波。所以超声波常常被用于测量距离。本设计采用超声波模块测量液面的高度,并把数据传送给AT89C51单片机。单片机处理数据信息后判断是否开启水泵抽水来实现水位的基本控制功能。本系统由LCD1602显示器、键盘、传感器、电源和水泵组成。关键词:单片机;超声波;LCD1602;传感器徐州工程学院毕业设计(论文)IIAbstract21stcenturyistheeraofhightechnology,technologyisbeingdeveloped,someofthetraditionalmeasureswillbeupdatedwiththedevelopmentandreformofscienceandtechnology.Modernindustryandagriculturerequiresnotonlyamoreintuitionandstableperformance,butalsofastupdateautomationandhighcost-effectivewiththecostinreducingproductionequipmentrequirements.Liquidlevelcontrolsystembasedonmicrocontrollerwithitshighcontrolaccuracy,reliableperformance,lowenergyconsumptionandlongworkinglifesettobeappliedtotheliquidlevelsystemcharacteristicsofthecontrol.Combinesciencewithliquidlevelmeasurementtoachieveareasonableallocationofresourcesandreducethepurposeofenergyconsumption.Ultrasonicpropagationindifferentmedia,andstrongdirection,transmissiondistance,slowenergy,obstacleswillproducereflectiontoformecho.Ultrasoundisoftenusedtomeasuredistance.Thisdesignusesultrasonictomeasuretheheightofliquidlevel,thensentthedatatoAT89C51microcontroller.Microcontrollerdetermineswhethertoopenthepumpafterprocessingthedatafromultrasonicwavedistancemeasurementmoduletoachievethebasiclevelcontrol.ThesystemconsistsofLCD1602monitor,keyboard,sensors,powersupplyandwaterpump.Keywords:AT89C51UltrasonicwaveLCD1602sensor徐州工程学院毕业设计(论文)I目录1绪论.............................................................................................................................................11.1选题的背景和意义...............................................................................................................11.2国内外发展形势...................................................................................................................11.3本系统主要完成的任务.......................................................................................................22系统硬件设计.............................................................................................................................32.1系统硬件结构......................................................................................................................32.2AT89C51单片机模块...........................................................................................................32.3超声波测距模块..................................................................................................................52.3.1超声波简介....................................................................................................................52.3.2HC-SR04超声波传感器................................................................................................62.3.3HC-SR04超声波传感器测距原理................................................................................72.3.4HC-SRO4超声波模块电路图........................................................................................82.4LCD1602显示模块...............................................................................................................82.4.1LCD1602显示器介绍....................................................................................................82.4.21602LCD指令说明及其时序......................................................................................102.5电源模块............................................................................................................................112.6按键模块............................................................................................................................112.7报警模块............................................................................................................................122.8抽水系统模块....................................................................................................................132.9整体电路图........................................................................................................................133系统软件设计...........................................................................................................................173.1系统工作原理....................................................................................................................173.2主程序流程图....................................................................................................................173.3超声波测距模块设计........................................................................................................183.3按键模块设计....................................................................................................................203.4报警模块设计.....................................................................................................................204软件制作与调试.......................................................................................................................224.1软件制作........................................
本文标题:基于单片机的液位控制系统(本科毕业设计)
链接地址:https://www.777doc.com/doc-2536009 .html