版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
1、<p> Ultrasonic distance meter</p><p> Document Type and Number:United States Patent 5442592 </p><p> Abstract:An ultrasonic distance meter cancels out the effects of temperature and hum
2、idity 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
3、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 </p><p> A
4、.BACKGROUND OF THE INVENTION</p><p> This invention relates to apparatus for the measurement of distance and, more particularly, to such apparatus which transmits ultrasonic waves between two points. </p
5、><p> 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 rea
6、dily lend itself to automation techniques. It is known that the 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 u
7、ltrasonic, or acoustic, wave. When an ultrasonic wave travels between two poi</p><p> When the medium between the two points whose spacing is being measured is air, the sound velocity is dependent upon the
8、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. </p><p>
9、 B.SUMMARY OF THE INVENTION</p><p> The foregoing and additional objects are attained in accordance with the principles of this invention by providing distance measuring apparatus which includes a referenc
10、e 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 re
11、ference unit is a fixed reference distance, whereas the spacing between the transmitter and receiver of the mea</p><p> C.DETAILED DESCRIPTION</p><p> A.principle of ultrasonic distance measur
12、ement </p><p> 1, the principle of piezoelectric ultrasonic generator </p><p> Piezoelectric ultrasonic generator is the use of piezoelectric crystal resonators to work. Ultrasonic generator,
13、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 ch
14、ip will happen piezoelectric resonance, and promote the development of plate vibration resonance, ultrasound is generated. Conversely, if the two are not inter-electrode v</p><p> 2, the principle of ultras
15、onic distance measurement </p><p> Ultrasonic 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
16、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
17、t, we can calculate the distance between the launch distance barrier (s), that is: s = 340t / 2 </p><p> B.Ultrasonic Ranging System for the Second Circuit Design </p><p> System is characteri
18、zed 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 fac
19、ilitate 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 Ranging circuits and the same circuit, it is omitted. </p&g
20、t;<p> 1,40 kHz ultrasonic pulse generated with the launch </p><p> Ranging system using the ultrasonic sensor of piezoelectric ceramic sensors UCM40, its operating voltage of the pulse signal is 40
21、kHz, which by the single-chip implementation of the following procedures to generate. </p><p> puzel: mov 14h, # 12h; ultrasonic firing continued 200ms </p><p> here: cpl p1.0; output 40kHz sq
22、uare wave </p><p><b> nop; </b></p><p><b> nop; </b></p><p><b> nop; </b></p><p> djnz 14h, here; </p><p><b>
23、 ret </b></p><p> Ranging 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 amplifica
24、tion 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
25、 and P1.2, the working principle and circuit in front of the same location. </p><p> 2, reception and processing of ultrasonic </p><p> Used to receive the first launch of the first pair UCM40
26、R, 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 oscil
27、lator 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 output from the high jum
28、p 8 </p><p> 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-c
29、hip, 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
30、 follows: </p><p> receive1: push psw </p><p><b> push acc </b></p><p> clr ex1; related external interrupt 1 </p><p> jnb p1.1, right; P1.1 pin to 0, r
31、anging from right to interrupt service routine circuit </p><p> jnb p1.2, left; P1.2 pin to 0, to the left ranging circuit interrupt service routine </p><p> return: SETB EX1; open external in
32、terrupt 1 </p><p><b> pop? acc </b></p><p><b> pop? psw </b></p><p><b> reti </b></p><p> right: ...?; right location entrance c
33、ircuit interrupt service routine </p><p> ? Ajmp? Return </p><p> left: ...; left Ranging entrance circuit interrupt service routine </p><p> ? Ajmp? Return </p><p>
34、 3, the calculation of ultrasonic propagation time </p><p> When 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 a
35、nd the launch of ultrasonic reflected wave received time. When you receive the ultrasonic reflected wave, the receiver circuit outputs a negative jump in the end of INT0 or INT1 interrupt request generates a signal, sing
36、le-chip microcomputer in response to external interrupt request, the implementation of the external interrupt service subroutine, read </p><p> RECEIVE0: PUSH PSW </p><p><b> PUSH ACC &l
37、t;/b></p><p> CLR EX0; related external interrupt 0 </p><p> ? MOV R7, TH0; read the time value </p><p> MOV R6, TL0? </p><p><b> CLR C </b></p>
38、;<p> MOV A, R6 </p><p> SUBB A, # 0BBH; calculate the time difference </p><p> MOV 31H, A; storage results </p><p> MOV A, R7 </p><p> SUBB A, # 3CH </p
39、><p> MOV 30H, A? </p><p> SETB EX0; open external interrupt 0 </p><p><b> POP ACC? </b></p><p><b> POP PSW </b></p><p><b>
40、 RETI </b></p><p> D.Fourth, the ultrasonic ranging system software design </p><p> Software is divided into two parts, the main program and interrupt service routine, shown in Figure 3
41、(a) (b) (c) below. Completion of the work of the main program is initialized, each sequence of ultrasonic transmitting and receiving control. </p><p> Interrupt service routines from time to time to complet
42、e 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. </p><p>
43、; E. CONCLUSIONS </p><p> Required 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 desig
44、n 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 sy
45、stems. </p><p> Thoughts: As for why the receiver do not have the transistor amplifier circuit, because the magnification well, CX20106 integrated amplifier, but also with automatic gain control level, magn
46、ification to 76dB, the center frequency is 38k to 40k, is exactly resonant ultrasonic sensors frequency.</p><p><b> 超聲波測距儀</b></p><p> 摘要:提出了一種可以抵消溫度的影響和濕度的變化的新型超聲波測距儀,包括測量單元和參考資料。
47、在每一個單位,重復的一系列脈沖的產(chǎn)生,每有一個重復率,直接關系到各自之間的距離,發(fā)射機和接收機。該脈沖序列提供給各自的計數(shù)器,計數(shù)器的產(chǎn)出的比率,是用來確定被測量的距離。 </p><p><b> 一、背景發(fā)明</b></p><p> 本發(fā)明涉及到儀器的測量距離,最主要的是,這種儀器,其中兩點之間傳輸超聲波。精密機床必須校準。在過去,這已經(jīng)利用機械設備來完成,
48、如卡鉗,微米尺等。不過,使用這種裝置并不利于本身的自動化技術(shù)發(fā)展。據(jù)了解,兩點之間的距離可以通過測量兩點之間的行波傳播時間的決定。這樣的一個波浪型是一種超聲波,或聲波。當超聲波在兩點之間通過時,兩點之間的距離可以由波的速度乘以測量得到的在分離的兩點中波中轉(zhuǎn)的時間。因此,本發(fā)明提供儀器利用超聲波來精確測量兩點之間的距離對象。</p><p> 當任意兩點之間的介質(zhì)是空氣時,聲音的速度取決于溫度和空氣的相對濕度。因
49、此,它是進一步的研究對象,本次的發(fā)明,提供的是獨立于溫度和濕度的變化的新型儀器。 </p><p><b> 綜述發(fā)明</b></p><p> 這項距離測量儀器發(fā)明是根據(jù)上述的一些條件和額外的一些基礎原則完成的,其中包括一個參考單位和測量單位。參考和測量單位是相同的,每個包括一個超聲波發(fā)射機和一個接收機。間隔發(fā)射器和接收器的參考值是一個固定的參考距離,而間距之間
50、的發(fā)射機和接收機的測量單位是有最小距離來衡量的。在每一個單位,發(fā)射器和接收器耦合的一個反饋回路,它會導致發(fā)射器產(chǎn)生超聲脈沖,這是由接收器和接收到一個電脈沖然后被反饋到發(fā)射機轉(zhuǎn)換,從而使重復系列脈沖的結(jié)果。重復率脈沖是成反比關系之間的距離發(fā)射器和接收器。在每一個單位,脈沖提供一個反饋。由于參考的距離是眾所周知的聲速,比例反產(chǎn)出是利用數(shù)學以確定所期望的距離來衡量。由于這兩方面都是相同的影響,溫度和濕度的變化,采取的比例相同,由此產(chǎn)生的測量變
51、得準確。 </p><p><b> 三、詳細說明</b></p><p> 一 超聲波測距原理 </p><p> 1、壓電式超聲波發(fā)生器原理</p><p> 壓電式超聲波發(fā)生器實際上是利用壓電晶體的諧振來工作的。超聲波發(fā)生器內(nèi)部結(jié)構(gòu)如下所示,它有兩個壓電晶片和一個共振板。當它的兩極外加脈沖信號,其頻率等于
52、壓電晶片的固有振蕩頻率時,壓電晶片將會發(fā)生共振,并帶動共振板振動,便產(chǎn)生超聲波。反之,如果兩電極間未外加電壓,當共振板接收到超聲波時,將壓迫壓電晶片作振動,將機械能轉(zhuǎn)換為電信號,這時它就成為超聲波接收器了。</p><p><b> 2、超聲波測距原理</b></p><p> 超聲波發(fā)射器向某一方向發(fā)射超聲波,在發(fā)射時刻的同時開始計時,超聲波在空氣中傳播,途中碰
53、到障礙物就立即返回來,超聲波接收器收到反射波就立即停止計時。超聲波在空氣中的傳播速度為340m/s,根據(jù)計時器記錄的時間t,就可以計算出發(fā)射點距障礙物的距離(s),即:s=340t/2</p><p> 二 超聲波測距系統(tǒng)的電路設計</p><p> 系統(tǒng)的特點是利用單片機控制超聲波的發(fā)射和對超聲波自發(fā)射至接收往返時間的計時,單片機選用8751,經(jīng)濟易用,且片內(nèi)有4K的ROM,便于編程
54、。電路原理圖如圖2所示。其中只畫出前方測距電路的接線圖,左側(cè)和右側(cè)測距電路與前方測距電路相同,故省略之。</p><p> 1、40kHz 脈沖的產(chǎn)生與超聲波發(fā)射</p><p> 測距系統(tǒng)中的超聲波傳感器采用UCM40的壓電陶瓷傳感器,它的工作電壓是40kHz的脈沖信號,這由單片機執(zhí)行下面程序來產(chǎn)生。</p><p> puzel: mov 14h, #12
55、h;超聲波發(fā)射持續(xù)200ms</p><p> here: cpl p1.0 ; 輸出40kHz方波</p><p><b> nop ;</b></p><p><b> nop ;</b></p><p><b> nop ;</b></p
56、><p> djnz 14h,here;</p><p><b> ret</b></p><p> 前方測距電路的輸入端接單片機P1.0端口,單片機執(zhí)行上面的程序后,在P1.0 端口輸出一個40kHz的脈沖信號,經(jīng)過三極管T放大,驅(qū)動超聲波發(fā)射頭UCM40T,發(fā)出40kHz的脈沖超聲波,且持續(xù)發(fā)射200ms。右側(cè)和左側(cè)測 距電路的輸入端分別
57、接P1.1和P1.2端口,工作原理與前方測距電路相同。</p><p> 2、超聲波的接收與處理</p><p> 接收頭采用與發(fā)射頭配對的UCM40R,將超聲波調(diào)制脈沖變?yōu)榻蛔冸妷盒盘?,?jīng)運算放大器IC1A和IC1B兩極放大后加至IC2。IC2是帶有鎖 定環(huán)的音頻譯碼集成塊LM567,內(nèi)部的壓控振蕩器的中心頻率f0=1/1.1R8C3,電容C4決定其鎖定帶寬。調(diào)節(jié)R8在發(fā)射的載頻上,
58、則LM567 輸入信號大于25mV,輸出端8腳由高電平躍變?yōu)榈碗娖?,作為中斷請求信號,送至單片機處理。</p><p> 前方測距電路的輸出端接單片機INT0端口,中斷優(yōu)先級最高,左、右測距電路的輸出通過與門IC3A的輸出接單片機INT1端口,同時單片機P1.3和P1.4接到IC3A的輸入端,中斷源的識別由程序查詢來處理,中斷優(yōu)先級為先右后左。部分源程序如下:</p><p> rec
59、eive1:push psw</p><p><b> push acc</b></p><p> clr ex1 ; 關外部中斷1</p><p> jnb p1.1, right ; P1.1引腳為0,轉(zhuǎn)至右測距電路中斷服務程序</p><p> jnb p1.2, left ;
60、 P1.2引腳為0,轉(zhuǎn)至左測距電路中斷服務程序</p><p> return: SETB EX1; 開外部中斷1</p><p><b> pop? acc</b></p><p><b> pop? psw</b></p><p><b> reti<
61、/b></p><p> right: ...? ; 右測距電路中斷服務程序入口</p><p> ? ajmp? return</p><p> left: ... ; 左測距電路中斷服務程序入口</p><p> ? ajm
62、p? return</p><p> 3、計算超聲波傳播時間</p><p> 在啟動發(fā)射電路的同時啟動單片機內(nèi)部的定時器T0,利用定時器的計數(shù)功能記錄超聲波發(fā)射的時間和收到反射波的時間。當收到超聲波反射波時,接收電路 輸出端產(chǎn)生一個負跳變,在INT0或INT1端產(chǎn)生一個中斷請求信號,單片機響應外部中斷請求,執(zhí)行外部中斷服務子程序,讀取時間差,計算距離。其部分源程序如下:</p&
63、gt;<p> RECEIVE0: PUSH PSW</p><p><b> PUSH ACC</b></p><p> CLR EX0 ; 關外部中斷0</p><p> ? MOV R7, TH0 ; 讀取時間值</p><p> MOV R6, TL0?</p&
64、gt;<p><b> CLR C</b></p><p><b> MOV A, R6</b></p><p> SUBB A, #0BBH; 計算時間差</p><p> MOV 31H, A ; 存儲結(jié)果</p><p><b> MOV
65、 A, R7</b></p><p> SUBB A, #3CH</p><p> MOV 30H, A?</p><p> SETB EX0 ; 開外部中斷0</p><p><b> POP ACC?</b></p><p><b> POP
66、 PSW</b></p><p><b> RETI</b></p><p> 四、超聲波測距系統(tǒng)的軟件設計</p><p> 軟件分為兩部分,主程序和中斷服務程序,如圖3(a)(b)(c) 所示。主程序完成初始化工作、各路超聲波發(fā)射和接收順序的控制。</p><p> 定時中斷服務子程序完成三方向超
67、聲波的輪流發(fā)射,外部中斷服務子程序主要完成時間值的讀取、距離計算、結(jié)果的輸出等工作。</p><p><b> 五、結(jié)論</b></p><p> 對所要求測量范圍30cm~200cm內(nèi)的平面物體做了多次測量發(fā)現(xiàn),其最大誤差為0.5cm,且重復性好??梢娀趩纹瑱C設計的超聲波測距系統(tǒng)具有硬件結(jié)構(gòu)簡單、工作可靠、測量誤差小等特點。因此,它不僅可用于移動機器人,還可用
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
評論
0/150
提交評論