超声测距系统设计外文资料翻译
- 格式:doc
- 大小:44.50 KB
- 文档页数:9
摘要:超声测距系统技校在工业场车辆导航水声工程等领域都具有了广泛的应用价值,目前已应用于物理测量,机器人自动导航以及空气中与水下的目标探测、识别定位等场合,因此,深入研究超声的探测理论和方法具有重要的实践意义,为了进一步提高测量的精确度,满足工程人员对测量精度测距量程和测距仪使用的要求,本文研制了一套基于单片机的使拱式超声测距系统。
关键词:超声波测距仪单片机1、前言随着科技的发展,人们生活水平的提高,城市发展建设加快,城市给排水系统也有较大发展,其状况不断改善,但是,由于历史原因合成时间性的许多不可预见因素,城市给排水系统,特别是排水系统往往落后于城市建设,因此,经常出现开挖已经建设好的建筑设施来改造排水系统的现象。
城市污水给人们带来的困扰,因此箱的排污疏通对大城市给排水系统污水理,人们生活舒适显得非常重要。
而设计研制箱涵排水疏通移动机器人的自动控制系统,保证机器人在箱涵中自由排污疏通,是箱涵排水系统疏通机器人的设计研制的核心部分,控制系统核心部分就是超声波测仪的研制。
因此,设计好的超声波测距仪就显得非常重要了。
1.1课题背景随着经济的发展与汽车科学技术的进步,公路交通呈现出行驶高速化、车流密集化和驾驶员非职业化的趋势。
同时,随着汽车工业的飞速发展,汽车的产量和保有量都在急剧增加。
但公路发展、交通管理却相对落后,导致了交通事故与日剧增,城市里尤其突出。
智能交通系统ITS是目前世界上交通运输科学技术的前沿技术,它在充分发挥现有基础设施的潜力,提高运输效率,保障交通安全,缓解交通赌塞,改善城市环境等方面的卓越效能,已得到各国政府的广泛关注。
中国政府也高度重视智能交通系统的研究开发与推广应用。
汽车防撞系统作为ITS 发展的一个基础,它的成功与否对整个系统有着很大的作用。
从传统上说,汽车的安全可以分为两个主要研究方向:一是主动式安全技术,即防止事故的发生,该种方式是目前汽车安全研究的最终目的;二是被动式安全技术,即事故发生后的乘员保护。
超声测距系统设计原文出处:传感器文摘布拉福德:1993年第13页摘要:超声测距技术在工业现场、车辆导航、水声工程等领域都具有广泛的使用价值,目前已使用于物位测量、机器人自动导航以及空气中和水下的目标探测、识别、定位等场合。
因此,深入研究超声的测距理论和方法具有重要的实践意义。
为了进一步提高测距的精确度,满足工程人员对测量精度、测距量程和测距仪使用的要求,本文研制了一套基于单片机的便携式超声测距系统。
关键词:超声波,测距仪,单片机1、前言随着科技的发展,人们生活水平的提高,城市发展建设加快,城市给排水系统也有较大发展,其状况不断改善。
但是,由于历史原因合成时间住的许多不可预见因素,城市给排水系统,特别是排水系统往往落后于城市建设。
因此,经常出现开挖已经建设好的建筑设施来改造排水系统的现象。
城市污水给人们带来了困扰,因此箱涵的排污疏通对大城市给排水系统污水处理,人们生活舒适显得非常重要。
而设计研制箱涵排水疏通移动机器人的自动控制系统,保证机器人在箱涵中自由排污疏通,是箱涵排污疏通机器人的设计研制的核心部分。
控制系统核心部分就是超声波测距仪的研制。
因此,设计好的超声波测距仪就显得非常重要了。
2、超声波测距原理2.1压电式超声波发生器原理压电式超声波发生器实际上是利用压电晶体的谐振来工作的。
超声波发生器内部结构,它有两个压电晶片和一个共振板。
当它的两极外加脉冲信号,其频率等于压电晶片的固有振荡频率时,压电晶片将会发生共振,并带动共振板振动,便产生超声波。
反之,如果两电极间未外加电压,当共振板接收到超声波时,将压迫压电晶片作振动,将机械能转换为电信号,这时它就成为超声波接收器了。
测量脉冲到达时间的传统方法是以拥有固定参数的接收信号开端为基础的。
这个界限恰恰选于噪音水平之上,然而脉冲到达时间被定义为脉冲信号刚好超过界限的第一时刻。
一个物体的脉冲强度很大程度上取决于这个物体的自然属性尺寸还有它和传感器的距离。
毕业设计(论文)外文资料翻译系(院):电子与电气工程学院专业:电气工程及其自动化姓名:学号:外文出处:United States Patent 5442592(用外文写)附件: 1.外文资料翻译译文;2.外文原文。
指导教师评语:签名:(手写签名)年月日注:请将该封面与附件装订成册。
外文资料翻译译文超声波测距仪文件类型和数目:美国专利5442592摘要:提出了一种可以抵消温度的影响和湿度的变化的新型超声波测距仪,包括测量单元和参考资料。
在每一个单位,重复的一系列脉冲的产生,每有一个重复率,直接关系到各自之间的距离,发射机和接收机。
该脉冲序列提供给各自的计数器,计数器的产出的比率,是用来确定被测量的距离。
出版日期:1995年8月15日主审查员:罗保.伊恩j.一、背景发明本发明涉及到仪器的测量距离,最主要的是,这种仪器,其中两点之间传输超声波。
精密机床必须校准。
在过去,这已经利用机械设备来完成,如卡钳,微米尺等。
不过,使用这种装置并不利于本身的自动化技术发展。
据了解,两点之间的距离可以通过测量两点之间的行波传播时间的决定。
这样的一个波浪型是一种超声波,或声波。
当超声波在两点之间通过时,两点之间的距离可以由波的速度乘以测量得到的在分离的两点中波中转的时间。
因此,本发明提供仪器利用超声波来精确测量两点之间的距离对象。
当任意两点之间的介质是空气时,声音的速度取决于温度和空气的相对湿度。
因此,它是进一步的研究对象,本次的发明,提供的是独立于温度和湿度的变化的新型仪器。
二、综述发明这项距离测量仪器发明是根据上述的一些条件和额外的一些基础原则完成的,其中包括一个参考单位和测量单位。
参考和测量单位是相同的,每个包括一个超声波发射机和一个接收机。
间隔发射器和接收器的参考值是一个固定的参考距离,而间距之间的发射机和接收机的测量单位是有最小距离来衡量的。
在每一个单位,发射器和接收器耦合的一个反馈回路,它会导致发射器产生超声脉冲,这是由接收器和接收到一个电脉冲然后被反馈到发射机转换,从而使重复系列脉冲的结果。
毕业设计论文外文文献翻译超声波测距中英文对照The Circuit Design of UltrasonicRanging System超声波测距系统的电路设计Ultrasonic Distance Meter超声波测距仪姓名:专业: 测控技术与仪器学号: 2007071071指导教师姓名,职称,:The Circuit Design of Ultrasonic Ranging SystemThis article described the three directions (before, left, right) ultrasonic ranging system is to understand the front of the robot, left and right environment to provide a movement away from the information. (Similar to GPS Positioning System)A principle of ultrasonic distance measurement1, the principle of piezoelectric ultrasonic generatorPiezoelectric ultrasonic generator is the use of piezoelectriccrystal resonators to work. Ultrasonic generator, the internal structure as shown in Figure 1, it has two piezoelectric chip and a resonance plate. When it's two plus pulse signal, the frequency equal to the intrinsic piezoelectric oscillation frequency chip, the chip will happen piezoelectric resonance, and promote the development of plate vibrationresonance, ultrasound is generated. Conversely, if the two are notinter-electrode voltage, when the board received ultrasonic resonance,it will be for vibration suppression of piezoelectric chip, the mechanical energy is converted to electrical signals, then it becomes the ultrasonic receiver.2, the principle of ultrasonic distance measurementUltrasonic transmitter in a direction to launch ultrasound, in the moment to launch the beginning of time at the same time, the spread of ultrasound in the air, obstacles on his way to return immediately, the ultrasonic reflected wave received by the receiver immediately stop the clock. Ultrasound in the air as the propagation velocity of 340m / s, according to the timer records the time t, we can calculate the distance between the launch distance barrier (s), that is: s = 340t / 2 Ultrasonic Ranging System for the Second Circuit DesignSystem is characterized by single-chip microcomputer to control the use of ultrasonic transmitter and ultrasonic receiver since the launch from time to time, single-chip selection of 8751, economic-to-use, and the chip has 4K of ROM, to facilitate programming. Circuit schematic diagram shown in Figure 2. Draw only the front range of the circuit wiring diagram, left and right in front of Ranging circuits and the same circuit, it is omitted.1,40 kHz ultrasonic pulse generated with the launchRanging system using the ultrasonic sensor of piezoelectric ceramic sensors UCM40, its operating voltage of the pulse signal is 40kHz, whichby the single-chip implementation of the following procedures to generate.puzel: mov 14h, # 12h; ultrasonic firing continued 200mshere: cpl p1.0; output 40kHz square wavenop;nop;nop;djnz 14h, here;retRanging in front of single-chip termination circuit P1.0 input port, single chip implementation of the above procedure, the P1.0 port in a40kHz pulse output signal, after amplification transistor T, the drive to launch the first ultrasonic UCM40T, issued 40kHz ultrasonic pulse, and the continued launch of 200ms. Ranging the right and the left side of the circuit, respectively, then input port P1.1 and P1.2, the working principle and circuit in front of the same location.2, reception and processing of ultrasonicUsed to receive the first launch of the first pair UCM40R, the ultrasonic pulse modulation signal into an alternating voltage, the op-amp amplification IC1A and after polarization IC1B to IC2. IC2 is locked loop with audio decoder chip LM567, internal voltage-controlledoscillator center frequency of f0 = 1/1.1R8C3, capacitor C4 determine their target bandwidth. R8-conditioning in the launch of the carrier frequency on the LM567 input signal is greater than 25mV, the outputfrom the high jump 8 feet into a low-level, as interrupt request signals to the single-chip processing.Ranging in front of single-chip termination circuit output port INT0 interrupt the highest priority, right or left location of the output circuit with output gate IC3A access INT1 port single-chip, whilesingle-chip P1.3 and P1. 4 received input IC3A, interrupted by the process to identify the source of inquiry to deal with, interruptpriority level for the first left right after. Part of the source codeis as follows:receive1: push pswpush accclr ex1; related external interrupt 1jnb p1.1, right; P1.1 pin to 0, ranging from right to interrupt service routine circuitjnb p1.2, left; P1.2 pin to 0, to the left ranging circuit interrupt service routinereturn: SETB EX1; open external interrupt 1pop accpop pswretiright: ...; right location entrance circuit interrupt serviceroutineAjmp Returnleft: ...; left Ranging entrance circuit interrupt service routineAjmp Return4, the calculation of ultrasonic propagation timeWhen you start firing at the same time start the single-chipcircuitry within the timer T0, the use of timer counting function records the time and the launch of ultrasonic reflected wave received time. When you receive the ultrasonic reflected wave, the receivercircuit outputs a negative jump in the end of INT0 or INT1 interrupt request generates a signal, single-chip microcomputer in response to external interrupt request, the implementation of the external interrupt service subroutine, read the time difference, calculating the distance . Some of its source code is as follows:RECEIVE0: PUSH PSWPUSH ACCCLR EX0; related external interrupt 0MOV R7, TH0; read the time valueMOV R6, TL0?CLR CMOV A, R6SUBB A, # 0BBH; calculate the time differenceMOV 31H, A; storage resultsMOV A, R7SUBB A, # 3CHMOV 30H, ASETB EX0; open external interrupt 0POP ACCPOP PSWRETIFourth, the ultrasonic ranging system software designSoftware is divided into two parts, the main program and interrupt service routine, shown in Figure 3 (a) (b) (c) below. Completion of the work of the main program is initialized, each sequence of ultrasonic transmitting and receiving control.Interrupt service routines from time to time to complete three ofthe rotation direction of ultrasonic launch, the main external interrupt service subroutine to read the value of completion time, distance calculation, the results of the output and so on.V. CONCLUSIONSRequired measuring range of 30cm ~ 200cm objects inside the plane to do a number of measurements found that the maximum error is 0.5cm, and good reproducibility. Single-chip design can be seen on the ultrasonic ranging system has a hardware structure is simple, reliable, small features such as measurement error. Therefore, it can be used not only for mobile robot can be used in other detection systems.Thoughts: As for why the receiver do not have the transistoramplifier circuit, because the magnification well, CX20106 integrated amplifier, but also with automatic gain control level, magnification to 76dB, the center frequency is 38k to 40k, is exactly resonant ultrasonic sensors frequency.超声波测距系统的电路设计本文所介绍的三方向(前、左、右)超声波测距系统,就是为机器人了解其前方、左侧和右侧的环境而提供一个运动距离信息。
附录A 英文原文ULTASONIC RANGING IN AIRG. E. Rudashevski and A. A. GorbatovOne of the most important problems in instrumentation technology is the remote,contactless measurement of distances in the order of 0.2 to 10 m in air.Such a problem occurs,for instance,when measuring the relativethre edimensional position of separate machine members or structural units.Interesting possibilities for its solution are opened up by utilizing ultrasonic vibrations as an information carrier.The physical properties of air,in which the measurements are made,permit vibrations to be employed at frequencies up to 500 kHz for distances up to 0.5 m between a member and the transducer,or up to 60 kHz when ranging on obstacles located at distances up to 10 m.The problem of measuring distances in air is somewhat different from other problems in the a -pplication of ultrasound.Although the possibility of using acoustic ranging for this purpose has been known for a long time,and at first glance appears very simple,nevertheless at the present time there are only a small number of developments using this method that are suitable for practical purposes.The main difficulty here is in providing a reliable acoustic three-dimensional contact with the test object during severe changes in the air's characteristic.Practically all acoustic arrangements presently known for checking distances use a method of measuring the propagation time for certain information samples from the radiator to the reflecting member and back.The unmodulated acoustic(ultrasonic)vibrations radiated by a transducer are not in themselves a source of information.In order to transmit some informational communication that can then be selected at the receiving end after reflection from the test member,the radiated vibrations must be modulated.In this case the ultrasonic vibrations are the carrier of the information which lies in the modulation signal,i.e.,they are the means for establishing the spatial contact between the measuring instrument and the object being measured.This conclusion,however,does not mean that the analysis and selection of parameters for the carrier vibrations is of minor importance.On the contrary,the frequency of the carrier vibrations is linked in a very close manner with the coding method for the informational communication,with the passband of the receiving and radiating elements in the apparatus,with the spatial characteristics of the ultrasonic communication channel,and with the measuring accuracy.Let us dwell on the questions of general importance for ultrasonic ranging in air,namely:on the choice ofa carrier frequency and the amount of acoustic power received.An analysis shows that with conical directivity diagrams for the radiator and receiver,and assuming thatthe distance between radiator and receiver is substantially smaller than the distance to the obstacle,theamount of acoustic power arriving at the receiving area Pr for the case of reflection from an ideal planesurface located at right angles to the acoustic axis of the transducer comes towhere Prad is the amount of acoustic power radiated,B is the absorption coefficient for a plane wave inthe medium,L is the distance between the electroacoustic transducer and the test me -mber,d is the diameterof the radiator(receiver),assuming they are equal,and c~is the angle of the directivity diagram for theelectroacoustic transducer in the radiator.Both in Eq.(1)and below,the absorption coefficient is dependent on the amplitude and not on theintensity as in some works[1],and therefore we think it necessary to stress this difference.In the various problems of sound ranging on the test members of machines and structures,therelationship between the signal attenuations due to the absorption of a planewave and due to thegeometrical properties of the sound beam are,as a rule,quite different.It must be pointed out that the choiceof the geometrical parameters for the beam in specific practical cases is dictated by the shape of thereflecting surface and its spatial distortion relative to some average position.Let us consider in more detail the relationship betweenthe geometric and the power parameters ofacoustic beams for the most common cases of ranging on plane and cylindrical structural members.It is well known that the directional characteristic W of a circular piston vibrating in an infinite baffle is afunction of the ratio of the piston's diameter to the wavelength d/λ as found from the following expression:(2)where Jl is a Bessel function of the first order and α is the angle between a normal to the piston and aline projected from the center of the piston to the point of observation(radiation).From Eq.(2)it is readily found that a t w o-t o-o n e reduction in the sensitivity of a radiator with respectto sound pressure will occur at the angle(3)For angles α≤20.Eq.(3)can be simplified to(4) where c is the velocity of sound in the medimaa and f is the frequency of the radiated vibrations.It follows from Eq.(4)that when radiating into air where c=330 m/s e c,the necessary diameter of the radiator for a spedfied angle of the directivity diagram at the 0.5 level of pressure taken with respect to the fdc 76.05.0≈αaxis can befound to be(5)where disincm,f is in kHz,and α is in degrees of angle.Curves are shown in Fig.1 plotted from Eq.(5)for six angles of a radiator's directivity diagram.The directivity diagrm needed for a radiator is dictated by the maximum distance to be measured and bythe spatial disposition of the test member relative to the other structural members.In order to avoid theincidence of signals reflected from adjacent members onto the acoustic receiver,it is necessary to provide asmall angle of divergence for the sound beam and,as far as possible,a small-diameter radiator.These tworequirements are mutually inconsistent since for a given radiation frequency a reduction of the beam'sdivergence angle requires an increased radiator diameter.In fact,the diameter of the"sonicated"spot is controlled by two variables,namely:the diameter of theradiator and the divergence angle of the sound beam.In the general case the minimum diameter ofthe"sonicated"spot Dmin on a plane surface normally disposed to the radiator's axis is given by(6)where L is the least distance to the test surface. The specified value of Dmin corresponds to a radiator with a diameter(7)As seen from Eqs.(,6)and(7),the minimum diameter of the"sonieated"spot at the maximum requireddistancecannot be less than two radiator diameters.Naturally,with shorter distances to the obstacle the sizeof the"sonicated" surface is less.Let us consider the case of sound ranging on a cylindrically shaped object of radius R.The problem is to measure the distance from the electroacoustic transducer to the side surface of the cylinderwith its various possible displacements along the X and Y axes.The necessary angleαof the radiator'sdirectivity diagram is given in this case by the expression(8) whereα is the value of the angle for the directivity diagram,Ymax is the maximum displacement of the cylinder's center from the acoustic axis,and Lmin is the minimum distance from the center of theelectroacoustic transducer to the reflecting surface measured along the straight line connecting the center ofthe m e m b e r with the center of the transducer.It is clear that when measuring distance,the"running"time of the information signal is controlled by thefd α1400≈fcL d 5.1=fcLD 6min =min maxarcsinL R y +≥αlength of the path in a direction normal to the cylinder's surface,or in other words,the measure distance isalways the shortest one.This statement is correct for all cases of specular reflection of the vibrations from thetest surface.The simultaneous solution of Eqs.(2)and(8)when W=0.5 leads to the following expression:(9) In the particular case where the sound ranging takes place in air having c=330 m/sec,and on theasstunption that L min <<R,the necessary d i a m e t e r of a unidirectional piston radiator d can be found fromthe fomula (10) where d is in cm and f is in kHz. Curves are shown in Fig.2 for determining the necessary diameter of the radiator as a function of theratio of the cylinder's radius to the maximum displacement from the axis for four radiation frequencies.Alsoshown in this figure is the directivity diagram angle as a function of R and Y rnax for four ratios of m i n i m u mdistance to radius.The ultrasonic absorption in air is the second factor in determining the resolution of ultrasonic rangingdevices and their range of action.The results of physical investigations concerning the measurement ofultrasonic vibrations air are given in[1-3].Up until now there has been no unambiguous explanation of thediscrepancy between the theoretical and expe -rimental absorption results for ultrasonic vibrations inair.Thus,for frequencies in the order of 50 to 60 kHz at a temperature of+25oC and a relative humidity of37%the energy absorption coefficient for a plane wave is about 2.5dB/m while the theoretical value is 0.3 dB/m.The absorption coefficient B as a function of frequency for a temperature of+25o Cand a humidity of37%according to the data in[2]can be described by Table 1.The absorption coefficient depends on the relative humidity.Thus,for frequencies in the order of 10 to20kHz the highest value of the absorption coefficient occurs at 20%humidity[3],and at 40%humidity theabsorption is reduced by about two to one.For frequencies in the order of 60 kHz the maximum absorptionoccurs at 30.7o humidity,dropping when it is increased to 98% or lowered to 10%by a factor of approximatelyfour to one.The air temperature also has an appreciable effect on the ultrasonic absorption[1].When thetemperature of the medium is increased from+10 to+30,the absorption for frequencies between 30 and 50kHz increases by about three to one.Taking all the factors noted above into account we arrive at the following approximate values for theabsorption coefficient:at a frequency of 60 kHz /3min =0.15 m -1 and~max=0.5-1;at a frequency of 200 ()maxmin 76.0y L R d +=λmax25fy R d ≈kHz/~min=0.6 m -1 and B max =2 m -1.(11)The values for the minimum~min and rnaxil-num~max"transmittance"coefficients were obtained in thea bsence of aerosols and rain.Their difference is the result of the possible variations in temperature over therange from -3 0 to+50~and in relative hmnidity over the range from 10 to 98%.The overall value ofthe"transmittance"is obtained by multiplying the values of g and 0 for given values of L,f,and d.L I T E R A T U R E C I T E DMoscow(1957).Moscow(1960).附录B 中文翻译在空气中超声测距G. E. Rudashevski and A. A. Gorbatov在仪器技术中远程是最重要的一个问题。
=======大学本科生毕业设计外文文献及中文翻译文献题目: ULTRASONIC RANGING SYSTEM 文献出处: United States Patent译文题目:超声波测距系统学生:指导教师:专业班级:自动化11-4学号: 110601140416电气信息工程学院2014年5月1日超声波测距系统摘要超声波测距系统,是指选择性地激励一个变压器,使之产生换能器驱动信号。
超声换能器发射的超声波脉冲用于响应驱动信号然后接收到一个在超声波信号发出之后的回波信号。
分路开关接在变压器的绕组上,当超声波信号的传输在允许的近距离范围内达到一个稳定的等级,分路开关选择性的闭合来阻止蜂鸣器报警。
第1章发明背景像在宝丽来相机中应用的可用范围测试系统,它们都是准确而且可靠的,但都不适用于近距离测距,举个例子,2到3英寸的距离内就不适用,所以他们在9英寸甚至更远的距离测距是可靠的。
它们可以应用在很多的应用程序中,但不适用于可移动机器人领域内。
机器人通常必须通过门口只有两三英寸的间隙,如果当可移动机器人被操作于避障模式下通过狭小空间,可能机器人的规避路径过于狭窄,此外,规避动作应该使偏指定的路径距离最小化。
近距离测距不用于超声波系统的一个原因是,近距离输出脉冲输出太长以至于它重叠在回波脉冲上,即使输出脉冲缩短,输出脉冲仍然重叠回波脉冲,因为声音紧跟着输出脉冲。
备中产生的回波信号脉冲的范围为100毫伏,但设置传感器响应所必需的电路回声脉冲是大约150伏到300伏之间。
因此即使是最小的声波也会盖过回声信号。
事实上,dual-diode钳位电路用于将150伏降低到二极管的击穿电压,即0.7伏特。
但是这700毫伏足以盖过100毫伏的回波信号。
目前系统需要50毫秒将300伏特的峰值发射电压降到0.7伏特,且额外需要500到600毫秒的时间将它稳定在1毫伏范围。
第2章发明总结本发明可以提供一种改进的超声波测距系统。
本发明也可以提供一个改进的多通道超声波测距系统。
超声波测距摘要:本演示处理了测量距离的超声波传感器在当前环境中的准确性。
作为一个测量传感器的选择SFR08型配备了允许寻址的I ²C 通信接口。
这一事实使得创建传感器阵列变得简单。
控制和可视化系统是基于PC PC。
NI USB 8451是作为通信卡使用的。
验证测量的目标是确定实际的传感器精度,特别是当测量较长的距离。
当评估传感器的精度时,不包括在所测量的数据的温度补偿。
关键词:超声波传感器,I ²C 通信接口,虚拟仪器1 1 简介简介超声波传感器通常用于自动化的任务来测量距离,位置变化,电平测量,如存在检测器或在特殊应用中,例如,当测量透明材料的纯度。
它们是基于测量超声波的传播时间的原则。
这一原则确保可靠的检测是独立的颜色渲染的对象或其表面的设计和类型。
它可以可靠地检测甚至液体,散装材料,透明物体,玻璃等材料。
他们使用的另一个参数是他们在侵略性的环境中使用,不是非常敏感的污垢和测量距离的可能性。
超声波传感器在许多机械设计中被制造。
对于实验室用途,用于发射器和接收器单独或在一个单一的简单的住房,对于工业用途,往往建造坚固的金属外壳。
有些类型允许您使用电位计或数字来调整灵敏度。
此外,输出可以在统一的版本中或直接以数字形式的模拟信号直接中。
就传感器来说,可以通过通信接口连接到PC ,它是可以设置所有传感器的工作范围和测量距离的详细参数。
2 2 超声测量超声测量超声对环境中的声音具有相似的传播特性。
这是机械振动的粒子环境。
超声波可以在气体、液体和固体中传播。
对于超声波通常被认为是一个频率高于20千赫的声音。
千赫的声音。
根据超声波的用途可以分为两类: 主动超声:当应用表现出物理或化学效应。
生成的输出达到更高的值。
超声波用于清洁,焊接,钻孔等。
被动超声;输出是在低得多(通常是小)值产生的对比度。
他的主要应用领域是测量距离,检测材料的缺陷和材料的厚度,测量液体和气体的流量,以及医疗保健的诊断。
Ultrasonic distance and velocity measurement using a pair of LPM signals for cross-correlation method:Improvement of Doppler-shift compensation and examination of Doppler velocity estimation超声波距离和速度利用互相关方法对LPM信号测量:多普勒频移补偿和多普勒速度估计检测的改进数据来源Elsevier Journal Elsevier期刊刊物名Ultrasonics, 2012, Vol.52 (7), pp.873-879 超声波,2012,卷(7),pp.873-879 作者Shinnosuke Hirata, Minoru Kuribayashi Kurosawashinnosuke平田,稔栗林黑泽明单位机械工程与智能系统1,信息工程学院,电子通信,1-5-1 chofugaoka e4-329,,,布,东京182-8585大学,日本信息处理系,跨学科研究生科学与工程学院,东京工业大学,4259首席人事官g2-32,长津田,绿区,横滨,神奈川226-8502,日本AbstractReal-time distance measurement of a moving object with high accuracy and high resolution using an ultrasonic wave is difficult due to the influence of the Doppler effect or the limit of the calculation cost of signal processing. An over-sampling signal processing method using a pair of LPM signals has been proposed for ultrasonic distance and velocity measurement of moving objects with high accuracy and high resolution. The proposed method consists of cross correlation by single-bit signal processing, high-resolution Doppler velocity estimation with wide measurement range and low-calculation-cost Doppler-shift compensation. The over-sampling cross-correlation function is obtained from cross correlation by single-bit signal processing with low calculation cost. The Doppler velocity and distance of the object are determined from the peak interval and peak form in the cross-correlation function by the proposed method of Doppler velocity estimation and Doppler-shift compensation. In this paper, the proposed method of Doppler-shift compensation is improved. Accuracy of the determined distance was improved from approximately within ±140 μm in the previous method to approximately within ±10μm in computer simulations. Then, the proposed method of Doppler velocity estimation is evaluated. In computer simulations, accuracy of the determined Doppler velocity and摘要实时测量移动物体的高精度和高分辨率超声波存在的多普勒效应或信号处理的计算成本的限制的影响。
H8/300L超声波测距仪(原文出处:第1页-第15页)介绍该应用说明介绍了一种使用H8/38024 SLP MCU的测距仪。
由单片机产生40KHz 方波,通过超声波传感器发射出去。
反射的超声波被另外一个传感器接收。
有效距离为6cm到200cm。
1.理论1.1概况在这篇应用说明中,H8/38024F微处理器是作为目标设备被使用的。
由于简单的可移植性,超声波测距仪使用的软件为C语言。
超声波是频率高于可听音的一切高于20kHz的声波。
用于医疗诊断和影像的超声波,频率延长和超过了10兆赫兹,高的频率有短的波长,这使得超声波从物体反射回来更容易。
不幸的是,极高的频率难以产生和测量。
对超声波的检测与测量主要是通过压电式接收机进行的。
超音波普遍应用于防盗系统、运动探测器和车载测距仪。
其他应用包括医疗诊断(人体成像),清洁(去除油脂和污垢),流量计(利用多普勒效应),非破坏性试验(检测材料缺陷),焊接等各个方面。
1.2软件实施距离的计算要测量超声波传感器接收到回波的时间。
理想的被测对象应该有一个大的面积而且不吸收超声波。
在这个应用说明中使用了38024f的CPU电路板。
图1展示超声波测距仪的工作原理,tmofh (脚63 )是用来传送0.5ms的40kHz的超声波,irq0 ( pin72 ) 是用来探测反射波的。
发送超声波后,计时器C开始追踪Timer Counter C (TCC)的计数数目,以计算物体的距离。
图1.测距仪工作原理1.2.1 发射超声波定时器F是一个具有内置式输出比较功能16位计数器,它还可以用来作为两个独立的8位定时器FH和FL,这里,定时器F是作为两个独立的8位定时器使用。
计时器的FL被初始化为产生中断,而FH在比较匹配发生时触发了tmofh的输出电平。
表1 计时器F的时钟选择对于为定时器的FL,选定内部时钟ø/32。
输出比较寄存器FL装载数据初值为H’FF 。
因此,外部定时器每1.67msec 产生一个中断,计算如下:/2ø晶振频率=,计时器FL 内部时钟周期=322⨯晶振频率=64MHz 8304.9=153.6kHz 中断周期=256kHz6.1531⨯=1.67msec 每隔65msec 开始发射一次超声波,计时器FL 须中断近39次( 65msec / 1.67msec = 39 ),才开始传送。
毕业设计(论文)外文文献翻译文献、资料中文题目:超声测距系统设计文献、资料英文题目:Ultrasonic ranging system design 文献、资料来源:文献、资料发表(出版)日期:院(部):专业:班级:姓名:学号:指导教师:翻译日期: 2017.02.14Ultrasonic ranging system designPublication title: Sensor Review. Bradford: 1993.Vol.ABSTRACT: Ultrasonic ranging technology has wide using worth in many fields, such as the industrial locale, vehicle navigation and sonar engineering. Now it has been used in level measurement, self-guided autonomous vehicles, fieldwork robots automotive navigation, air and underwater target detection, identification, location and so on. So there is an important practicing meaning to learn the ranging theory and ways deeply. To improve the precision of the ultrasonic ranging system in hand, satisfy the request of the engineering personnel for the ranging precision, the bound and the usage, a portable ultrasonic ranging system based on the single chip processor was developed.Keywords: Ultrasound, Ranging System, Single Chip Processor1. IntroductiveWith the development of science and techno logy, the improvement of people’s standard of living, speeding up the development and construction of the city. Urban drainage system have greatly developed their situation is construction improving. However, due to historical reasons many unpredictable factors in the synthesis of her time, the city drainage system. In particular drainage system often lags behind urban construction. Therefore, there are often good building excavation has been building facilities to upgrade the drainage system phenomenon. It brought to the city sewage, and it is clear to the city sewage and drainage culvert in the sewage treatment system. Comfort is very important to people’s lives. Mobile robots designed to clear the drainage culvert and the automatic control system Free sewage culvert clear guarantee robots, the robot is designed to clear the culvert sewage to the core. Control system is the core component of the development of ultrasonic range finder. Therefore, it is very important to design a good ultrasonic range finder.2. A principle of ultrasonic distance measurementThe application of AT89C51:SCM is a major piece of computer components are integrated into the chip micro-computer. It is a multi-interface and counting on the micro-controller integration, and intelligence products are widely used in industrial automation. and MCS-51 microcontroller is a typical and representative.Microcontrollers are used in a multitude of commercial applications such as modems, motor-control systems, air conditioner control systems, automotive engine and among others. The high processing speed and enhanced peripheral set of these microcontrollers make them suitable for such high-speed event-based applications. However, these critical application domains also require that these microcontrollers are highly reliable. The high reliability and low market risks can be ensured by a robust testing process and a proper tools environment for the validation of these microcontrollers both at the component and at the system level. Intel Plaform Engineering department developed an object-oriented multi-threaded test environment for the validation of its AT89C51 automotive microcontrollers. The goals of this environment was not only to provide a robust testing environment for the AT89C51 automotive microcontrollers, but to develop an environment which can be easily extended and reused for the validation of several other future microcontrollers. The environment was developed in conjunction with Microsoft Foundation Classes(AT89C51).1.1 Features* Compatible with MCS-51 Products* 2Kbytes of Reprogrammable Flash MemoryEndurance: 1,000Write/Erase Cycles* 2.7V to 6V Operating Range* Fully Static operation: 0Hz to 24MHz* Two-level program memory lock* 128x8-bit internal RAM* 15programmable I/O lines* Two 16-bit timer/counters* Six interrupt sources*Programmable serial UART channel* Direct LED drive output* On-chip analog comparator* Low power idle and power down modes1.2 DescriptionThe AT89C2051 is a low-voltage, high-performance CMOS 8-bit microcomputer with 2Kbytes of flash programmable and erasable read only memory (PEROM). The device is manufactured using Atmel’s high density nonvolatile memory technology and is compatible with the industry standard MCS-51 instruction set and pinout. By combining a versatile 8-bit CPU with flash on a monolithic chip, the Atmel AT89C2051 is a powerful microcomputer which provides a highly flexible and cost effective solution to many embedded control applications.The AT89C2051 provides the following standard features: 2Kbytes of flash,128bytes of RAM, 15 I/O lines, two 16-bit timer/counters, a five vector two-level interrupt architecture, a full duplex serial port, a precision analog comparator, on-chip oscillator and clock circuitry. In addition, the AT89C2051 is designed with static logicfor operation down to zero frequency and supports two software selectable power saving modes. The idle mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt system to continue functioning. The power down mode saves the RAM contents but freezer the oscillator disabling all other chip functions until the next hardware reset.1.3 Pin Configuration1.4 Pin DescriptionVCC Supply voltage.GND Ground.Prot 1Prot 1 is an 8-bit bidirectional I/O port. Port pins P1.2 to P1.7 provide internal pullups. P1.0 and P1.1 require external pullups. P1.0 and P1.1 also serve as the positive input (AIN0) and the negative input (AIN1), respectively, of the on-chip precision analog comparator. The port 1 output buffers can sink 20mA and can drive LED displays directly. When 1s are written to port 1 pins, they can be used as inputs. When pins P1.2 to P1.7 are used as input and are externally pulled low, they will source current (IIL) because of the internal pullups.Port 3Port 3 pins P3.0 to P3.5, P3.7 are seven bidirectional I/O pins with internal pullups. P3.6 is hard-wired as an input to the output of the on-chip comparator and is not accessible as a general purpose I/O pin. The port 3 output buffers can sink 20mA. When 1s are written to port 3 pins they are pulled high by the internal pullups and can be used as inputs. As inputs, port 3 pins that are externally being pulled low will source current (IIL) because of the pullups.Port 3 also serves the functions of various special features of the AT89C2051 as listed below.1.5 Programming the FlashThe AT89C2051 is shipped with the 2 Kbytes of on-chip PEROM code memory array in the erased state (i.e., contents=FFH) and ready to be programmed. The code memory array is programmed one byte at a time. Once the array is programmed, to re-program any non-blank byte, the entire memory array needs to be erased electrically.Internal address counter: the AT89C2051 contains an internal PEROM address counter which is always reset to 000H on the rising edge of RST and is advanced applying a positive going pulse to pin XTAL1.Programming algorithm: to program the AT89C2051, the following sequence is recommended.1. power-up sequence:Apply power between VCC and GND pins Set RST and XTAL1 to GNDWith all other pins floating , wait for greater than 10 milliseconds2. Set pin RST to ‘H’ set pin P3.2 to ‘H’3. Apply the appropriate combination of ‘H’ or ‘L’ logic to pins P3.3, P3.4, P3.5,P3.7 to select one of the programming operations shown in the PEROM programming modes table.To program and Verify the Array:4. Apply data for code byte at location 000H to P1.0 to P1.7.5.Raise RST to 12V to enable programming.5. Pulse P3.2 once to program a byte in the PEROM array or the lock bits. The byte-write cycle is self-timed and typically takes 1.2ms.6. To verify the programmed data, lower RST from 12V to logic ‘H’ level and set pins P3.3 to P3.7 to the appropriate levels. Output data can be read at the port P1 pins.7. To program a byte at the next address location, pulse XTAL1 pin once to advance the internal address counter. Apply new data to the port P1 pins.8. Repeat steps 5 through 8, changing data and advancing the address counter for the entire 2 Kbytes array or until the end of the object file is reached.9. Power-off sequence: set XTAL1 to ‘L’ set RST to ‘L’Float all other I/O pins Turn VCC power off2.1 The principle of piezoelectric ultrasonic generatorPiezoelectric ultrasonic generator is the use of piezoelectric crystal resonators to work. Ultrasonic generator, the internal structure as shown, it has two piezoelectric chip and a resonance plate. When it’s two plus pulse signal, the frequency equal to the intrinsic piezoelectric oscillation frequency chip, the chip will happen piezoelectric resonance, and promote the development of plate vibration resonance, ultrasound is generated. Conversely, it will be for vibration suppression of piezoelectric chip, the mechanical energy is converted to electrical signals, then it becomes the ultrasonic receiver.The traditio nal way to determine the moment of the echo’s arrival is based on thresholding the received signal with a fixed reference. The threshold is chosen well above the noise level, whereas the moment of arrival of an echo is defined as the first moment the echo signal surpasses that threshold. The intensity of an echo reflecting from an object strongly depends on the object’s nature, size and distance from the sensor. Further, the time interval from the echo’s starting point to the moment when it surpasses the threshold changes with the intensity of the echo. As a consequence, a considerable error may occur even two echoes with different intensities arriving exactly at the same time will surpass the threshold at different moments. The stronger one will surpass the threshold earlier than the weaker, so it will be considered as belonging to a nearer object.2.2 The principle of ultrasonic distance measurementUltrasonic transmitter in a direction to launch ultrasound, in the moment to launch the beginning of time at the same time, the spread of ultrasound in the air, obstacles on his way to return immediately, the ultrasonic reflected wave received by the receiverimmediately stop the clock. Ultrasound in the air as the propagation velocity of 340m/s, according to the timer records the time t, we can calculate the distance between the launch distance barrier(s), that is: s=340t / 23. Ultrasonic Ranging System for the Second Circuit DesignSystem is characterized by single-chip microcomputer to control the use of ultrasonic transmitter and ultrasonic receiver since the launch from time to time, single-chip selection of 875, economic-to-use, and the chip has 4K of ROM, to facilitate programming.3.1 40 kHz ultrasonic pulse generated with the launchRanging system using the ultrasonic sensor of piezoelectric ceramic sensorsUCM40, its operating voltage of the pulse signal is 40kHz, which by the single-chip implementation of the following procedures to generate.puzel: mov 14h, # 12h; ultrasonic firing continued 200msHere: cpl p1.0; output 40kHz square wavenop;nop;nop;djnz 14h, here;retRanging in front of single-chip termination circuit P1.0 input port, single chip implementation of the above procedure, the P1.0 port in a 40kHz pulse output signal, after amplification transistor T, the drive to launch the first ultrasonic UCM40T, issued 40kHz ultrasonic pulse, and the continued launch of 200ms. Ranging the right and the left side of the circuit, respectively, then input port P1.1 and P1.2, the working principle and circuit in front of the same location.3.2 Reception and processing of ultrasonicUsed to receive the first launch of the first pair UCM40R, the ultrasonic pulse modulation signal into an alternating voltage, the op-amp amplification IC1A and after polarization IC1B to IC2. IC2 is locked loop with audio decoder chip LM567, internal voltage-controlled oscillator center frequency of f0=1/1.1R8C3, capacitor C4 determinetheir target bandwidth. R8-conditioning in the launch of the high jump 8 feet into a low-level, as interrupt request signals to the single-chip processing.Ranging in front of single-chip termination circuit output port INT0 interrupt the highest priority, right or left location of the output circuit with output gate IC3A access INT1 port single-chip, while single-chip P1.3 and P1.4 received input IC3A, interrupted by the process to identify the source of inquiry to deal with, interrupt priority level for the first left right after. Part of the source code is as follows:Receivel: push pswpush accclr ex1; related external interrupt 1jnb p1.1, right; P1.1 pin to 0, ranging from right to interrupt service routine circuitjnb p1.2, left; P1.2 pin to 0, to the left ranging circuit interrupt service routinereturn: SETB EX1; open external interrupt 1pop accpop pswretiright: …; right location entrance circuit interrupt service routineAjmp Returnleft: …; left ranging entrance circuit interrupt service routineAjmp Return3.3 The calculation of ultrasonic propagation timeWhen you start firing at the same time start the single-chip circuitry within the timer T0, the use of timer counting function records the time and the launch of ultrasonic reflected wave received time. When you receive the ultrasonic reflected wave, the receiver circuit output a negative jump in the end of INT0 or INT1 interrupt request generates a signal, single-chip microcomputer in response to external interrupt request, the implementation of the external interrupt service subroutine, read the time difference, calculating the distance. Some of its source code is as follows:RECEIVE0: PUSH PSWPUSH ACCCLR EX0; related external interrupt 0MOV R7, TH0; read the time valueMOV R6, TL0CLR CMOV A, R6SUBB A, #0BBH; calculate the time differenceMOV 31H, A; storage resultsMOV A, R7SUBB A, # 3CHMOV 30H, ASETB EX0; open external interrupt 0\POP ACCPOP PSWRETIFor a flat target, a distance measurement consists of two phases: a coarse measurement and a fine measurement:Step 1: Transmission of one pulse train to produce a simple ultrasonic wave.Step 2: Changing the gain of both echo amplifiers according to equation, until the echo is detected.Step 3: Detection of the amplitudes and zero-crossing times of both echoes.Step 4: Setting the gains of both echo amplifiers to normalize the output at, say 3 volts. Setting the period of the next pulses according to the: period of echoes. Setting the time window according to the data of step 2.Step 5: Sending two pulse trains to produce an interfered wave. Testing the zero-crossing times and amplitudes of the echoes. If phase inversion occurs in the echo, determine to otherwise calculate to by interpolation using the amplitudes near the trough. Derive t sub m1 and t sub m2.Step 6: Calculation of the distance y using equation.4、The ultrasonic ranging system software designSoftware is divided into two parts, the main program and interrupt service routine. Completion of the work of the main program is initialized, each sequence of ultrasonic transmitting and receiving control.Interrupt service routines from time to time to complete three of the rotation direction of ultrasonic launch, the main external interrupt service subroutine to read the value of completion time, distance calculation, the results of the output and so on.5、ConclusionsRequired measuring range of 30cm-200cm objects inside the plane to do a number of measurements found that the maximum error is 0.5cm, and good reproducibility. Single-chip design can be seen on the ultrasonic ranging system has a hardware structure is simple, reliable, small features such as measurement error. Therefore, it can be used not only for mobile robot can be used in other detection system.Thoughts: As for why the receiver do not have the transistor amplifier circuit, because the magnification well, integrated amplifier, but also with automatic gain control level, magnification to 76dB, the center frequency is 38k to 40k, is exactly resonant ultrasonic sensors frequency.6、Parking sensor6.1 Parking sensor introductionReversing radar, full name is "reversing the anti-collision radar, also known as" parking assist device, car parking or reversing the safety of assistive devices, ultrasonic sensors(commonly known as probes), controls and displays (or buzzer)and other components. To inform the driver around the obstacle to the sound or a moreintuitive display to lift the driver parking, reversing and start the vehicle around tovisit the distress caused by, and to help the driver to remove the vision deadends and blurred vision defects and improve driving safety.6.2 Reversing radar detection principleReversing radar, according to high-speed flight of the bats in thenight, not collided with any obstacle principles of design anddevelopment. Probe mounted on the rear bumper, according to different price and brand, the probe only ranging from two, three, four, six, eight,respectively, pipe around. The probe radiation, 45-degree angle up and downabout the search target. The greatest advantage is to explore lower than the bumper of the driver from the rear window is difficult to see obstacles, and the police, suchas flower beds, children playing in the squatting on the car.Display parking sensor installed in the rear view mirror, it constantlyremind drivers to car distance behindthe object distance to the dangerous distance, the buzzer starts singing, allow the driver to stop. When the gear lever linked into reverse gear, reversing radar, auto-start the work, the working range of 0.3 to 2.0 meters, so stop when the driver was very practical. Reversing radar is equivalent to an ultrasound probe for ultrasonic probe can be divided into two categories: First, Electrical, ultrasonic, the second is to use mechanical means to produce ultrasound, in view of the more commonly used piezoelectric ultrasonic generator, it has two power chips and a soundingboard, plus apulse signal when the poles, its frequency equal to the intrinsic oscillation frequency of the piezoelectric pressure chip will be resonant and drivenby the vibration of the sounding board, the mechanical energy into electrical signal, which became the ultrasonic probe works. In order to better study Ultrasonic and use up, people have to design and manufacture of ultrasonic sound, the ultrasonic probe tobe used in the use of car parking sensor. With this principle in a non-contactdetection technology for distance measurement is simple, convenient and rapid, easyto do real-time control, distance accuracy of practical industrial requirements. Parking sensor for ranging send out ultrasonic signal at a givenmoment, and shot in the face of the measured object back to the signal wave, reversing radar receiver to use statistics in the ultrasonic signal from the transmitter to receive echo signals calculate the propagation velocity in the medium, which can calculate the distance of the probe and to detect objects.6.3 Reversing radar functionality and performanceParking sensor can be divided into the LCD distance display, audible alarm, and azimuth directions, voice prompts, automatic probe detection function is complete, reversing radar distance, audible alarm, position-indicating function. A good performance reversing radar, its main properties include: (1) sensitivity, whether theresponse fast enough when there is an obstacle. (2) the existence of blind spots. (3) detection distance range.6.4 Each part of the roleReversing radar has the following effects: (1) ultrasonic sensor: used tolaunch and receive ultrasonic signals, ultrasonic sensors canmeasure distance. (2) host: after the launch of the sine wave pulse to the ultrasonic sensors, and process the received signal, to calculate the distance value, the data and monitor communication. (3) display or abuzzer: the receivinghost from the data, and display the distance value and provide differentlevels according to the distance from the alarm sound.6.5 Cautions1, the installation height: general ground: car before the installation of 45 ~55: 50 ~ 65cmcar after installation. 2, regular cleaningof the probe to prevent the fill. 3, do not use the hardstuff the probe surface cover will produce false positives or ranging allowed toprobe surface coverage, such as mud. 4, winter to avoid freezing. 5, 6 / 8 probe reversing radar before and after the probe is not free to swap may cause the ChangMing false positive problem. 6, note that the probe mounting orientation, in accordance with UP installation upward. 7, the probe is not recommended to install sheetmetal, sheet metal vibration will cause the probe resonance, resulting in false positives.超声测距系统设计原文出处:传感器文摘布拉福德:1993年超声测距技术在工业现场、车辆导航、水声工程等领域具有广泛的应用价值,目前已应用于物位测量、机器人自动导航以及空气中与水下的目标探测、识别、定位等场合。
High-precision Ultrasonic Ranging SystemAbstractThe ultrasound is easy to transmit and has good reflection. Its speed is far less than the speed of flight. So this paper designs an ultrasonic ranging system based on STC89C52RC. This system can be effective in the range of about372 cm. After repeated test, the measurement error can be less than 1 cm. So this system can be applied to intelligent avoidanceand vehicle transportation and other systems.Key words: SCM; ultrasound; send; receive; ranging;temperature compensationI. INTRODUCTIONAt present, the main methods of ultrasonic ranging include pulse-echo method, phase modulation, frequency modulation and FFT-based approach. In these methods, the pulse-echo method has good adaptability; this method not only can be used for manual testing, but also combined with the automated systems. So it is most widely used at home and aboard.Nowadays, the theories of microwave and laser ranging have been applied to the ultrasonic ranging system. It can be a very good research. On the other hand, the filtering and analysis of the echo can also draw more and more attention of many experts and scholars. With the enhanced understanding of the ultrasonic theory, we know how to improve the precision and the anti-jamming capabilities will be the most the important performance indicators.In this paper, the pulse-echo theory is used to design the entire system. The following content is mainly divided into three parts. The first section describes the hardware architecture of the system. The second part describes the software processing of the system. The third section describes the techniques of data processing. Insuch a case, the reader can have a comprehensive understanding of the system.II.THE PRINCIPLE OF ULTRASONIC RANGING SYSTEM Considering the requirement of the actual project, we choose the ultrasound, the frequency of which is 40 kHz. Ultrasonic sensor is this kind device which can converse the sound and the electrical power, also known as ultrasonic transducer or ultrasonic probe. In certain frequency range, it can convert the electrical signal to the external ultrasonic signal or change the external ultrasonic signal to the electricalsignal. In this paper, we choose the T/R40-12 piezoelectric ultrasonic transducer. It works at the frequency of 40 kHz. Its external diameter is 12cm.Ultrasonic generator sends the ultrasonic signal at a certain time. After the ultrasonic signal reflected from the measured object, the ultrasonic receiver can receive the signal. As long as we record the time between the sending time and the receiving time, we can calculate the distance from the ultrasonic sender to the measured object. The formula for calculating the distance is:D = S/2 = V ×T /2 (1)D is the distance between the ranging device and the measured object. S is the distance which the ultrasound transports. V is the speed of the ultrasound. T is the time which the ultrasound transports. Because ultrasound is also a kind of sound wave, the speed can be affected by the temperature. So in this paper, it uses the method of temperature compensation to improve the accuracy of the system.III.HARDWARE OF THE SYSTEMThe system block diagram of ultrasonic ranging system is fig. 1. The hardware mainly includes the SCM system, the display circuit, the temperature compensation circuit and the circuit of sending and receiving ultrasound.Fig.1 The block diagram of this systemA.The circuit of sending ultrasoundThe schematic of sending ultrasound is the figure 2. The sending circuit mainly includes the inverter and the ultrasonic transducer. At first the port P1.0 of SCM is inverted, connected to one pole of the ultrasonic transducer, and then inverted again, connected to another pole of the ultrasonic transducer. By means of this push-pull method, we can improve the emission intensity of the ultrasound. Paralleling the inverter; we can increase the driving capability of outputting. The pull-up resistor R1 and R2 not only increases the driving capability of outputting the high level, but alsoincreases the damping effect of the ultrasonic transducer and shorten the time of its free oscillations.Fig.2 The circuit of sending ultrasoundB. The circuit of receiving ultrasoundThe schematic of receiving ultrasound is the fig. 3.ASIC CX20106 is used for detecting infrared.Considering the carrying frequency of CX20106 is 38kz which is very close to the frequency of the ultrasound, we design the receiving circuit by making use of CX20106.Fig.3 The circuit of receiving ultrasoundC. SCM system and the display circuitSCM STC89C52RC is the core of this ranging system, by using the 12MHz crystal oscillator to obtain a more stable clock frequency and reduce the errors. The port P1.0 of the SCM output the 40 KHz square wave that is required by the ultrasonic transducer. The external interrupt 0 is used to monitor the returning signal. The simple and practical four bit common anode LED is used for the display circuit. The segment code is driven by 74LS245, and the bit code is driven by the transistor 9012. It is shown in fig. 4.Fig.4 SCM system and the display circuitD. The circuit of temperature compensationIn the ultrasonic ranging system, a good many factors can affect the speed, such as the environmental interference, the frequency of the base pulse, etc. But the environmental temperature can be the main factor. According to the formula (2), we can see that the temperature varies from 0 ℃to 40℃, the speed of ultrasound varies from 331.4m/s to 354.85m/s. Take the room temperature 20 as the base, the speed is 343.32m/s and the rate of change is 6.83%. So the temperature factor can not be ignored. In the summer, the temperature is often more than 40 . So in the ultrasonic ranging system, it is necessary to have the temperature compensation in order to reduce the error. Nowadays most of the temperature monitoring system takes the method of temperature sensor. First of all, we convert the temperature signal to the electric signal, secondly amplify the electric signal, and thirdly convert the analog signal to the digital signal by the A/D converter. This kind of circuit is very complex and can be easily affected by the parameters of the components. For these reasons, this paper uses the temperature sensor DS18B20 and SCM to design this precisiontemperature measurement system. It can increase the accuracy of the measurement to some extent. The port DQ of the DS18B20 can directly be connected to the port P3.7 of the SCM. The circuit is shown in fig. 5.Fig.5 The circuit of temperature compensationDS18B20 is the latest digital temperature sensor from America. It is different from the traditional thermistor temperature sensors. We can directly read the measured temperature values. According to the actual requirements, we can realize the 9 or 10 bit A/D conversion through simple programming. As a result, DS18B20 can make the system has a simpler structure and higher reliability. After measuring temperature, we correct the speed of the ultrasound by the following formula: V (T) = (331.05+0.607T) (m/s) (2)In the above formula, T is the Celsius temperature of the environment ( ℃ ). IV. SYSTEM PROGRAMMINGThe programming of the ultrasonic ranging system mainly include the main program, sending subroutine, receiving subroutine, temperature compensation subroutine and display subroutine. On one hand, the assembly language is efficient and easy. On the other hand, the ranging program not only need complex calculation, but also requires a highly accurate result. So we choose assembly language to design this system.A.The main programThe main program firstly initialize the system environment, set the T0 timer for the 16-bit timer mode, Secondly set the general interrupt enable bit EA, then initialize the display port P0 and P2. After measuring the temperature value by making use of the DS18B20, the temperature compensation subroutine modifies the sound speed. At this time, it begins to call the sending subroutine. In order to avoid the direct transmission from the transmitter to the receiver, It need a delay of about 0.1ms (this is the reason for the minimum distance can be measured), then enable the external interrupt 0 to receive the return signal. As a result of using the 12MHz crystal oscillator, the timer increase one, the interval is 1us, when the main program detects that the flag is successful, it start to calculate the distance according to the timer T0, the result will be sent for LED display. Then just repeat this processing. The main program flow chart is shown in fig.6.Fig.6 The flow chart of the main programB. Sending subroutine and receiving subroutineThe sending subroutine is the role of sending about 2 ultrasonic pulses through port P1.0 (about 40kHz square wave), the pulse width is about 12us. At the same time, the timer T0 starts timing. This system makes use of the external interrupt 0 to detect the echo. Once received the echo (the pin INT0 appears a low level), it immediately access to the interrupt program, then stop the timer T0 and set the successful flag. If the echo has not been detected when the timer overflow, the timer T0 overflow interrupt will close the external interrupt 0. At the same time, it clears the successful flag. It means that this ranging processing is unsuccessful.C. Temperature compensation subroutine and display subroutineAccording to the real-time temperature detected, it calculates the speed of sound by substituting the formula (2). Display program shows the distance in the way of look-up table.V.DATA PROCESSINGNot only the processing that the circuit deal with the signal will produce a fixed delay t, but also the processing that SCM collect the signal will produce a fixed delay t. Both the above process certainly lead to some measurement errors, But this system modify the delay to reduce the ranging error. Suppose that S1 and S2 are two fixed distance. t1 and t2 are corresponding to the two fixed distance respectively(including the t factor). So S1 and S2 are actually corresponding to the time t1- t and t2- t. That is S1=0.5V(t1- t),S2=0.5V(t2- t),it can be calculated:After several measurements, we can calculate the system delay t. According to the formula (1), we can determine the distance measured. This processing can reduce the system error to some extent.VI. ACTUAL MEASUREMENT AND ANALYSISThe measurement data is shown in table 7.Table 7.The actual measurement data (unit: cm)The experimental data show that: the blind spot of the ultrasonic ranging system (the least distance that the ultrasonic sensors can detect) is 25cm. The largest distance is 372cm. While designing the program, to avoid the direct transmission of the ultrasound from the transmitter to the receiver, the program has a delay about 1.4ms, so the ultrasonic ranging system has a least ranging distance. Because the propagation of the ultrasound may cause a certain decay and the transmit power is limited, it is difficult to detect the long-rang echo. So there will be a largest measurable distance. On the other side, the temperature compensation can improve the accuracy of the measurement.VII. CONCLUSIONIn this paper, it makes use of the reflection characteristics of ultrasound. We design this kind of ranging system based on STC89C52RC. Its effective range is from 25cm to 372cm by means of non-contact measurement. Once the environment temperature changes, it improves the measurement accuracy of the system by temperature compensation circuit. After modifying the system delay, it can reduce the system latency measurement error and have a significantly improved accuracy. The results validate the rationality of the system including both the hardware and the software. This ranging system is reliable and stable. It is fully able to meet a number of high-precision occasions, such as level measurement, robot positioning, etc. ACKNOWLEDGMENTFirst of all, I thank the IEEE for providing this template, secondly I want to thank my instructor Mr. Guo, last but not least, We sincerely thank all colleagues who previously provided technical support.REFERENCES[1] WANG AI ZH. Design and reality of ultrasonic ranging system base on the microcontroller[J]. Journal of Xinzhou Teachers University, 2010,26(2): 44-46. [2] KANG Y P, LIU ZH Y, GUO X, et al. Design of high-precision ultrasonic wave ranging system[J]. Experimental Technology and Management, 2010, 27(3): 61-64. [3] WANG ZH J, SU X Y, HAN Y P. Ultrasonic distance measurement system with high precision based on AT89C51 microprocessor[J]. Sensor Technology & Applocation, 2010(1): 21-24.[4] HAN L R. A survey of methods for improving ultrasonic ranging precision[J]. Telecommunication Engineering, 2010, 50(9): 132-136.。
单片机外文翻译外文文献英文文献基于单片机的超声波测距系统的研究与设计附录附录A外文翻译the equivalent dc value. In the analysis of electronic circuits to be considered in a later course, both dc and ac sources of voltage will be applied to the same network. It will then be necessary to know or determine the dc (or average value) and ac components of the voltage or current in various parts of the system.EXAMPLE 13.13 Determine the average value of the waveforms of Fig. 13.37.FIG. 13.37Example 13.13.Solutions:a. By inspection, the area above the axis equals the area below over one cycle, resulting in an average value of zero volts.b. Using Eq.(13.26):as shown in Fig. 13.38.26In reality, the waveform of Fig. 13.37(b) is simply the square wave of Fig. 13.37(a) with a dc shift of 4 V; that is v2 =v1 + 4 VEXAMPLE 13.14 Find the average values of the following waveforms over one full cycle:a. Fig. 13.39.b. Fig. 13.40.27Solutions:We found the areas under the curves in the preceding example by using a simple geometric formula. If we should encounter a sine wave or any other unusual shape, however, we must find the area by some other means. We can obtain a good approximation of the area by attempting to reproduce the original wave shape using a number of small rectangles or other familiar shapes, the area of which we already know through simple geometric formulas. For example,the area of the positive (or negative) pulse of a sine wave is 2Am. Approximating this waveform by two triangles (Fig. 13.43), weobtain(using area1/2 base height for the area of a triangle) a rough idea of the actual area:A closer approximation might be a rectangle with two similar triangles(Fig. 13.44):28which is certainly close to the actual area. If an infinite number of forms were used, an exact answer of 2Am could be obtained. For irregular waveforms, this method can be especially useful if data such as the average value are desired. The procedure of calculus that gives the exact solution 2Am is known as integration. Integration is presented here only to make the method recognizable to the reader; it is not necessary to be proficient in its use to continue with this text. It is a useful mathematical tool, however,and should be learned. Finding the area under the positive pulse of a sine wave using integration, we havewhere ? is the sign of integration, 0 and p are the limits of integration, Am sin a is thefunction to be integrated, and da indicates that we are integrating with respect to a.Integrating, we obtainSince we know the area under the positive (or negative) pulse, we can easily determine the average value of the positive (or negative) region of a sine wave pulse by applying Eq. (13.26):For the waveform of Fig. 13.45,29EXAMPLE 13.15 Determine the average value of the sinusoidal waveform of Fig. 13.46.Solution: By inspection it is fairly obvious thatthe average value of a pure sinusoidal waveform over one full cycle is zero.EXAMPLE 13.16 Determine the average value of the waveform of Fig. 13.47.Solution: The peak-to-peak value of the sinusoidal function is16 mV +2 mV =18 mV. The peak amplitude of the sinusoidal waveform is, therefore, 18 mV/2 =9 mV. Counting down 9 mV from 2 mV(or 9 mV up from -16 mV) results in an average or dc level of -7 mV,as noted by the dashed line of Fig. 13.47.EXAMPLE 13.17 Determine the average value of the waveform of Fig. 13.48.Solution:30EXAMPLE 13.18 For the waveform of Fig. 13.49, determine whether the averagevalue is positive or negative, and determine its approximate value.Solution: From the appearance of the waveform, the average value is positive and in the vicinity of 2 mV. Occasionally, judgments of this type will have to be made. InstrumentationThe dc level or average value of any waveform can be found using a digital multimeter (DMM) or an oscilloscope. For purely dccircuits,simply set the DMM on dc, and readthe voltage or current levels.Oscilloscopes are limited to voltage levels using the sequence of steps listed below:1. First choose GND from the DC-GND-AC option list associated with each vertical channel. The GND option blocks any signal to which the oscilloscope probe may be connected from entering the oscilloscope and responds with just a horizontal line. Set the resulting line in the middle of the vertical axis on the horizontal axis, as shown in Fig. 13.50(a).2. Apply the oscilloscope probe to the voltage to be measured (ifnot already connected), and switch to the DC option. If a dc voltage is present, the horizontal line will shift up or down, as demonstrated in Fig. 13.50(b). Multiplying the shift by the vertical sensitivity will result in the dc voltage. An upward shift is a positive voltage (higher31potential at the red or positive lead of the oscilloscope), while a downward shift is a negative voltage (lower potential at the red or positive lead of the oscilloscope). In general,1. Using the GND option, reset the horizontal line to the middle of the screen.2. Switch to AC (all dc components of the signal to whichthe probe is connected will be blocked from entering the oscilloscope—only the alternating, or changing,components will be displayed).Note the location of some definitive point on the waveform, such as the bottom of the half-wave rectified waveform of Fig. 13.51(a); that is, note its position on the vertical scale. For the future, whenever youuse the AC option, keep in mind that the computer will distribute the waveform above and below the horizontal axis such that the average value is zero; that is, the area above the axis will equal the area below. 3. Then switch to DC (to permit both the dc and the ac components of the waveform to enter the oscilloscope), and note the shift in the chosen level of part 2, as shown in Fig. 13.51(b). Equation(13.29) can then be used to determine the dc or average value of the waveform. For the waveform of Fig. 13.51(b), the average value is aboutThe procedure outlined above can be applied to any alternating waveform such as the one in Fig. 13.49. In some cases the average valuemay require moving the starting position of the waveform under the AC option to a different region of the screen or choosing a higher voltage scale. DMMs can read the average or dc level of any waveform by simply choosing the appropriate scale.3213.7 EFFECTIVE (rms) VALUESThis section will begin to relate dc and ac quantities with respect to the power delivered to a load. It will help us determine the amplitude of a sinusoidal ac current required to deliver the same power as a particular dc current. The question frequently arises, How is it possible for a sinusoidal ac quantity to deliver a net power if, over a full cycle, the net current in any one direction is zero (average value 0)? It would almost appear that the power delivered during the positive portion of the sinusoidal waveform is withdrawn during the negative portion, and since the two are equal in magnitude, the net power delivered is zero. However, understand that irrespective of direction, currentof any magnitude through a resistor will deliver power to that resistor. In other words,during the positive or negative portions of a sinusoidal ac current, power is being delivered at eachinstant of time to the resistor. The power delivered at each instant will, of course, vary with the magnitude of the sinusoidal ac current, but there will be a net flow during either the positive or the negativepulses with a net flow over the full cycle. The net power flow will equal twice that delivered by either the positive or the negative regions of sinusoidal quantity. A fixed relationship between ac and dc voltages and currents can be derived from the experimental setup shown in Fig. 13.52. A resistor in a water bath is connected by switches to a dc and an ac supply. If switch 1 is closed, a dc current I, determined by the resistance R and battery voltage E, will be established through theresistor R. The temperature reached by the water is determined by the dc power dissipated in the form of heat by the resistor.If switch 2 is closed and switch 1 left open, the ac current through the resistor will have a peak value of Im. The temperature reached by the water is now determined by the ac power dissipated in the form of heat by the resistor. The ac input is varied until the temperature is the same as that reached with the dc input. When this is accomplished, the average electrical power delivered to the resistor R by the ac source is the same asthat delivered by the dc source. The power delivered by the ac supply at any instant of time is33The average power delivered by the ac source is just the first term, since the average value of a cosine wave is zero even though the wave may have twice the frequency of the original input current waveform. Equating the average power delivered by the ac generator to that delivered by the dc source,which, in words, states thatthe equivalent dc value of a sinusoidal current or voltage is 1/2 or 0.707 of itsmaximum value.The equivalent dc value is called the effective value of the sinusoidal quantity.In summary,As a simple numerical example, it would require an ac current with a peak value of 2 (10) 14.14 A to deliver the same power to the resistorin Fig. 13.52 as a dc current of 10 A. The effective value of any quantity plotted as a function of time can be found by using the following equation derived from the experiment just described:34which, in words, states that to find the effective value, the function i(t) must first besquared. After i(t) is squared, the area under the curve isfound by integration. It is then divided by T, the length of the cycle or the period of the waveform, to obtain the average or mean value of thesquared waveform. The final step is to take the square root of the meanvalue. This procedure gives us another designation forthe effectivevalue, the root-mean-square (rms) value. In fact, since therms term isthe most commonly used in the educational and industrial communities,it will used throughout this text. EXAMPLE 13.19 Find therms values of the sinusoidal waveform in each part of Fig. 13.53.Solution: For part (a), Irms 0.707(12 10 3 A) 8.484 mA.For part (b), againIrms 8.484 mA. Note that frequency did notchange the effective valuein (b) above compared to (a). For part (c),Vrms 0.707(169.73 V) 120 V, the same as available from a home outlet.EXAMPLE 13.20 The 120-V dc source of Fig. 13.54(a) delivers 3.6 W to the load. Determine the peak value of the applied voltage (Em) and the current (Im) if the acsource [Fig. 13.54(b)] is to deliver the same power to the load.35Solution:EXAMPLE 13.21 Find the effective or rms value of the waveform of Fig.13.55.Solution:36EXAMPLE 13.22 Calculate the rms value of the voltage of Fig. 13.57.Solution:EXAMPLE 13.23 Determine the average and rms values of the square wave of Fig. 13.59.37Solution: By inspection, the average value is zero.The waveforms appearing in these examples are the same as thoseused in the examples on the average value. It might prove interesting tocompare the rms and average values of these waveforms.The rms values of sinusoidal quantities such as voltage or currentwill be represented by E and I. These symbols are the same as thoseused for dc voltages and currents. To avoid confusion, the peak valueof a waveform will always have a subscript m associated with it: Imsin qt. Caution: When finding the rms value ofthe positive pulse of asine wave, note that the squared area is not simply (2Am)24A2m; itmust be found by a completely new integration. This will always bethe case for any waveform that is not rectangular.A uniquesituation arises if a waveform has both a dc and an ac componentthat may be due to a source such as the one in Fig. 13.61. Thecombination appears frequently in the analysis of electronic networkswhere both dc and ac levels are present in the same system.38The question arises, What is the rms value of the voltage vT? Onemight be tempted tosimply assume that it is the sum of the rms valuesof each component of the waveform; that is, VT rms 0.7071(1.5 V) 6 V 1.06 V 6 V 7.06 V. However, the rms value is actuallydetermined bywhich for the above example is39直流值相等。
毕业设计(论文)英文资料翻译Ultrasonic ranging system design系别专业班级学生姓名学号指导教师中文翻译超声测距系统设计摘要:超声测距技术在工业现场、车辆导航、水声工程等领域都具有广泛的应用价值,目前已应用于物位测量、机器人自动导航以及空气中与水下的目标探测、识别、定位等场合。
因此,深入研究超声的测距理论和方法具有重要的实践意义。
为了进一步提高测距的精确度,满足工程人员对测量精度、测距量程和测距仪使用的要求,本文研制了一套基于单片机的便携式超声测距系统。
关键词:超声波,测距仪,单片机1.前言随着科技的发展,人们生活水平的提高,城市发展建设加快,城市给排水系统也有较大发展,其状况不断改善。
但是,由于历史原因合成时间住的许多不可预见因素,城市给排水系统,特别是排水系统往往落后于城市建设。
因此,经常出现开挖已经建设好的建筑设施来改造排水系统的现象。
城市污水给人们带来了困扰,因此箱涵的排污疏通对大城市给排水系统污水处理,人们生活舒适显得非常重要。
而设计研制箱涵排水疏通移动机器人的自动控制系统,保证机器人在箱涵中自由排污疏通,是箱涵排污疏通机器人的设计研制的核心部分。
控制系统核心部分就是超声波测距仪的研制。
因此,设计好的超声波测距仪就显得非常重要了。
2.SCM描述微控制器(MCU)是一种单片计算机。
这是一种强调自给自足和成本效益形成鲜明对比的通用微处理器(PC)。
现在使用的大多数的计算机系统是嵌入到其他机器中,如电话、时钟、电器、汽车和基础设施。
嵌入式系统通常对内存和程序长度的要求很小并且可能需要简单但不寻常的输入/输出系统。
例如,大多数嵌入式系统缺乏键盘,屏幕,磁盘、打印机或其他可辨认的个人计算机的I/O设备。
他们可能控制电动机、继电器或电压和阅读开关、可变电阻或者其他电子设备。
通常情况下,人类可读的唯一的I/O设备是一个发光二极管,严重的甚至可以消除这种成本或权力约束。
与通用CPU相比,微控制器没有一个地址总线或一个数据总线,因为他们整合了所有的内存和非易失性内存相同的芯片CPU。
英文原文:Ultrasonic distance sensorDesign Principles:Ultrasonic sensor is developed from the use of the characteristics of ultrasonic sensors.Higher frequency ultrasound is a mechanical acoustic waves, the transducer excitation voltage of the chip occurs in the vibration, and it has a high frequency, short wavelength, diffraction is small, especially the direction of good, to be the ray and the orientationcommunication and so on.Ultrasound on liquids and solids through a great ability, especially in opaque solids in the sun, which can penetrate tens of meters in depth.Ultrasonic impurities or sub-interface will encounter a significant reflection reflection into the echo formation, hit moving objects can produce the Doppler effect.Therefore widely used in industrial ultrasonic inspection, defense, biomedical and other aspects of the ultrasound as a means of detection, must generate and receive ultrasound ultrasound.To fulfill this function the device is ultrasonic sensors, traditionally known as the ultrasonic transducer or ultrasonic probe.The main performance indicators of ultrasonic sensors:Ultrasound probe is the core of its plastic jacket or a piece of metal in the piezoelectric jacket.Constitute the chip can have many kinds of materials.Chip size, such as diameter and thickness also vary, so the performance of each probe is different, we used to know it in advance before the performance.The main performance indicators of ultrasonic sensors include: (1) operating frequency.Frequency is the resonant frequency of the piezoelectric wafer.When added to the AC voltage across it, and the frequency of the resonant frequency of the chip are equal, the maximum energy output, sensitivity is highest.(2) operating temperature.Since the Curie point of piezoelectric materials generally high, particularly when using the power of diagnostic ultrasound probe small, so the temperature is relatively low, you can work long hours without producing failure.Medical ultrasound probe temperature is relatively high, requiring a separate cooling device.(3) sensitivity.Depends primarily on manufacturing the chip itself.Electromechanical coupling coefficient, high sensitivity; the other hand, low sensitivity.Structure and Working Principle:When voltage is applied to piezoelectric ceramic, it will with the voltage and frequency of changes in the mechanical deformation.On the other hand, when the vibration of piezoelectric ceramics, it will generate a ing this principle, when given by the two piezoelectric ceramic or a piezoelectric ceramic and a vibrator, sheet metal, the so-called bimorph element called the imposition of an electricalsignal, it will emit ultrasonic vibration due to bending.Conversely, when applied to the bimorph ultrasonic devices, it will generate an electrical signal.Based on the above role, it can be used as a piezoelectric ceramic ultrasonic sensors.Such as ultrasonic sensors, a compound vibrator was flexibility on a fixed base.The vibrator is a composite resonator, and by a metal plate and a piezoelectric bimorph element consisting of a combination vibrator.Resonator and trumpets the purpose of effective radiation generated by the ultrasonic vibrations, and can effectively make ultrasonic vibrator gathered in a central location.Outdoor uses ultrasonic sensors must have a good seal in order to prevent dew, rain and dust intrusion.Piezoelectric ceramic is fixed on the top of the metal box inside the body.Base fixed in the open end of box, and covered with resin.Of ultrasonic sensors for industrial robots, the requirements to achieve an accuracy of 1mm, and has strong ultrasonic ponents using conventional bimorph bending vibration of the vibrator, in the case of frequencies above 70kHz, it is impossible to achieve this purpose.Therefore, in the high-frequency probe, you must use the vertical thickness vibration mode piezoelectric ceramic.In this case, the acoustic impedance of piezoelectric ceramics and the air becomes very important match.Acoustic impedance of piezoelectric ceramic 2.6 × 107kg/m2s, while the acoustic impedance of air is 4.3×102kg/m2s.5different power piezoelectric vibration will result in substantial losses of radiation on the surface.Adhesion of a special material on the piezoelectric ceramic, matching layers, as the sound can be achieved with air impedance match.This structure allows up to several hundred kHz ultrasonic sensors in the frequency of the circumstances, still be able to work properly.Ultrasonic distance sensor technology and application of the principle:Ultrasonic distance sensor can be widely used in Level (level) monitoring, robot collision avoidance, a variety of ultrasonic proximity switches, and related areas such as anti-theft alarm, reliable, easy installation, waterproof, small launch angle, high sensitivity,display instruments to facilitate connections with industry, also provides a larger probe launch angle.1, ultrasonic range finder: ultra-high energy acoustic ranging techniques to ultrasonic distance measurement techniques have been major breakthroughs, it not only broadens the applications of ultrasonic distance measurement technology (for very poor working conditions), and the use of smart regulation technology,greatly improve the reliability of ultrasonic products, and performance indicators, allowing users to worry about without looking back.Excellent echo processing technology ,5-50KHZ of ultra high strength level meter wave frequency to the maximum range up to 120 meters for medium temperature is -20℃-+175℃.Intelligent automatic adjustment made wave frequency, automatic temperature compensation function to work more stable and reliable.HpAWK series also has a flexible work (the power supply for 12VDC, 24VDC, 110V AC, 220V AC; two / three / four-wire system can be freely combined in the same instrument.It also has advanced remote GSM, CDMA, Internet debugging features, enabling users to readily available technical support.中文译文:超声波距离传感器设计原理:超声波传感器是利用超声波的特性研制而成的传感器。
一种超声波测距系统摘要:超声波是一种特殊的声波,为直线传播方式,频率越低,绕射能力越弱,反射能力越强,利用超声波的这种性能就可制成超声波传感器。
本文介绍了一种以单片机作为微处理器的超声波测距系统, 利用超声波传感器的测距原理并配合显示器,制成了低成本智能超声波测距系统。
本文分析了环境温度对波速的影响,介绍了几种提高测量精度的方法,给出了电路原理图和软件设计流程图。
实验结果验证了本系统具有成本低、精度高、电路简单以及抗干扰性好等优点,可以广泛地应用于一些中小规模的测量系统。
关键词:超声波; 测距; AT89C51An Ultrasonic Distance Measurement SystemAbstract: Ultrasonic is a kind of special sound waves which transmitted in straight lines. The lower the frequency is , the worse its diffraction ability and the better its reflection ability will be. Such performance of ultrasonic can be used to make ultrasonic sensor. This paper presents an ultrasonic distance measurement system which take use of the distance measurement principle of ultrasonic sensor provided with monitor to make a lower-cost intelligent ultrasonic distance measurement system. It analyzes the interference of environmental temperature towards wave speed, introduces several methods to improve measurement precision and also presents the flow chart of circuit principle and software design. The experimental result shows that this system processes many advantages, such as low cost, high precision, simpleness, anti-jamming etc. It can be widely applied to some medium and small scale measurement system.Key words : ultrasonic; distance measurement ; AT89C51目录摘要 (1)1 引言 (3)2 超声波测距原理 (3)2.1 超声波发生器 (3)2.2 压电式超声波发生器原理 (3)2.3 超声波测距原理 (4)3 硬件电路设计 (5)3.1 超声波发送电路 (5)3.2 超声波接收电路 (6)3.3 报警电路 (7)3.4 距离显示与抗干扰电路 (7)3.5 测量精度的探讨 (8)3.5.1 测距原理 (8)3.5.2 波速的修正 (9)3.5.3 随机误差修正 (10)4 软件设计 (10)4.1 程序流程图 (10)4.2 程序设计 (12)5 结束语 (15)参考文献 (16)1 引言人能听到的声音频率为:20Hz~20kHz即为可听声波,超出此频率范围的声音,即20Hz以下的声音称为低频声波,20kHz以上的声音称为超声波。
附件1:外文资料翻译译文超声波测距仪文件类型和数目:美国专利5442592摘要:提出了一种超声波测距仪来抵消的影响温度和湿度的变化,包括测量单元和参考资料。
在每一个单位,重复的一系列脉冲的产生,每有一个重复率,直接关系到各自之间的距离,发射机和接收机。
脉冲提供给各自的主机,和比例的反产出是利用确定的距离被衡量的。
出版日期:1995年8月15日主审查员:罗保.伊恩j.一、背景发明本发明涉及到仪器的测量距离,更特别是,这种仪器传送超声波两点之间。
精密机床必须校准。
在过去,这已经完成利用机械设备,如卡钳,微米等。
不过,使用这种装置并不容易本身自动化技术。
据了解,该两点之间距离才能确定通过测量传播时间的浪潮往返那些两点。
这样一个类型的波是一种超声波,或声,海浪。
当超声波旅行两点之间,距离两个点之间可以衡量乘以过境的时间波由波速,在中期分开两点。
因此,这是一个对象本发明提供仪器利用超声波准确测量两点之间距离。
当中等两个点之间的间距是被衡量的是空气,声速是取决于温度和空气相对湿度。
因此,它是进一步对象的,现在的发明,提供仪器的类型所描述的是独立于温度和湿度的变化。
二、综述发明前述的和额外的对象是达到了根据这些原则的这项发明提供距离测量仪器,其中包括一个参考的单位和测量单位。
参考和测量单位是相同的,每个包括一电发射机和接收机一电。
间隔发射器和接收器的参考股是一个固定的参考距离,而间距之间的发射机和接收机的测量单位是距离来衡量。
在每一个单位,发射机和接收机是再加上由一个反馈环路导致发射机产生的声脉冲是由接收机和转换成一个电脉冲这是然后反馈到发射机,使重复一系列脉冲的结果。
重复率脉冲是成反比关系之间的距离发射器和接收器。
在每一个单位,脉冲提供一个反。
由于参考的距离是众所周知,比例反产出是利用,以确定所期望的距离来衡量。
由于这两方面都是相同的影响,温度和湿度的变化,采取的比例罪状,由此产生的测量变得麻木等变化。
三、简要说明图纸前述将更加明显后,读下列的说明,在与该绘图并在其中单一数字schematically 描绘仪器兴建根据这些原则的这项发明。
四、详细说明谈到现在的绘图,有结果表明,测量单位和10个参考单位12个,均加上一个利用的手段14 。
测量单位包括1 10电发射机16日和1电接收机18 。
变送器16包括压电材料20夹心阶层之间的对电极的22日和24日。
同样,接收机18个,包括压电材料26夹心阶层之间的对电极的28日和30日。
作为众所周知,采用电场整个电极22日和24日,强调的是,诱导,在压电材料20 。
如果该字段各有不同,如所申请的一个电脉冲,声波是32所产生的。
为进一步众所周知,当声波影响到接收器18 ,这诱导应力,在压电材料26 ,导致一种电信号,以产生全国电极28日和30日。
虽然压电传感器已说明,其他电声装置,可利用,例如,静电,驻极体或电磁类型。
如表所示,电极28日和30日的接收18岁以下的耦合的投入一34放大器,其输出耦合输入一个探测器36 。
探测器36是安排提供一个信号,脉冲前38时,输出放大器34已经超过预定的水平。
脉冲前38 ,然后产生一个触发脉冲,这是提供给脉冲发生器40 。
在为了提高灵敏度,该系统,传感器16和18岁以下的共振兴奋。
有相应的提供了一个连续波振荡器42提供了一个连续振荡信号在一个固定的频率,最好是共振频率的传感器16和18 。
这个振荡信号是提供给调制器44 。
要有效地激发发射机16 ,可取的做法是提供几个周期的共振频率信号,而不是一个单脉冲或单周期。
因此,脉冲发生器40是安排,在回应的应用存在的一个触发脉冲,提供一个控制脉冲调制器44有一个时间的平等的时间,时间预定人数的周期振荡信号从振荡器42 。
这个控制脉冲调制器的原因,44个通过了“水管爆裂”的周期,以激发发射机16 。
当电力是适用于所描述的电路,有足够的噪音在输入到放大器34 ,其输出触发脉冲发生器40至造成了一片叫好声,振荡周期,以提供整个电极22日和24日的发射器16 。
变送器16因此产生声波32条,其中影响到接收器18 。
接收器18 ,然后产生一个电脉冲,这是适用于输入放大器的34 ,这再次触发原因的脉冲发生器40 。
这个周期重演,使重复一系列的触发脉冲结果的输出脉冲前38 。
这脉冲列车是应用到46个柜位,以及向脉冲发生器40 。
变送器16日和接收18岁以下的间隔,除了由距离的“ D ” ,它是理想的衡量。
传播时间的“ T ”为一声波32往来变送器16日和接收18所给予的:= D的吨/视频s凡v s是声速在空气中之间的发射机16日和接收18 。
柜台46措施重复率触发脉冲,这是平等的1 /汤匙因此,重复率是平等的一至中五的S /四该声速空气中是一个功能的温度和湿度的空气,内容如下:####equ1其中T是温度,P是局部的压力,水汽,H是该气压,γ瓦特和γ一顷的比例不断的压力,具体的热不断货量具体的热水汽和干燥的空气,分别。
因此,虽然重复率触发脉冲测量非常准确地反46 ,声速的影响,温度和湿度,使测量的距离d无法确定准确。
根据这些原则的这项发明,参考单位提供的是12 。
参考单位12是相同的建设为测量单位的10个,因此,包括一电发射机50个,其中包括压电材料52夹心之间的一对电极的54和56 ,和一电接收机58 ,其中包括压电材料60夹心阶层之间的一对电极60,61,62和64 。
再次,传感器以外的其他类型压电可以利用。
变送器50和接收五十八顷间隔,除了已知的和固定的参考距离“博士” 。
电极60,61,62和64耦合到输入的放大器66 ,其输出是耦合的投入探测器68 。
输出探测器68是耦合的脉搏,前70产生触发脉冲。
触发脉冲应用到脉冲发生器的72个控制调制器74通过扫射从连续波振荡器76至变送器50 。
触发脉冲从脉冲前70也适用于反78 。
最好是,所有的传感器16 ,18 ,50和58具有相同的共振频率。
因此,振荡器42和76都在运作,频率和脉冲发电机40和第72条提供平等的输出脉冲宽度。
在用法上,测量装置10和参考资料股一十二顷在接近,使该声速在这两个单位是相同的。
虽然留级率的脉冲在测量单位,10和参考资料股十二顷每个温度和湿度的依赖性,能证明的距离D来衡量。
其中T R是传播时间超过距离博士在参考股12 。
这种关系是独立于双方的温度和湿度。
因此,产出的柜台46和78所提供的投入微处理器的90个利用的手段14 。
微处理器90是适当的程序提供了一个输出是成正比的比例,产出的柜台46和78 ,这反过来又是成正比的重复率分别触发脉冲列车的测量单位,10和参考资料股12 。
作为描述,这个比例是独立的温度和湿度,由于参考的距离,博士,是众所周知的,提供了一个准确的代表性距离四,利用手段,14日还包括一个显示92这是耦合和控制的微处理器,使90一个经营者可以随时确定的距离。
实验表明,当之间的距离发射和接收传感器是太小了,思考的声波在传感器的表面有一个不小的作用,降低了测量精度。
因此,最好是每换一双分开,至少由某一个最小距离,最好是约四英寸。
因此,已披露的改善仪器的测量距离,利用超声波。
而一个说明性的体现,本发明已披露者外,据了解,各种修改和适应所披露的体现,将是显而易见的那些普通的技巧与艺术,这是打算把这个发明只限于由范围所附的索赔。
附件2:外文原文(复印件)Ultrasonic distance meterDocument Type and Number:United States Patent 5442592 Abstract:An ultrasonic distance meter cancels out the effects of temperature and humidity variations by including a measuring unit and a reference unit. In each of the units, a repetitive series of pulses is generated, each having a repetition rate directly related to the respective distance between an electroacoustic transmitter and an electroacoustic receiver. The pulse trains are provided to respective counters, and the ratio of the counter outputs is utilized to determine the distance being measured.Publication Date:08/15/1995Primary Examiner:Lobo, Ian J.一、BACKGROUND OF THE INVENTIONThis invention relates to apparatus for the measurement of distance and, more particularly, to such apparatus which transmits ultrasonic waves between two points.Precision machine tools must be calibrated. In the past, this has been accomplished utilizing mechanical devices such as calipers, micrometers, and the like. However, the use of such devices does not readily lend itself to automation techniques. It is known thatthe distance between two points can be determined by measuring the propagation time of a wave travelling between those two points. One such type of wave is an ultrasonic, or acoustic, wave. When an ultrasonic wave travels between two points, the distance between the two points can be measured by multiplying the transit time of the wave by the wave velocity in the medium separating the two points. It is therefore an object of the present invention to provide apparatus utilizing ultrasonic waves to accurately measure the distance between two points.When the medium between the two points whose spacing is being measured is air, the sound velocity is dependent upon the temperature and humidity of the air. It is therefore a further object of the,present invention to provide apparatus of the type described which is independent of temperature and humidity variations.二、SUMMARY OF THE INVENTIONThe foregoing and additional objects are attained in accordance with the principles of this invention by providing distance measuring apparatus which includes a reference unit and a measuring unit. The reference and measuring units are the same and each includes an electroacoustic transmitter and an electroacoustic receiver. The spacing between the transmitter and the receiver of the reference unit is a fixed reference distance, whereas the spacing between the transmitter and receiver of the measuring unit is the distance to be measured. In each of the units, the transmitter and receiver are coupled by a feedback loop which causes the transmitter to generate an acoustic pulse which is received by the receiver and converted into an electrical pulse which is then fed back to the transmitter, so that a repetitive series of pulses results. The repetition rate of the pulses is inversely related to the distance between the transmitter and the receiver. In each of the units, the pulses are provided to a counter. Since the reference distance is known, the ratio of the counter outputs is utilized to determine the desired distance to be measured. Since both counts are identically influenced by temperature and humidity variations, by taking the ratio of the counts, the resultant measurement becomes insensitive to such variations.三、BRIEF DESCRIPTION OF THE DRAWINGSThe foregoing will be more readily apparent upon reading the following descriptionin conjunction with the drawing in which the single FIGURE schematically depicts apparatus constructed in accordance with the principles of this invention.四、DETAILED DESCRIPTIONReferring now to the drawing, there is shown a measuring unit 10 and a reference unit 12, both coupled to a utilization means 14. The measuring unit 10 includes an electroacoustic transmitter 16 and an electroacoustic receiver 18. The transmitter 16 includes piezoelectric material 20 sandwiched between a pair of electrodes 22 and 24. Likewise, the receiver 18 includes piezoelectric material 26 sandwiched between a pair of electrodes 28 and 30. As is known, by applying an electric field across the electrodes 22 and 24, stress is induced in the piezoelectric material 20. If the field varies, such as by the application of an electrical pulse, an acoustic wave 32 is generated. As is further known, when an acoustic wave impinges upon the receiver 18, this induces stress in the piezoelectric material 26 which causes an electrical signal to be generated across the electrodes 28 and 30. Although piezoelectric transducers have been illustrated, other electroacoustic devices may be utilized, such as, for example, electrostatic, electret or electromagnetic types.As shown, the electrodes 28 and 30 of the receiver 18 are coupled to the input of an amplifier 34, whose output is coupled to the input of a detector 36. The detector 36 is arranged to provide a signal to the pulse former 38 when the output from the amplifier 34 exceeds a predetermined level. The pulse former 38 then generates a trigger pulse which is provided to the pulse generator 40. In order to enhance the sensitivity of the system, the transducers 16 and 18 are resonantly excited. There is accordingly provided a continuous wave oscillator 42 which provides a continuous oscillating signal at a fixed frequency, preferably the resonant frequency of the transducers 16 and 18. This oscillating signal is provided to the modulator 44. To effectively excite the transmitter 16, it is preferable to provide several cycles of the resonant frequency signal, rather than a single pulse or single cycle. Accordingly, the pulse generator 40 is arranged, in response to the application thereto of a trigger pulse, to provide a control pulse to the modulator 44 having a time duration equal the time duration of a predetermined number of cycles of the oscillating signal from the oscillator 42. This control pulse causes the modulator 44 topass a "burst" of cycles to excite the transmitter 16.When electric power is applied to the described circuitry, there is sufficient noise at the input to the amplifier 34 that its output triggers the pulse generator 40 to cause a burst of oscillating cycles to be provided across the electrodes 22 and 24 of the transmitter 16. The transmitter 16 accordingly generates an acoustic wave 32 which impinges upon the receiver 18. The receiver 18 then generates an electrical pulse which is applied to the input of the amplifier 34, which again causes triggering of the pulse generator 40. This cycle repeats itself so that a repetitive series of trigger pulses results at the output of the pulse former 38. This pulse train is applied to the counter 46, as well as to the pulse generator 40.The transmitter 16 and the receiver 18 are spaced apart by the distance "D" which it is desired to measure. The propagation time "t" for an acoustic wave 32 travelling between the transmitter 16 and the receiver 18 is given by: t=D/V s where V s is the velocity of sound in the air between the transmitter 16 and the receiver 18. The counter 46 measures the repetition rate of the trigger pulses, which is equal to 1/t. Therefore, the repetition rate is equal to V s /D. The velocity of sound in air is a function of the temperature and humidity of the air, as follows: ##EQU1## where T is the temperature, p is the partial pressure of the water vapor, H is the barometric pressure, Γ w and Γ a are the ratio of constant pressure specific heat to constant volume specific heat for water vapor and dry air, respectively. Thus, although the repetition rate of the trigger pulses is measured very accurately by the counter 46, the sound velocity is influenced by temperature and humidity so that the measured distance D cannot be determined accurately.In accordance with the principles of this invention, a reference unit 12 is provided. The reference unit 12 is of the same construction as the measuring unit 10 and therefore includes an electroacoustic transmitter 50 which includes piezoelectric material 52 sandwiched between a pair of electrodes 54 and 56, and an electroacoustic receiver 58 which includes piezoelectric material 60 sandwiched between a pair of electrodes 62 and 64. Again, transducers other than the piezoelectric type can be utilized. The transmitter 50 and the receiver 58 are spaced apart a known and fixed reference distance "D R ". Theelectrodes 62 and 64 are coupled to the input of the amplifier 66, whose output is coupled to the input of the detector 68. The output of the detector 68 is coupled to the pulse former 70 which generates trigger pulses. The trigger pulses are applied to the pulse generator 72 which controls the modulator 74 to pass bursts from the continuous wave oscillator 76 to the transmitter 50. The trigger pulses from the pulse former 70 are also applied to the counter 78.Preferably, all of the transducers 16, 18, 50 and 58 have the same resonant frequency. Therefore, the oscillators 42 and 76 both operate at that frequency and the pulse generators 40 and 72 provide equal width output pulses.In usage, the measuring unit 10 and the reference unit 12 are in close proximity so that the sound velocity in both of the units is the same. Although the repetition rates of the pulses in the measuring unit 10 and the reference unit 12 are each temperature and humidity dependent, it can be shown that the distance D to be measured is related to the reference distance D R as follows: i D=D R (1/t R )/(1/t) where t R is the propagation time over the distance D R in the reference unit 12. This relationship is independent of both temperature and humidity.Thus, the outputs of the counters 46 and 78 are provided as inputs to the microprocessor 90 in the utilization means 14. The microprocessor 90 is appropriately programmed to provide an output which is proportional to the ratio of the outputs of the counters 46 and 78, which in turn are proportional to the repetition rates of the respective trigger pulse trains of the measuring unit 10 and the reference unit 12. As described, this ratio is independent of temperature and humidity and, since the reference distance D R is known, provides an accurate representation of the distance D. The utilization means 14 further includes a display 92 which is coupled to and controlled by the microprocessor 90 so that an operator can readily determine the distance D.Experiments have shown that when the distance between the transmitting and receiving transducers is too small, reflections of the acoustic wave at the transducer surfaces has a not insignificant effect which degrades the measurement accuracy. Accordingly, it is preferred that each transducer pair be separated by at least a certain minimum distance, preferably about four inches. Accordingly, there has beendisclosed improved apparatus for the measurement of distance utilizing ultrasonic waves. While an illustrative embodiment of the present invention has been disclosed herein, it is understood that various modifications and adaptations to the disclosed embodiment will be apparent to those of ordinary skill in the art and it is intended that this invention be limited only by the scope of the appended claims.。