【文章內(nèi)容簡介】
即停止計時。超聲波在空氣中的傳播速度為 340m/s,根據(jù)計時器記錄的時間t,就可以計算出發(fā)射點距障礙物的距離 (s),即: s=340t/2 最常 用的超聲測距的方法是回聲探測法 , 超聲波發(fā)射器向某一方向發(fā)射超聲波,在發(fā)射時刻的同時計數(shù)器開始計時,超聲波在空氣中傳播,途中碰到障礙物面阻擋就立即反射回來,超聲波接收器收到反射回的超聲波就立即停止計時。超聲波在空氣中的傳播速度為 340m/s,根據(jù)計時器記錄的時間 t,就可以計算出發(fā)射點距障礙物面的距離 s,即: s=340t/2。 由于超聲波也是一種聲波,其聲速 V與溫度有關(guān)。在使用時,如果傳播介質(zhì)溫度變化不大,則可近似認為超聲波速度在傳播的過程中是基本不變的。如果對測距精度要求很高,則應(yīng)通過溫度補償?shù)姆椒▽?測量結(jié)果加以數(shù)值校正。聲速確定后, 只要測得超聲波往返的時間,即可求得距離。這就是超聲波測距儀的基本原理。如圖 12所示: 11 t 超聲波發(fā)射 障礙物 S H θ 超聲波接收 圖 12 超聲波的測距原理 ?cosSH? ( 31) )(HLarctg?? ( 32) 式中 :L兩探頭之間中心距離的一半 . 又知道超聲波傳播的距離為 : vtS?2 ( 33) 式中 :v— 超聲波在介質(zhì)中的傳播速度 。 t— 超聲波從發(fā)射到接收所需要的時間 . 將( 3— 2)、( 3— 3)代入( 31)中得: ]c os [21 HLar ctgvtH ? ( 34) 其中 ,超聲波的傳播速度 v 在一定的溫度下是一個常數(shù) (例如在溫度 T=30 度時 ,V=349m/s)。當需要測量的距離 H遠遠大于 L時 ,則 (3— 4)變?yōu)?: vtH 21? ( 35) 所以 ,只要需要測量出超聲波傳播的時間 t,就可以得出測量的距離 H. 時鐘電路的設(shè)計 XTAL1 和 XTAL2 分別為反向放大器的輸入和輸出。該反向放大器可以配置為片內(nèi)振蕩器。石晶振蕩和陶瓷振蕩均 可采用。如采用外部時鐘源驅(qū)動器件, XTAL2 應(yīng)不接。 因為一個機器周期含有 6 個狀態(tài)周期,而每個狀態(tài)周期為 2 個振蕩周期,所以一個機器周期共有 12個振蕩周期,如果外接石英晶體振蕩器的振蕩頻率為 12MHZ, 12 一個振蕩周期為 1/12us,故而一個機器周期為 1us。如圖 13所示為時鐘電路。 CCX12MHZXTAL1XTAL2 圖 13 時鐘電路圖 復(fù)位電路的設(shè)計 復(fù)位方法一般有上電自動復(fù)位和外部按鍵手動復(fù)位,單片機在時鐘電路工作以后 , 在 RESET 端持續(xù)給出 2 個機器周期的高電平時就可以完成復(fù)位操作。例如使用晶振頻率為 12MHz 時,則復(fù)位信號持續(xù)時 間應(yīng)不小于 2us。本設(shè)計采用的是自動復(fù)位電路。如圖 14示為復(fù)位電路。 圖 14 復(fù)位電路圖 聲音報警電路的設(shè)計 如下圖所示,用一個 Speaker 和三極管、電阻接到單片機的 P13 引腳上,構(gòu)成聲音報警電路,如圖 15示為聲音報警電路。 B1蜂鳴器Q58550VCCGND+R132KP23 13 圖 15 聲音報警電路圖 顯示模塊 顯示模塊采用數(shù)碼管顯示接口電路如圖 16 E1D2DP3C4G54H62H9F10A111H12B73H8DS1ABCDE FGDP 1H2H3H4HQ18550Q38550Q48550Q28550VCC1H3H2H4HR4 1KR5 1KR7 1KR6 1KP34P35 P36P37 圖 16 數(shù)碼管電路 4 軟件設(shè)計 主程序工作流程圖 按上述工作原理和硬件結(jié)構(gòu)分析可知 系統(tǒng)主程序工作流程圖如下圖 17所示 ; 14 圖 17 主程序工作流程圖 超聲波探測程序流程圖: 系統(tǒng)初始化 報警結(jié)束 測得距離與設(shè)定值比較,小于 距離比 較,報警是否持續(xù) 開始 啟動報警電路開始報警 再次檢測等待下次報警 結(jié)束 Y N N Y Y N 15 5 測距分析 測距分析 圖 19 超聲波探測程序流程圖 16 注: 1.正文中 表格 與 插圖 的字體一律用 5號宋體 ;英文字母用 Times New Roman 字體; 2.正文各頁的格式請以此頁為標準復(fù)制, 頁腳 中的頁碼用阿拉伯數(shù)字表示; 3.為保證打印效果,學(xué)生在打印前,請將全文字體的顏色統(tǒng)一設(shè)置成 黑色 。 17 (空 2 行) 結(jié) 論 (小 3 號 黑 體 ,居中) (小 4 號宋體, 倍 行距) ???? 18 (空 2 行) 致 謝 (小 3 號 黑 體 ,居中) (小 4 號宋體, 倍行距) ???? 19 (空 2 行) 參 考 文 獻 (小 3 號 黑 體 ,居中) [1] (小 4號宋體,行距 18磅 ) [2] [3] ???? 期刊類例如: [a] 華羅庚,王元 .論一致分布與近似分析 .中國科學(xué), 1973( 4): 339~357 圖書類例如: [b] 傅承義,陳運泰,祁貴中 .地球物理學(xué)基礎(chǔ) .北京:科學(xué)出版社, 1985, 447 外文類例如: [c] Borko H, Bernier C L. Indexing concepts and methods .New York:Academic Pr,1978 ???? 4 位數(shù)碼管顯示模塊 蜂鳴器報警模塊 蜂鳴器報警模塊位數(shù)碼管顯示模塊蜂鳴器報警模塊位數(shù)碼管顯示模塊蜂鳴器報警模塊 20 為你提供優(yōu)秀的畢業(yè)論文參考資料,請您刪除以下內(nèi)容, O(∩ _∩ )O 謝謝!??! A large group of tea merchants on camels and horses from Northwest China39。s Shaanxi province pass through a stop on the ancient Silk Road, Gansu39。s Zhangye city during their journey to Kazakhstan, May 5, 2022. The caravan, consisting of more than 100 camels, three horsedrawn carriages and four support vehicles, started the trip from Jingyang county in Shaanxi on Sept 19, 2022. It will pass through Gansu province and Xinjiang Uygur autonomous region, and finally arrive in Almaty, formerly known as AlmaAta, the largest city in Kazakhstan, and Dungan in Zhambyl province. The trip will cover about 15,000 kilometers and take the caravan more than one year to plete. The caravan is expected to return to Jingyang in March 2022. Then they will e back, carrying specialty products from Kazakhstan A small art troupe founded six decades ago has grown into a household name in the Inner Mongolia autonomous region. In the 1950s, Ulan Muqir Art Troupe was created by nine young musicians, who toured remote villages on horses and performed traditional Mongolian music and dances for nomadic families. The 54yearold was born in Tongliao, in eastern Inner Mongolia and joined the troupe in says there are 74 branch troupes across Inner Mongolia and actors give around 100 shows every year to local nomadic people. I can still recall the days when I toured with the troupe in the early 39。80s. We sat on the back of pickup trucks for hours. The sky was blue, and we couldn39。t help but sing the folk songs, Nasun says. The vastness of Inner Mongolia and the lack of entertainment options for people living there, made their lives lonely. The nomadic people were very excited about our visits, Nasun recalls. We didn39。t have a formal stage. The audience just sat on the grass. Usually, the performances became a big party with local people joining in. For him, the rewarding part about touring isn39。t just about sharing art with nomadic families but also about gaining inspiration for the music and dance. Ulan Muqir