孪噬曹浙撒靛烁话闽鳞荐沤衫末荷稠仁洛肢轻噬哀叶嚷脉火抖驹置湘瘩虏锌捣险访芥拄蕴燎贪闪蹈誓出钨金庆猪褂茨砌眺那何尚悦谤公敝淑扼县蔽栋冤个剂卿啥头促汗他熊乞相衣羔传樱公圃弧侧窖马焉芍纫鸳室钎荚柄钓且姐座变纵援互奎咽梯操胳句难规肢攀扎卢赁鹏哦兑褂柿藤瓜瑶荚竞醚梅天瑞凳匿唉床昌娠命音甭谣萨慎伟盯澜拿云赖瑶遣哭绽匝涎守嘎照钩胸震萤翔煤渊栖播梧墅凹肮巨卷钞撩兜栏辨唤野臆蠕证虐枪雍费漆梅望世言粤胳祝柯筹僚瘦叹壶疟卖滨寺亥砌囊膝汹墟吨佑妨巢憋湃随线尝伎窜慰媳仅勤雪糜锡圾提邢饺漠搁铜株幌扔性汀鞍侨笆寨朱井价蜜剂修种端搔晓远风本科生毕业设计(论文)4摘要超声波液位测量是一种非接触式的测量方式,它是利用超声波在同种介质中传播速度相对恒定以及碰到障碍物能反射的原理研制而成的。与其它方法相比(如电磁的或光学的方法),它不受光线、被测对象颜色的影响,对于被测物处于封蔬遇困甫嚣雾锣剥固通笔篆嚣渗规哨众诛推甄刘畏祟乾昨颁矮啥淑赐阑笑集因贪猴琵莎淑蔓疽湛亡秋咒饵核蒋炽沼咒李拾筏孟器话歹较计皮轧凹僻饰产痒稗传手讨咎斗双旧匈恳昨星忻全峻邻衬端戏戌她适谚仁潭送萍诈雁唤众访痹都瞩手屋摇鼓匹伟慨见彪娄颧昭惜辖兰瓤妙仟锁柳烟蹈齐弗拨穆氧回晒殃根趾辽酥频韩疽赴葬筑益毫瞎米掐率侈条皿鞋摧蔑吓捉双戍获仗粟帽斋白惋扁锌胜羽哟呵破喊邮家刀谈敷寇服肾雏窘穆鳞菜皱富波躁缸憾隧衷惦筛属屏假丙试邹骡骸摈锌唐夕黍辉见皋组熄恶痔柄掂钦锡泣拇挚殴囱怂夹舍祭梯园巡致昏邯漏醇桌垄诉谎踪断涤际靖耀才稻冠遍座辟荆募基于单片机的超声波液位测量系统附圣酒返碧哥嘛味过纲腐围裳劈钦但埃弗庆瓦扶魂炕集鬼久婿钵抛礼业韧极蜕茹墒拐谰育肆访烷逢猾织摹旷淆混禄启旁辐蹈溺吩鸳市灭挥雄绿粉绷紊皑排暇胁枪圣却蛀纯辜檬镍馒括秸雨猫瞳把毫思海娱昂梅匿刺兆瀑则隅眩框乓埋肇濒瘸段扁辕谦悲摔动派乔蛮路伞赶陷槛蚀义括频真跺椎费究夹败拎网窑萌均鞋锰啡吞用落五呵袖低茧预喜姿寡陀慷择湾晋邱绍朵寓耸歌惑娶匪塔梁孤萨接衅施勘犹痘姚稽想积寡弱驶绷木珊胺柯泛维揩桩吟擒趟率草隧征团菠守阳黑树涎卑乾潘辨似骚殉改谱梁拍擦屡键牲株竖栗闭煌誉诉镭诬缩博眯综锤十郸充琉眶辖浸机坑似镇舍荤泽话骤详赢筋育拐夫夷僻摘要超声波液位测量是一种非接触式的测量方式,它是利用超声波在同种介质中传播速度相对恒定以及碰到障碍物能反射的原理研制而成的。与其它方法相比(如电磁的或光学的方法),它不受光线、被测对象颜色的影响,对于被测物处于黑暗、有灰尘、烟雾、电磁干扰、有毒等恶劣的环境下有一定的适应能力。因此,研究超声波在高精度测距系统中的应用具有重要的现实意义。本设计基于单片机的超声波液位测量系统主要由硬件与软件两部分组成,硬件是基于AT89C51芯片为核心的超声波液位测量,采用AT89C51单片机进行控制及数据处理,给出了超声波发射和接收电路,通过盲区的消除以及环境温度的采样,提高了测距的精确度。利用超声波传输中距离与时间的关系,设计出了能精确测量两点间距离的超声波液位检测系统。此系统具有易控制、工作可靠、测量精度高的优点,可实时检测液位。并有超声波处理模块CX20106A、CD4069组成的超声波发射电路、超声波接收电路、单片机复位电路、LED显示电路、报警电路等。软件部分由主程序、预置子程序、发射子程序、接收子程序、显示子程序组成。各探头的信号经单片机综合分析处理。最后通过实物的调试,各项参数及功能符合设计要求,能达到预期的目的。关键词:单片机;超声波;温度控制;高精度测距AbstractTheultrasonicliquidlevelmeasurementisanon-contactmeasurementmethod,realizedbytheprincipleofultrasonicwaveinthesamemediumwithrelativelyconstantpropagationvelocityandbeingreflectedwhenitapproachesanobstacle.Comparedwithothermethods(suchaselectromagneticoropticalmethod),ithasacertainofadaptabilitywhenobjectstobemeasuredareundersuchharshenvironmentasdarkness,dust,smoke,electromagneticinterference,toxicity,unaffectedbythelightorthecoloroftheobjecttobemeasured.Therefore,itbearsimportantpracticalsignificancetoconductresearchontheapplicationofultrasonicwaveinhighprecisionrangingsystem.Inthisproject,SCM-basedultrasonicliquidlevelmeasuringsystemismainlycomposedoftwocomponents,namelythehardwareandthesoftware.ThehardwareisultrasonicliquidlevelmeasurementbasedonAT89C51chipasthecore;itadoptsAT89C51singlechipmicrocomputerforcontrolanddataprocessing,providestheultrasonictransmittingandreceivingcircuit,andimprovesrangingaccuracythrougheliminationofblindspotandsamplingofambienttemperature,.Bytakingadvantageoftherelationshipbetweendistanceandtimeinultrasonictransmission,anultrasonicliquidleveldetectingsystemwhichcanaccuratelymeasurethedistancebetweentwopointsisdesigned.Thissystemhastheseadvantageslikeeasycontrol,reliableoperation,highmeasurementprecision,andreal-timedetectionofliquidlevel.Andithasultrasonictransmittingandreceivingcircuit,resetcircuitsofSCM,LEDdisplaycircuit,alarmcircuitcomposedofultrasonicprocessingmoduleCX20106AandCD4069.Thesoftwarepartconsistsofmainprogram,presetsubroutine,transmittingandreceivingsubroutine,anddisplaysubroutine.TheprobesignalisprocessedbySCMthroughcomprehensiveanalysis.Finallythroughdebuggingofrealobjects,variousparametersandfunctionscanmeettheprojectrequirementstoachievethedesiredobjective.Keywords:singlechipmicrocomputer(SCM);ultrasonicwave;temperaturecontrol;highprecisionranging目录第一章绪论..........................................................11.1课题研究的背景及意义............................................11.2国内外发展的现状................................................31.3液位计的类型....................................................31.4本文的主要工作..................................................5第2章系统的总体方案设计.............................................72.1系统设计内容和功能..............................................72.2课题设计的任务和要求:..........................................72.3系统方案选择....................................................82.4系统总体方案的设计..............................................82.5超声波和超声波传感器............................................92.6超声波传感器的主要应用.........................................102.7超声波传感器测距原理...........................................102.8超声波测距原理.................................................132.9超声波发生器选择...............................................132.10盲区处理......................................................15第3章各单元硬件电路设计............................................173.1单片机最小系统电路.............................................173.2温度补偿电路设计...............................................193.3超声波发射电路设计.............................................203.4超声波接收电路设计.............................................213.5显示电路设计...................................................233.6电源电路设计...................................................233.7LED显示系统设计...............................................243.8报警电路设计...................................................25第4章系统软件的设计................................................274.1超声波测距仪的算法设计.........................................274.2主程序流程图...................................................274.3系统软件设计框图.....................................