TWI805001B - Method for calculating time-of-flight - Google Patents
Method for calculating time-of-flight Download PDFInfo
- Publication number
- TWI805001B TWI805001B TW110136098A TW110136098A TWI805001B TW I805001 B TWI805001 B TW I805001B TW 110136098 A TW110136098 A TW 110136098A TW 110136098 A TW110136098 A TW 110136098A TW I805001 B TWI805001 B TW I805001B
- Authority
- TW
- Taiwan
- Prior art keywords
- signal
- receiving
- trigger
- flight
- sound wave
- Prior art date
Links
Images
Landscapes
- Control Of Steam Boilers And Waste-Gas Boilers (AREA)
- Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
Abstract
Description
本發明是關於一種飛行時間之計算方法,且特別是關於一種聲波通過熱源後的飛行時間之計算方法。 The present invention relates to a calculation method of flight time, and in particular to a calculation method of flight time after sound waves pass through a heat source.
聲波的傳遞速度與介質的種類、介質的狀態與外在的環境影響有關,當聲波通過一熱源時,其聲波訊號的強度與波形均會產生變動。換言之,當聲波訊號通過熱源時會導致波形變異進而影響聲波訊號中峰值的大小,從而導致一般常見以峰對峰值,計算聲波飛行時間上的誤差。此外,經量測與模擬確認,上述之波形的變異無法經由理論進行校正。 The transmission speed of the sound wave is related to the type of medium, the state of the medium and the influence of the external environment. When the sound wave passes through a heat source, the intensity and waveform of the sound wave signal will change. In other words, when the sound wave signal passes through the heat source, it will cause waveform variation and affect the magnitude of the peak value in the sound wave signal, thus resulting in an error in calculating the time of flight of the sound wave based on the common peak-to-peak value. In addition, as confirmed by measurement and simulation, the above-mentioned variation of the waveform cannot be corrected theoretically.
本發明之目的在於提出一種飛行時間之計算方法包括:由發射傳感器發射聲波;由接收傳感器接收聲波並將聲波轉換為接收端訊號;對接收端訊號執行快速傅立葉轉換以取得接收端訊號的主頻率範圍;由帶通濾波器根據主頻率範圍對接收端訊號進行濾波以取得主訊號;將主訊 號輸入施密特觸發器以產生觸發訊號;根據觸發訊號來取得聲波的接收時點;及根據接收時點以及發射傳感器發射聲波的發射時點來計算出聲波的飛行時間。 The object of the present invention is to propose a calculation method of flight time, which includes: transmitting sound waves by the transmitting sensor; receiving the sound waves by the receiving sensor and converting the sound waves into receiving end signals; performing fast Fourier transform on the receiving end signals to obtain the main frequency of the receiving end signals range; the band-pass filter filters the signal at the receiving end according to the main frequency range to obtain the main signal; the main signal Input the Schmitt trigger to generate a trigger signal; obtain the receiving time point of the sound wave according to the trigger signal;
在一些實施例中,上述聲波的飛行時間為接收時點與發射時點的差值,上述聲波的聲速為發射傳感器與接收傳感器之間的距離與飛行時間的比值。 In some embodiments, the time-of-flight of the sound wave is the difference between the receiving time point and the emitting time point, and the sound velocity of the sound wave is the ratio of the distance between the transmitting sensor and the receiving sensor to the time-of-flight.
在一些實施例中,上述聲波的接收時點為觸發訊號的第一個峰值所對應的時點。 In some embodiments, the receiving time point of the sound wave is the time point corresponding to the first peak value of the trigger signal.
在一些實施例中,上述飛行時間之計算方法更包括:由帶拒濾波器根據主頻率範圍對主訊號進行濾波以取得雜訊訊號;將雜訊訊號的強度乘上比例常數以取得高閥值;以高閥值作為施密特觸發器的高觸發準位;及以高閥值的負值作為施密特觸發器的低觸發準位。 In some embodiments, the calculation method of the time-of-flight further includes: filtering the main signal by a band-rejection filter according to the main frequency range to obtain a noise signal; multiplying the strength of the noise signal by a proportional constant to obtain a high threshold ; The high threshold is used as the high trigger level of the Schmitt trigger; and the negative value of the high threshold is used as the low trigger level of the Schmitt trigger.
在一些實施例中,上述雜訊訊號的強度為雜訊訊號的方均根值。 In some embodiments, the strength of the noise signal is the root mean square value of the noise signal.
在一些實施例中,上述飛行時間之計算方法更包括:在取得聲波的接收時點之前,對觸發訊號進行連續性判斷。 In some embodiments, the above-mentioned calculation method of the time-of-flight further includes: before obtaining the receiving time point of the sound wave, performing a continuity judgment on the trigger signal.
在一些實施例中,上述觸發訊號係由多個方波所組成,上述連續性判斷包括:判斷每個方波的波寬是否大於波寬閥值;及將判斷結果為是的方波自觸發訊號中濾除。 In some embodiments, the above-mentioned trigger signal is composed of multiple square waves, and the above-mentioned continuity judgment includes: judging whether the width of each square wave is greater than the width threshold; filtered out from the signal.
在一些實施例中,上述飛行時間之計算方法更包括:在取得聲波的接收時點之前,對觸發訊號進行長度判斷。 In some embodiments, the above-mentioned calculation method of the time-of-flight further includes: before obtaining the receiving time point of the sound wave, judging the length of the trigger signal.
在一些實施例中,上述觸發訊號係由多個方波集合 所組成,上述長度判斷包括:判斷每個方波集合的總時長是否小於時長閥值;及將判斷結果為是的方波集合自觸發訊號中濾除。 In some embodiments, the above-mentioned trigger signal is composed of multiple square waves The above-mentioned length judgment includes: judging whether the total duration of each square wave set is less than a duration threshold; and filtering out the square wave set whose judging result is yes from the trigger signal.
在一些實施例中,在對觸發訊號進行長度判斷之前,對觸發訊號進行連續性判斷。 In some embodiments, the continuity determination is performed on the trigger signal before the length determination is performed on the trigger signal.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.
120:發射傳感器 120: launch sensor
140:接收傳感器 140: Receive sensor
160:控制單元 160: control unit
aw:聲波 aw: sound wave
BPF:帶通濾波器 BPF: Band Pass Filter
BSF:帶拒濾波器 BSF: band rejection filter
c1:控制訊號 c1: control signal
c2:接收端訊號 c2: Receiver signal
CST:觸發訊號 CST: trigger signal
D:距離 D: distance
d1~d5:波寬 d1~d5: wave width
f1:主訊號 f1: main signal
f2:雜訊訊號 f2: noise signal
FFT:快速傅立葉轉換 FFT: Fast Fourier Transform
FR:主頻率範圍 FR: main frequency range
HL:高觸發準位 HL: high trigger level
LL:低觸發準位 LL: Low trigger level
RMS:方均根值 RMS: root mean square value
S1~S7:步驟 S1~S7: steps
SCM:施密特觸發器 SCM: Schmitt Trigger
ST:觸發訊號 ST: trigger signal
T2:接收時點 T2: Receiving time point
w1~w5:方波 w1~w5: square wave
x1~x3:方波集合 x1~x3: square wave set
從以下結合所附圖式所做的詳細描述,可對本發明之態樣有更佳的了解。需注意的是,根據業界的標準實務,各特徵並未依比例繪示。事實上,為了使討論更為清楚,各特徵的尺寸都可任意地增加或減少。 A better understanding of aspects of the present invention can be obtained from the following detailed description in conjunction with the accompanying drawings. It is to be noted that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or decreased for clarity of discussion.
[圖1]係根據本發明的實施例之飛行時間之計算方法的流程圖。 [ FIG. 1 ] is a flowchart of a calculation method of flight time according to an embodiment of the present invention.
[圖2]係根據本發明的實施例之計算飛行時間之架構的示意圖。 [ FIG. 2 ] is a schematic diagram of a framework for calculating flight time according to an embodiment of the present invention.
[圖3]係根據本發明的實施例之對接收端訊號執行快速傅立葉轉換後之振幅頻譜的示意圖。 [ FIG. 3 ] is a schematic diagram of the amplitude spectrum after performing fast Fourier transform on the signal at the receiving end according to an embodiment of the present invention.
[圖4]係根據本發明的實施例之以帶通濾波器對接收端訊號進行濾波以取得主訊號的示意圖。 [ FIG. 4 ] is a schematic diagram of filtering a receiving end signal with a bandpass filter to obtain a main signal according to an embodiment of the present invention.
[圖5]係根據本發明的實施例之將主訊號輸入施密特觸發器以產生觸發訊號從而取得接收時點的示意圖。 [ FIG. 5 ] is a schematic diagram of inputting a main signal into a Schmitt trigger to generate a trigger signal to obtain a receiving time point according to an embodiment of the present invention.
[圖6]係根據本發明的實施例之飛行時間之計算方法的 步驟的詳細細節流程圖。 [Fig. 6] is the calculation method of flight time according to an embodiment of the present invention Step-by-step detailed flow chart.
[圖7]係根據本發明的實施例之以帶拒濾波器對主訊號進行濾波以取得雜訊訊號的示意圖。 [ FIG. 7 ] is a schematic diagram of filtering a main signal with a band rejection filter to obtain a noise signal according to an embodiment of the present invention.
[圖8]係根據本發明的實施例之連續性判斷的說明示意圖。 [ Fig. 8 ] is an explanatory diagram of continuity judgment according to an embodiment of the present invention.
[圖9]係根據本發明的實施例之長度判斷的說明示意圖。 [ Fig. 9 ] is an explanatory diagram illustrating length judgment according to an embodiment of the present invention.
以下仔細討論本發明的實施例。然而,可以理解的是,實施例提供許多可應用的概念,其可實施於各式各樣的特定內容中。所討論、揭示之實施例僅供說明,並非用以限定本發明之範圍。關於本文中所使用之『第一』、『第二』、…等,並非特別指次序或順位的意思,其僅為了區別以相同技術用語描述的元件或操作。 Embodiments of the invention are discussed in detail below. It should be appreciated, however, that the embodiments provide many applicable concepts that can be implemented in a wide variety of specific contexts. The discussed and disclosed embodiments are for illustration only, and are not intended to limit the scope of the present invention. The terms “first”, “second”, etc. used herein do not specifically refer to a sequence or sequence, but are only used to distinguish elements or operations described with the same technical terms.
本發明提出了一種飛行時間之計算方法,利用聲波訊號的第一個轉折點(changing point),優化聲波訊號到達時間點的判別,因聲波訊號的第一個轉折點受通過熱源所產生的干擾影響最小,可以之計算聲波的飛行時間(即聲波由發射到接收的時間差),除了更貼近理論發射端與接收端的時間差以外,聲波訊號的第一個轉折點亦符合穩定參考點的條件,故本發明提出以辨識聲波訊號的第一個轉折點的方式,使聲波於通過熱源後,被接收的訊號的到達時間點可以更佳準確地被判讀。 The present invention proposes a calculation method of flight time, using the first changing point of the sound wave signal to optimize the judgment of the arrival time of the sound wave signal, because the first turning point of the sound wave signal is least affected by the interference generated by the heat source , it is possible to calculate the flight time of the sound wave (that is, the time difference from the sound wave to the receiving end). In addition to being closer to the time difference between the theoretical transmitting end and the receiving end, the first turning point of the sound wave signal also meets the conditions of a stable reference point. Therefore, the present invention proposes By identifying the first turning point of the sound wave signal, the arrival time point of the received signal after the sound wave passes through the heat source can be judged more accurately.
據此,本發明提出一種基於施密特觸發器方法(Schmitt Trigger Method)的飛行時間之計算方法,將聲波訊號轉化為觸發訊號,以利於準確地辨識出聲波訊號的第一個轉折點之時間點,從而可準確地計算出聲波的飛行時間而不受到經過熱源所造成的影響。 Accordingly, the present invention proposes a time-of-flight calculation method based on the Schmitt Trigger Method (Schmitt Trigger Method), which converts the sound wave signal into a trigger signal, so as to accurately identify the time point of the first turning point of the sound wave signal , so that the flight time of the sound wave can be accurately calculated without being affected by the heat source.
圖1係根據本發明的實施例之飛行時間之計算方法的流程圖。圖2係根據本發明的實施例之計算飛行時間之架構的示意圖。請一併參照圖1與圖2。 FIG. 1 is a flowchart of a calculation method of flight time according to an embodiment of the present invention. FIG. 2 is a schematic diagram of an architecture for calculating flight time according to an embodiment of the present invention. Please refer to Figure 1 and Figure 2 together.
本發明的實施例之飛行時間之計算方法包含步驟S1~S7。於步驟S1,由發射傳感器120發射一聲波aw。在本發明的實施例中,發射傳感器120可例如為超音波發射器、超聲波發射器、投音器。在本發明的實施例中,發射傳感器120例如為使用電能和陶瓷換能器將能量轉換為聲波形式發射。
The calculation method of flight time in the embodiment of the present invention includes steps S1-S7. In step S1 , an acoustic wave aw is emitted by the
發射傳感器120電性耦接至控制單元160(例如控制電路),控制單元160用以發送一控制訊號c1以觸發發射傳感器120發射聲波aw,因此發射傳感器120發射聲波aw的發射時點T1即可視為控制單元160發送控制訊號c1至發射傳感器120的時點,換言之,發射時點T1為控制單元160的已知參數之一。
The
於步驟S2,由接收傳感器140接收聲波aw並將聲波aw轉換為接收端訊號c2。在本發明的實施例中,接收傳感器140可例如為超音波接收器、超聲波接收器、受音器。在本發明的實施例中,接收傳感器140例如為使用
壓電材料將聲波aw轉換為電訊號(接收端訊號c2)。
In step S2, the receiving
接收傳感器140電性耦接至控制單元160(例如控制電路),控制單元160用以接收接收端訊號c2並進行後續處理。
The receiving
於步驟S3,控制單元160對於自接收傳感器140所接收到的接收端訊號c2執行快速傅立葉轉換FFT(Fast Fourier Transform)以取得接收端訊號c2的主頻率範圍FR。
In step S3 , the
圖3係根據本發明的實施例之對接收端訊號c2執行快速傅立葉轉換FFT後之振幅頻譜(amplitude spectrum)的示意圖,圖3之振幅頻譜的橫軸為頻率,單位為赫茲(Hz),圖3之振幅頻譜的縱軸為經正規化後的振幅(normalized amplitude),故為無單位,且以0至1表示不同頻率所對應的振幅有所不同。舉例而言,圖3所示的結果示出振幅最強之主頻率範圍FR約為1300~1400Hz,然而上述數值僅為例示,本發明不限於此。 FIG. 3 is a schematic diagram of the amplitude spectrum (amplitude spectrum) after performing fast Fourier transform FFT on the receiving end signal c2 according to an embodiment of the present invention. The horizontal axis of the amplitude spectrum in FIG. 3 is frequency, and the unit is Hertz (Hz). The vertical axis of the amplitude spectrum of 3 is the normalized amplitude (normalized amplitude), so it is unitless, and the amplitudes corresponding to different frequencies are different with 0 to 1. For example, the results shown in FIG. 3 show that the main frequency range FR with the strongest amplitude is about 1300-1400 Hz, but the above numerical values are only examples, and the present invention is not limited thereto.
於步驟S4,控制單元160以帶通濾波器BPF(bandpass filter)根據主頻率範圍FR對接收端訊號c2進行濾波以取得主訊號f1。圖4係根據本發明的實施例之以帶通濾波器BPF對接收端訊號c2進行濾波以取得主訊號f1的示意圖。具體而言,於步驟S4透過帶通濾波器BPF來將接收端訊號c2中之不期望的雜訊部分進行濾除。
In step S4, the
於步驟S5,控制單元160將主訊號f1輸入施密特觸發器SCM(Schmitt Trigger)以產生觸發訊號ST。於步驟S6,控制單元160根據觸發訊號ST來取得聲波aw的接收時點T2。
In step S5 , the
在本發明的實施例中,聲波aw的接收時點T2為觸發訊號ST的第一個峰值所對應的時點。圖5係根據本發明的實施例之將主訊號f1輸入施密特觸發器SCM以產生觸發訊號ST從而取得接收時點T2的示意圖。 In the embodiment of the present invention, the time point T2 of receiving the sound wave aw is the time point corresponding to the first peak value of the trigger signal ST. FIG. 5 is a schematic diagram of inputting the main signal f1 into the Schmitt trigger SCM to generate the trigger signal ST to obtain the receiving time point T2 according to an embodiment of the present invention.
於步驟S7,控制單元160根據接收時點T2以及發射傳感器120發射聲波aw的發射時點T1來計算出聲波aw的飛行時間TOF。
In step S7 , the
在本發明的實施例中,聲波aw的飛行時間TOF為接收時點T2與發射時點T1的差值,即TOF=T2-T1。在本發明的實施例中,聲波aw的聲速vs為發射傳感器120與接收傳感器140之間的距離D與飛行時間TOF的比值,即vs=D/TOF。
In an embodiment of the present invention, the time-of-flight TOF of the acoustic wave aw is the difference between the receiving time point T2 and the transmitting time point T1, that is, TOF=T2-T1. In an embodiment of the present invention, the sound velocity vs of the sound wave aw is the ratio of the distance D between the transmitting
關於步驟S3至步驟S5的詳細細節將在以下根據圖6來做進一步的說明。圖6係根據本發明的實施例之飛行時間之計算方法的步驟S3至步驟S5的詳細細節流程圖。 The details of step S3 to step S5 will be further described below according to FIG. 6 . FIG. 6 is a detailed flow chart of steps S3 to S5 of the calculation method of flight time according to an embodiment of the present invention.
如圖6所示,對接收端訊號c2執行快速傅立葉轉換FFT以取得接收端訊號c2的主頻率範圍FR,以帶通濾波器BPF根據接收端訊號c2的主頻率範圍FR對接收端訊號c2進行濾波以取得主訊號f1。 As shown in Figure 6, the fast Fourier transform FFT is performed on the receiving signal c2 to obtain the main frequency range FR of the receiving signal c2, and the receiving end signal c2 is processed by the bandpass filter BPF according to the main frequency range FR of the receiving end signal c2 Filter to obtain the main signal f1.
本發明的實施例之飛行時間之計算方法更包括:由帶拒濾波器BSF(bandstop filter)根據接收端訊號c2的主頻率範圍FR對主訊號f1進行濾波以取得雜訊訊號f2。圖7係根據本發明的實施例之以帶拒濾波器BSF對主訊號f1進行濾波以取得雜訊訊號f2的示意圖。具體而言,本發明透過帶拒濾波器BSF來取得主訊號f1的雜訊準位。 The time-of-flight calculation method of the embodiment of the present invention further includes: filtering the main signal f1 by a bandstop filter BSF (bandstop filter) according to the main frequency range FR of the receiving signal c2 to obtain the noise signal f2. FIG. 7 is a schematic diagram of filtering the main signal f1 with a band rejection filter BSF to obtain a noise signal f2 according to an embodiment of the present invention. Specifically, the present invention obtains the noise level of the main signal f1 through the band rejection filter BSF.
請再次參照圖6,本發明的實施例之飛行時間之計算方法更包括:將雜訊訊號f2的強度乘上比例常數K以取得高閥值;以高閥值作為施密特觸發器SCM的高觸發準位HL;及以高閥值的負值作為施密特觸發器SCM的低觸發準位LL。在本發明的實施例中,上述雜訊訊號f2的強度為雜訊訊號f2的方均根值RMS(Root Mean Square)。換言之,HL=RMS(f2)×(+K);LL=RMS(f2)×(-K)。在本發明的實施例中,比例常數為使用者依實際情形所選用的正值數值,例如正整數或帶有小數點的正數。圖7還示出了主訊號f1、雜訊訊號f2、高觸發準位HL、低觸發準位LL的示意圖。 Please refer to Fig. 6 again, the calculation method of the time of flight of the embodiment of the present invention further includes: multiplying the strength of the noise signal f2 by the proportional constant K to obtain a high threshold; using the high threshold as the Schmitt trigger SCM the high trigger level HL; and the negative value of the high threshold as the low trigger level LL of the Schmitt trigger SCM. In an embodiment of the present invention, the strength of the noise signal f2 is the RMS (Root Mean Square) of the noise signal f2. In other words, HL=RMS(f2)×(+K); LL=RMS(f2)×(−K). In the embodiment of the present invention, the proportional constant is a positive value selected by the user according to the actual situation, such as a positive integer or a positive number with a decimal point. FIG. 7 also shows a schematic diagram of the main signal f1, the noise signal f2, the high trigger level HL, and the low trigger level LL.
請再次參照圖6,將主訊號f1輸入施密特觸發器SCM,施密特觸發器SCM根據高觸發準位HL與低觸發準位LL來對於主訊號f1進行電位觸發:當主訊號f1的訊號強度高於高觸發準位HL時,施密特觸發器SCM會輸出高電平的觸發訊號ST;當主訊號f1的訊號強度低於低觸發準位LL時,施密特觸發器SCM會輸出低電平的觸發訊號ST。圖5示出了主訊號f1與觸發訊號ST的示意圖。 Please refer to Figure 6 again, the main signal f1 is input to the Schmitt trigger SCM, and the Schmitt trigger SCM performs potential triggering on the main signal f1 according to the high trigger level HL and the low trigger level LL: when the main signal f1 When the signal strength is higher than the high trigger level HL, the Schmitt trigger SCM will output a high level trigger signal ST; when the signal strength of the main signal f1 is lower than the low trigger level LL, the Schmitt trigger SCM will output Outputting a low-level trigger signal ST. FIG. 5 shows a schematic diagram of the main signal f1 and the trigger signal ST.
由於施密特觸發器SCM會將主訊號f1中符合高觸發準位HL與低觸發準位LL之條件的部分全部觸發,因此若主訊號f1中仍含有較大雜訊,或者是回波訊號,則會使接收時點T2無法被正確地選出,為了讓飛行時間之計算方法的結果符合預期,本發明進一步提出了在執行完施密特觸發器SCM之後且在取得聲波aw的接收時點T2之前,還需執行連續性判斷以及長度判斷,以利於取得更佳準確的接收時點T2。 Since the Schmitt trigger SCM will trigger all the parts of the main signal f1 that meet the conditions of the high trigger level HL and the low trigger level LL, if the main signal f1 still contains large noise, or the echo signal , then the receiving time point T2 cannot be selected correctly. In order to make the result of the calculation method of the flight time meet expectations, the present invention further proposes that after the Schmidt trigger SCM is executed and before the receiving time point T2 of the acoustic wave aw is obtained, , it is also necessary to perform continuity judgment and length judgment, so as to obtain a better and more accurate receiving time point T2.
在本發明的實施例中,飛行時間之計算方法更包括:在取得聲波aw的接收時點T2之前,對施密特觸發器SCM所產生的觸發訊號ST進行連續性判斷。在本發明的實施例中,觸發訊號ST係由多個方波所組成,上述之連續性判斷包括:判斷每個方波的波寬是否大於波寬閥值;及將判斷結果為是的方波自觸發訊號ST中濾除。具體而言,觸發訊號ST的每個方波的波寬應為相近甚至一致,故波寬太長的方波都應被濾除掉。 In an embodiment of the present invention, the calculation method of the flight time further includes: before obtaining the receiving time point T2 of the sound wave aw, performing a continuity judgment on the trigger signal ST generated by the Schmitt trigger SCM. In an embodiment of the present invention, the trigger signal ST is composed of multiple square waves. The above-mentioned continuity judgment includes: judging whether the width of each square wave is greater than the width threshold; waves are filtered out from the trigger signal ST. Specifically, the width of each square wave of the trigger signal ST should be similar or even the same, so the square waves with too long width should be filtered out.
圖8係根據本發明的實施例之連續性判斷的說明示意圖,圖8的粗框為部份的觸發訊號且用以表示正確的觸發訊號CST,圖8的粗框以外者為不期望的雜訊部分。如圖8所示,方波w1的波寬d1、方波w2的波寬d2、方波w3的波寬d3、方波w4的波寬d4、方波w5的波寬d5經判斷是大於波寬閥值(例如為1000秒,此例僅為例示,本發明不限於此),因此,將方波w1、方波w2、方波w3、方波w4、方波w5自觸發訊號ST中濾除。 FIG. 8 is an explanatory schematic diagram of continuity judgment according to an embodiment of the present invention. The thick frame in FIG. 8 is a part of the trigger signal and is used to represent the correct trigger signal CST. Those outside the thick frame in FIG. news section. As shown in Figure 8, the wave width d1 of square wave w1, the wave width d2 of square wave w2, the wave width d3 of square wave w3, the wave width d4 of square wave w4, and the wave width d5 of square wave w5 are judged to be greater than wave width Wide threshold (for example, 1000 seconds, this example is only an example, the present invention is not limited thereto), therefore, square wave w1, square wave w2, square wave w3, square wave w4, square wave w5 are filtered from the trigger signal ST remove.
在本發明的實施例中,飛行時間之計算方法更包括:在取得聲波aw的接收時點T2之前,對施密特觸發器SCM所產生的觸發訊號ST進行長度判斷。在本發明的實施例中,觸發訊號ST係由多個方波集合所組成,上述之長度判斷包括:判斷每個方波集合的總時長是否小於時長閥值;及將判斷結果為是的方波集合自觸發訊號中濾除。具體而言,由於主訊號f1具有已知的特定波長且每一個週期波應該是緊密相鄰且彼此距離相近,故執行施密特觸發器SCM後的觸發訊號ST應該要彼此緊鄰且此緊鄰的波形應具有足夠長的總時長,此長度判斷即是把觸發訊號ST彼此之間距離太短的地方濾除。 In an embodiment of the present invention, the calculation method of the time-of-flight further includes: before obtaining the receiving time point T2 of the sound wave aw, judging the length of the trigger signal ST generated by the Schmitt trigger SCM. In an embodiment of the present invention, the trigger signal ST is composed of a plurality of square wave sets, and the above-mentioned length judgment includes: judging whether the total duration of each square wave set is less than the duration threshold; The square wave set of is filtered from the trigger signal. Specifically, since the main signal f1 has a known specific wavelength and each periodic wave should be closely adjacent and close to each other, the trigger signals ST after executing the Schmitt trigger SCM should be close to each other and this close The total duration of the waveform should be long enough, and this length judgment is to filter out the places where the distance between the trigger signals ST is too short.
圖9係根據本發明的實施例之長度判斷的說明示意圖,圖9的左圖為執行長度判斷之前的主訊號f1與觸發訊號ST的示意圖,圖9的右圖為執行長度判斷之後的主訊號f1與觸發訊號ST的示意圖。如圖9所示,觸發訊號ST由方波集合x1、方波集合x2、方波集合x3組成(應注意的是,圖9中僅示出方波集合x3的一部分),且經判斷,方波集合x1的總時長、方波集合x2的總時長是小於時長閥值(例如為10000秒,此例僅為例示,本發明不限於此),因此,將方波集合x1、方波集合x2自觸發訊號ST中濾除,而方波集合x3即為所期望之正確的觸發訊號。 Fig. 9 is a schematic diagram illustrating the length judgment according to an embodiment of the present invention. The left diagram of Fig. 9 is a schematic diagram of the main signal f1 and the trigger signal ST before execution of the length judgment, and the right diagram of Fig. 9 is the main signal after execution of the length judgment Schematic diagram of f1 and trigger signal ST. As shown in Figure 9, the trigger signal ST is composed of a square wave set x1, a square wave set x2, and a square wave set x3 (it should be noted that only a part of the square wave set x3 is shown in Figure 9), and after judgment, the square wave set The total duration of the wave set x1 and the total duration of the square wave set x2 are less than the duration threshold (for example, 10000 seconds, this example is only for illustration, and the present invention is not limited thereto), therefore, the square wave set x1, square wave The wave set x2 is filtered out from the trigger signal ST, and the square wave set x3 is the expected correct trigger signal.
在本發明的實施例中,在進行長度判斷之前,對觸發訊號ST進行連續性判斷。換言之,在本發明的實施例中,在執行完施密特觸發器SCM之後,先執行連續性判斷,接 著執行長度判斷,最後再由執行完長度判斷與連續性判斷之後的觸發訊號ST來準確地取得聲波aw的接收時點T2。 In the embodiment of the present invention, the continuity judgment is performed on the trigger signal ST before the length judgment is performed. In other words, in the embodiment of the present invention, after executing the Schmitt trigger SCM, the continuity judgment is first performed, and then Then execute the length judgment, and finally obtain the receiving time point T2 of the sound wave aw accurately by the trigger signal ST after the execution of the length judgment and the continuity judgment.
經實測證實,針對未通過熱源的聲波及通過熱源的聲波,對於接收端所接收到的接收端訊號分別使用傳統之聲速計算法(最大值取法(Max peak取法))及本發明揭示之應用施密特觸發器SCM之飛行時間之計算方法去判斷聲速,結果顯示,不論是未通過熱源的聲波或者是通過熱源的聲波,本發明揭示之飛行時間之計算方法的結果都比傳統之聲速計算法的結果更加穩定,而且對於通過熱源的聲波而言,接收端訊號的最大值會因為通過熱源而發生變化,從而導致計算出的聲速出現較大的誤差,甚至出現比未通過熱源之聲速還慢的不合理現象,相對而言,本發明揭示之飛行時間之計算方法,不僅不會出現極大誤差的極值,其相同環境狀況下之資料整體分佈也比傳統之聲速計算法更為穩定。 It has been confirmed by actual measurement that for the sound waves that have not passed through the heat source and the sound waves that have passed through the heat source, the traditional sound velocity calculation method (Max peak method) and the application method disclosed in the present invention are respectively used for the receiving end signal received by the receiving end. The calculation method of the time-of-flight of the Mitte trigger SCM is used to judge the speed of sound, and the results show that, whether it is a sound wave that has not passed through a heat source or a sound wave that passes through a heat source, the results of the calculation method for the time-of-flight disclosed by the present invention are all better than the traditional calculation method for the speed of sound. The result is more stable, and for the sound wave passing through the heat source, the maximum value of the signal at the receiving end will change due to passing through the heat source, which will lead to a large error in the calculated sound velocity, and even appear slower than the sound velocity not passing through the heat source Relatively speaking, the calculation method of flight time disclosed by the present invention not only does not have the extreme value of great error, but also the overall distribution of data under the same environmental conditions is more stable than the traditional calculation method of speed of sound.
綜合上述,本發明提出一種飛行時間之計算方法,應用施密特觸發器方法,能夠避免聲波通過熱源時,其聲波訊號的強度與波形會產生變動的影響,因此,即使在聲波通過熱源時,仍能夠準確地計算出聲波的飛行時間。 To sum up the above, the present invention proposes a calculation method of time of flight, applying the Schmidt trigger method, which can avoid the impact of changes in the intensity and waveform of the sound wave signal when the sound wave passes through the heat source. Therefore, even when the sound wave passes through the heat source, The time-of-flight of sound waves can still be accurately calculated.
以上概述了數個實施例的特徵,因此熟習此技藝者可以更了解本發明的態樣。熟習此技藝者應了解到,其可輕易地把本發明當作基礎來設計或修改其他的製程與結構,藉此實現和在此所介紹的這些實施例相同的目標及/或達 到相同的優點。熟習此技藝者也應可明白,這些等效的建構並未脫離本發明的精神與範圍,並且他們可以在不脫離本發明精神與範圍的前提下做各種的改變、替換與變動。 The features of several embodiments are outlined above, so those skilled in the art can better understand aspects of the present invention. Those skilled in the art will appreciate that they can readily use the present invention as a basis to design or modify other processes and structures to achieve the same goals and/or achieve the same goals as the embodiments described herein. to the same advantage. Those skilled in the art should also understand that these equivalent constructions do not depart from the spirit and scope of the present invention, and that they can make various changes, substitutions and alterations without departing from the spirit and scope of the present invention.
S1~S7 : 步驟S1~S7 : Steps
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110136098A TWI805001B (en) | 2021-09-28 | 2021-09-28 | Method for calculating time-of-flight |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110136098A TWI805001B (en) | 2021-09-28 | 2021-09-28 | Method for calculating time-of-flight |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202314287A TW202314287A (en) | 2023-04-01 |
TWI805001B true TWI805001B (en) | 2023-06-11 |
Family
ID=86943363
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110136098A TWI805001B (en) | 2021-09-28 | 2021-09-28 | Method for calculating time-of-flight |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI805001B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201337305A (en) * | 2012-02-22 | 2013-09-16 | Excelitas Technologies Singapore Pte Ltd | Passive infrared range finding proximity detector |
US20200158853A1 (en) * | 2018-11-15 | 2020-05-21 | Texas Instruments Incorporated | Combined phase and time-of-flight measurement |
US20200209392A1 (en) * | 2018-12-28 | 2020-07-02 | Texas Instruments Incorporated | Multi frequency long range distance detection for amplitude modulated continuous wave time of flight cameras |
TW202111309A (en) * | 2019-09-11 | 2021-03-16 | 美商惠普發展公司有限責任合夥企業 | Measurement devices |
-
2021
- 2021-09-28 TW TW110136098A patent/TWI805001B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201337305A (en) * | 2012-02-22 | 2013-09-16 | Excelitas Technologies Singapore Pte Ltd | Passive infrared range finding proximity detector |
US20200158853A1 (en) * | 2018-11-15 | 2020-05-21 | Texas Instruments Incorporated | Combined phase and time-of-flight measurement |
US20200209392A1 (en) * | 2018-12-28 | 2020-07-02 | Texas Instruments Incorporated | Multi frequency long range distance detection for amplitude modulated continuous wave time of flight cameras |
TW202111309A (en) * | 2019-09-11 | 2021-03-16 | 美商惠普發展公司有限責任合夥企業 | Measurement devices |
Also Published As
Publication number | Publication date |
---|---|
TW202314287A (en) | 2023-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2005081577A1 (en) | Howling detection method, device, and acoustic device using the same | |
EP2456232B1 (en) | Howling canceller | |
JP2013524601A5 (en) | ||
CN108401218B (en) | Fault diagnosis method for active noise reduction earphone | |
CN108235207B (en) | Method for determining the direction of a useful signal source | |
CN110988881B (en) | Target detection method of vehicle-mounted millimeter wave radar and vehicle-mounted radar system thereof | |
TW201640919A (en) | Low-cost method for testing the signal-to-noise ratio of MEMS microphones | |
TWI805001B (en) | Method for calculating time-of-flight | |
US20230361739A1 (en) | Analyzing and determining conference audio gain levels | |
CN1288861C (en) | Signal distortion measurement and assessment system and method | |
US7649619B2 (en) | Optical time domain reflectometer | |
US20070230355A1 (en) | Test apparatus and test method | |
JPH1023590A (en) | Microphone device | |
CN103558410B (en) | Based on the jamproof device and method of ultrasonic wind velocity indicator that extrinsic frequency excites | |
US11516607B2 (en) | Method and device for controlling the distortion of a loudspeaker system on board a vehicle | |
JP2014235131A (en) | Simple device for testing strength for withstanding electromagnetic interference wave | |
US10103770B2 (en) | Transceiver circuits | |
CN106352821B (en) | A kind of rope capacity measurement method and device based on low-frequency ultrasonic waves | |
JP2012220466A (en) | Optical range-finding apparatus | |
JP5262820B2 (en) | Signal detection apparatus and signal detection method | |
JP2020057984A (en) | Parametric speaker and signal processing device | |
CN110188509B (en) | Continuous wave klystron transmitter real-time fault prediction method based on multiple degradation models | |
JP7460281B2 (en) | Radar receiver and radar equipment | |
CN219266180U (en) | Ultrasonic nondestructive testing system | |
CN111650551B (en) | Broadband underwater acoustic signal energy equalization method and system |