资源描述:
《基于单片机超声波测距仪的设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于单片机超声波测距仪的设计摘要:电子测距仪要求测量范围在0.10~5.00m,测量精度1cm,测量时与被测物体无直接接触,能够清晰稳定地显示测量结果。由于超声波指向性强,能量消耗缓慢,在介质中传播的距离较远,因而超声波经常用于距离的测量,如测距仪和物位测量仪等都可以通过超声波来实现。超声波测距器,可以应用于汽车倒车、建筑施工工地以及一些工业现场的位置监控,也可用于液位、井深、管道长度的测量等场合。利用超声波检测往往比较迅速、方便、计算简单、易于做到实时控制,并且在测量精度方面能达到工业实用的要求,因此在移动机器
2、人的研制上也得到了广泛的应用。该测距仪采用NE555电路、两级放大电路和电平比较电路实现了超声波的发射与接收。单片机为该测距仪的核心单元,实现发射电路的控制和接收数据的处理。本系统在10~200cm的距离内测量精度可达±0.5cm,并且易于调试,成本低廉,具有很强的实用价值和良好的市场前景。关键字:超声波传感器,测距仪,PIC16F876AAbstract:UltrasonicRanging,canbeusedincarreversing,theconstructionsiteandthelocationofso
3、meindustrialsitemonitoring,canalsobeusedifthelevel,depthandlengthofthepipeline,suchasmeasurementoccasions.Measurementoftherequirementsinthe0.10-5.00m,precision1cm,withthemeasurementofdetectedobjectswithoutdirectcontact,beingabletoclearlyshowstablemeasurementr
4、esults.Becauseofthestrongpointofultrasonicenergyconsumptionslow,mediumofcommunicationinthelongerdistance,thusfrequentlyusedultrasonicdistancemeasurement,suchastherangefinderandlevelmeasurementandsooncanbeachievedbyultrasound.Useofultrasonictestingisoftenmorer
5、apid,convenientandsimpleterms,easytoachievereal-timecontrol,andmeasurementaccuracycanmeetthepracticalrequirementsofindustry,inthemobilerobothasbeendevelopedonawiderangeofapplications.1TherangefinderonlyNE555circuit,twoamplifiercircuitandthelevelachievedacompa
6、risonoflaunchingandreceivingultrasound.SCMrangefinderforthecoreelementsforlaunchingthecircuitcontrolandreceivedataprocessing.10-200cminthesystemofdistancemeasurementaccuracyupto±0.5cm,andeasytodebug,low-cost,withstrongpracticalvalueandgoodmarketprospects.Keyw
7、ords:Ultrasonicsensors,rangefinder,PIC16F876A2目录一、系统方案比较与选择............................................................................................4方案一:利用分立模块的超声波测距仪.............................................................4方案二:基于PIC16F876A单片机的超声波测距仪..
8、.........................................4二、理论分析与计算....................................................................................................61、测量与控制方法..........................