存档日期:存档编号:本科生毕业设计(论文)论文题目:基于单片机的超声波测距仪姓名:学号:108321015系别:机电工程系班级:机制专业:机械设计制造及其自动化指导教师:江苏师范大学科文学院教务处印制江苏师范大学科文学院毕业设计(论文)任务书专业机械设计制造及其自动化班级12机制Z姓名一、设计题目:基于单片机的超声波测距仪二、设计任务要求及主要原始资料:1、设计制作超声波测距仪模型;2、编写调试程序;3、完成实物及程序的调试并使其正确的运行;4、编写毕业设计说明书;5、修改毕业设计说明书;6、准备答辩。三、设计时间:2014年3月14日至2014年6月3日指导教师:(签名)教学院长:(签名)I摘要随着科技的发展、自动化程度的提高以及电子产品的普及,电子测距产品也走进了人们的视野。相对于普通的测量工具,它具有数字式显示、测距精准以及可智能化控制等优点。本系统是利用STC89C52单片机和超声波测距模块进行设计制作的智能化测距仪,主要实现距离的检测、数字式显示,以及超限报警等功能。基于单片机的超声波测距仪是以单片机为控制核心,通过超声波测距模块对被测物体发射超声波,利用超声波在空气中的传播速度和发射到接收到超声波所用时间计算得到距离。测距原理简单、容易实现,并且在生产生活中可以得到广泛使用和推广,具有实际性意义。关键词:单片机STC89C52,超声波传感器,基于单片机的超声波测距仪。IIUltrasonicrangingAbstract:Withthedevelopmentofscienceandtechnology,theimprovementofautomationandthepopularityofelectronicproducts,electronicproductrangealsowentintopeople'shorizons.Comparedwiththecommonmeasuringtool,ithasadigitaldisplay,rangingprecisionandintelligentcontrol,etc.ThissystemisusingSTC89C52MCUandultrasonicrangingmoduletodesigntheintelligentrangefinder,mainlyrealizethedistancedetection,digitaldisplay,andtransfinitealarmandotherfunctions.Basedonsinglechipultrasonicrangefinderbasedonsinglechipmicrocomputerascontrolcore,theobjecttobemeasuredbytheultrasonicrangingmoduleoflaunchultrasonicwave,usingtheultrasonicvelocityinairandlaunchtimetocalculatethedistanceusedtoreceivetheultrasonic.Rangingprincipleissimple,easytoimplement,andcanbewidelyusedinproductionandlifeandthepromotion,haspracticalsignificance.Keywords:microcontrollerSTC89C52,ultrasonicsensors,ultrasonicrangefinderbasedonsinglechip.目录摘要............................................................................IUltrasonicranging...............................................................II第一章绪论......................................................................11.1需求分析..................................................................11.2可行性分析................................................................2第二章单片机的概述...............................................................32.1单片机的含义及组成........................................................32.2单片机的发展..............................................................42.3单片机的特点..............................................................42.4单片机的应用..............................................................5第三章基于单片机的超声波测距仪总体设计方案.......................................63.1超声波测距仪的系统设计....................................................63.2主控制器..................................................................63.3显示电路..................................................................73.4超声波测距模块............................................................83.4.1HC-SR04超声波测距模块的特性........................................83.4...