资源描述:
《基于单片机的超声波测距仪的设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、湖南人文科技学院毕业论文学科分类号:___________湖南人文科技学院本科生毕业设计题目:超声波测距器的设计学生姓名:学号系部:通信与控制工程系专业年级:电信08级2班指导教师:职称:副教授湖南人文科技学院教务处制湖南人文科技学院毕业论文摘要本设计是以单片机技术为基础,实现的对前方物体距离测量。使用超生波传感器对前方物体进行感应,经过单片机中的程序对超声波传感器发射和接收的超声波信号进行分析和计算处理,最后将处理结果在LED数码管上显示。本设计使用的STC89C52单片机的超声波测距系统,是根据超声波在空气中传播反射原理,把超声波传感器作为接口部件,利用超声波
2、在空气中传播的时间差来测量距离,设计了一套超声波检测系统。该系统主要分为主控制器模块、超声波发射模块、超声波接收模块和显示模块等四个基本模块构成,用接收部分接收超声波。本设计利用两个中断,在发射信号时,打开定时器中断0和外部中断0使定时器计时,接收到发射超声波信号时,外部中断0关闭中断,这时定时器中断0计录的时间就为超声波传播经过测距仪到前方物体的来回时间。利用公式S=T×V/2(V为超生波传播速度,本设计设定值340m/s),单片机把处理的距离值S并且通过八段LED显示出来。关键词:超声波;测距;单片机湖南人文科技学院毕业论文AbstractThedesigni
3、sbasedonmicroprocessortechnologytoachievetherightmeasurementofthefrontobjectdistance.transmissiondistanceisfarinmedium.useofultrasoundsensorsonthefrontinductionobjects,SCMlogicanalysisandcalculatethroughtheproceduresofultrasonicsensorstransmittingandreceivingultrasonicsignals,Finally,
4、afterprocessingthedataisinthedigitalLEDtube.UltrasonicRangingSystemBasedonAT89C51,Theultrasonicsystembasedontheair-bornereflectionprinciple,ultrasonicsensorsareinterfacecomponents,usedthetimegapultrasonicwavetransmitintheairtomeasuredistancewithapplicationofSCMtechnology,beabletodesig
5、nasetofultrasonicdetectionsystem.acontrollermoduledesign,ultrasonictransmittermoduledesign,ultrasonicreceiveranddisplaymodule4moduleisThesystemdesignwork.Paperspresentedthedesignthroughultrasonicsensor(non-contactmeasurement)measurementultrasonicsensorsarefatRadioemissionofultrasonic,
6、withsomereceivingultrasonicreceiver.Theuseoftwodesigninterruptionwhenthesignalislaunchedopentimerandexternalinterrupt0sothatthetimerinterruptiontime,Whenreceivingultrasonicsignalstothelaunch,theexternalinterrupt0closedinterruptionAtthistimethetimerinterrupt0Totalrecordedthetimeistheul
7、trasonicwavetransmissionjourneybetweentheultrasonictelemeterandthefrontobjects.UseformulaS=T×V(Vistheultrasonicwave’svelocity,Thedesignsettings340m/s)microprocessordisposethedistancevaluedisplayedontheLED.Keywords:singlechipmicrocomputer;ultrasoundsensor湖南人文科技学院毕业论文目录第一章绪论IV1.1课题设计目的及
8、意义IV1