毕业设计题目:基于51单片机的超声波倒车雷达测距学院:电气与信息工程学院专业:电气工程及其自动化姓名:学号:指导老师:完成时间:河南城建学院本科毕业设计(论文)摘要I摘要超声波是频率高于20KHZ的声波,具有指向性强,能量消耗缓慢,在介质中传播的距离较远的特点,因而超声波经常用于距离的测量,如测距仪和物位测量仪等都可以通过超声波来实现。利用超声波检测往往比较迅速、方便、计算简单、易于做到实时控制,并且在测量精度方面能达到工业实用的要求,因此在液位、井深、管道长度的测量、移动机器人定位和避障等领域得到了广泛的应用。基于此,本次设计尝试使用AT89S52与HY-SRF05模块来实现超声波的测量,结合外围电路模块实现距离显示及语音播报构成超声波测距系统。本次超声波测距系统由单片机计时及控制电路、超声波发射接收模块、测量距离显示电路、语音电路等部分组成。详细介绍了超声波测距模块及AT89S52单片机的测距原理。以HY-SRF05超声波测距模块为核心实现超声波的发射与接收。整体电路结构简单,成本低廉,工作稳定,测量精度也达到实际应用要求。关键词:AT89S52;超声波;HY-SRF05;测距河南城建学院本科毕业设计(论文)AbstractIIAbstractUltrasoundissoundwaveswithfrequencyhigherthan20KHz,ithasstrongdirectivityandconsumesenergyslowly,atthesametimeitspreadsfartherinthesamemedium.Thereforeultrasoundisoftenusedfordistancemeasurement,suchastherangefinderandlevelmeasurementandsooncanbeachievedbyit.Useofultrasonicdetectiontendstobequickly,convenientandsimplecalculation,easytodoreal-timecontrol.Inthemeasurementprecisionitcanreachindustrypracticalrequirement.Soinliquidlevel,welldepth,pipelengthmeasurement,mobilerobotlocalizationandobstacleavoidance,etcawiderangeofapplications.Thisultrasonicdistancemeasurementsystembysingle-chiptiminganddisplaycircuitofthecontrolcircuits,ultrasoundmodules,measuringdistances,voicecircuitsandothercomponents.DetailstheultrasonicrangefinderandAT89S52microcontrollermodulelocation.CorerealizationofultrasonicHY-SRF05ultrasonicdistancemeasurementmodulesfortransmitandreceive.Awholecircuitofsimplestructure,lowcost,stable,measurementprecisiontoreachtheactualapplicationrequirements.Keywords:AT89S52;Ultrasonicwave;HY-SRF05;Measuredistance河南城建学院本科毕业设计(论文)目录III目录摘要...............................................................................................................................IAbstract.............................................................................................................................II第1章绪论...................................................................................................................11.1课题研究的背景.............................................................................................11.2国内外研究现状.............................................................................................11.3课题研究的意义.............................................................................................2第2章超声波测距原理...............................................................................................42.1超声波简介.....................................................................................................42.2超声波测距原理.............................................................................................4第3章方案论证...........................................................................................................63.1设计思路.........................................................................................................63.2系统结构设计.................................................................................................7第4章硬件电路设计...................................................................................................84.1单片机AT89S52.............................................................................................84.2超声波测距模块HY-SRF05........................................................................104.2.1基本工作原理.....................................................................................114.2.2HY-SRF05电气参数..........................................................................114.2.3超声波时序图....................................................................................124.2.4超声波应用电路图............................................................................124.3温度传感器DS18B20..................................................................................134.4LCD1602液晶..............................................................................................144.4.1LCD1602主要技术参数...................................................................144.4.2LCD1602引脚功能...........................................................................144.4.3LCD1602应用电路图.......................................................................154.5ISD1420语音芯片........................................................................................164.5.1特点....................................................................................................164.5.2电特性................................................................................................164.5.3ISD1420引脚功能.............................................................................164.5.4ISD1420语音电路.............................................................................17第5章系统软件设计.................................................................................................19河南城建学院本科毕业设计(论文)目录IV5.1主程序...........................................................................................................195.2超声波测距子程序.......................................................................................205.3测温子程序.....................................