【正文】
反射特性,通過發(fā)生器不斷發(fā)射出 40KHz超聲波遇到障礙物后反射會反射波,在通過接收器接收發(fā)射波信號,并將其轉換為電信號。自 1979 年第一臺單片機誕生以來,單片機作為微型計算機一個分支,以其 體積小、功能多、應用靈活等諸多優(yōu)勢,得到越來越廣泛的應用。要 求電路簡潔,制作方便、性能可靠。 IC2 是帶有鎖定環(huán)的音頻譯碼 。 d 為被測物與測發(fā)生器鄭州鐵路職業(yè)技術學院 2022屆自考本科生畢業(yè)論文(設計) 第 5 頁 共 27 頁 的距離, s為聲波的來回路程, c為聲速, t 為聲波來回所用的時間。 由于采用的電路使用了很多的集成電路。本課題屬于近距離測量,可以采用常用的壓電式超聲波換能 器來實現。采用 AT89C52來實現對 CX20226A紅外接收芯片和 TCT4010系列超聲波轉換模塊的控制。 設計框圖 由單片機產生 40KHz 左右的脈沖并輸出,經調制器將脈沖信號放大和振蕩器振蕩后,由超聲波 發(fā)射器發(fā)射出超聲波,遇到障礙物返回被超聲波接收器接收到后,經過接收檢測裝置對接受信號進行處理和計時器計時后,由單片機計算超聲波發(fā)射器到障礙物之間的距離,并將計算結果由顯示器顯示。 該電路的主要特點有: ⑴ 該產品的互換性好,響應速度快,抗干擾能力強 ,外圍電路簡單,不需要布線直接通過發(fā)射模塊進行無線發(fā)射。 它除了可用 于遙控器、報警器、自動門控制及通信方面外,還可用于工業(yè)上的料位或液位的測量與控制、測距及測厚等方面,應用廣泛。 實現這種功能的電路就叫直流穩(wěn)壓電源,簡稱直流電源。 不過該電路設計現在應用不廣泛,一般都采用集成穩(wěn)壓電路,所以此方案不選用。C ~ 125176。F、 3300181。 單片機系統(tǒng)及顯示電路如下圖所示: 鄭州鐵路職業(yè)技術學院 2022屆自考本科生畢業(yè)論文(設計) 第 12 頁 共 27 頁 OUTS5 RSTC110UFVCCR4 2KIN12MVCCP123P134P145P156P167P178RESET9RXD10TXD11INT012INT113T014T115WR16RD17X218X119P112P101GND20VCC40P0039P0138P0237P0336P0435P0534P0633P0732EA/VP31ALE/P30PSEN29P2728P2627P2526P2425P2324P2223P2122P2021A02A13A24A35A46A57A68A79E19DIR1B018B117B216B414B315B513B612B711GND10VCC20U1 AT89C52U274LS24512345678161514131211109U3 1KVCCVCCVCCR54K7R64K7R74K7R84K7VCC1 2 3 4 5 6 7 816 15 14 13 12 11 10 9U4 510C230PC330PVCCQ1 9012Q2 9012Q3 9012Q4 9012abfcgde117 4 2 1105a b c d e f g3dpdpabfcgdedpabfcgdedpabfcgdedps112s29s38s46DS1SMG0564 圖 單片機系統(tǒng)及顯示電路 鄭州鐵路職業(yè)技術學院 2022屆自考本科生畢業(yè)論文(設計) 第 13 頁 共 27 頁 167。 U 4A74A L S 0 4U 4C74A L S 0 4U 4D74A L S 0 4U 4B74A L S 0 4U 4E74A L S 0 4R 201KR 191KTU S _T 1V C CP 圖 超聲波發(fā)射電路 輸出端采兩個反向器并聯,用以提高驅動能力。 167。定時中斷服務子程序完成超聲波回波接收 , 外部中斷服務子程序主要完成時間值的讀取、距離計算、結果的輸出等工作。超聲波測距器主程序利用外中斷 0 檢測返回超聲波信號,一旦接收到返回超聲波信號( INT0 引腳出現低電平 ),立即進入中斷程序。 void csbcj()。 void k4cl()。 TL0=0x00。 jpjs=0。 if(ssj3) { buffer[2]=0x76。 //將值轉換成 LED 段碼 offmsd()。 一.對電源部分進行調試。 167。超聲測距數字信號采集系統(tǒng) [J].電測與儀表, 2022 年第 8期 . [4]劉曄。 鄭州鐵路職業(yè)技術學院 2022屆自考本科生畢業(yè)論文(設計) 第 23 頁 共 27 頁 void intt0(void)//T0中斷定時程序,定時 58US,即測距 1CM. { TCNT0=0XC6。 } } void delay_1us(void)//1us { asm(nop)。i++)。//禁止 ICP1使能 OCR2=0X64。 ledbuff[1]=tab1[temp]。//PC0mm 位, PC1lm位, PC2m位 delay_1ms()。 else if (newcount180) PORTD=0XBF。 TCNT2=0X00。 mcu_init()。 if(!(PINCamp。 delay_ms(100)。s Day. More and more young Chinese peopl。 ll wait in the line for one hour to get a ticket, and another two hours at the site, to only see a tiny bit of the place due to the crowds. Last year, 428 million tourists traveled in China over the weeklong holiday in October. Traveling during this period is a matter that needs thorough preparation. If you are short on time to plan the uping Golden Week it may not be a bad idea to avoid some of the most crowded places for now. There is always a place so fascinating that everyone yearns for. Arxan is a place like this. The beauty of Arxan is everlasting regardless of the changing of four seasons. Bestowed by nature, its spectacular seasonal landscape and mountains are just beyond word. Arxan is a crucial destination for the remended travelling route, China Inner Mongolia Arxan — Hailar — Manzhouli. It is also the joint of the four prairies across the SinoMongolian border, where people gravitate towards the exotic atmosphere mixed with Chinese, Russian, and Mongolia elements. As a historic site for the Yitian Battle, Arxan still embodies the spirit of Genghis Khan. Walking into Arxan, you will be amazed by a kaleidoscope of geous colors all the year round the Spring azaleas blooming red in the snow, the Summer sea wavering blue in the breeze, the Autumn leaves painted in yellow covering volcanic traces, and the Winter woods shining white on the vast alpine snowscape. Hinggan League Arxan city is situated in the far eastern area of Inner Mongolia Autonomous Region. Its full name Haren Arxan means hot holy water in the Mongolian language. Arxan is a tourism city in the northern frontier with a blend of large forest, grand prairies, vast snowfield, heaven lake cluster, thermium, as well as volcanic cluster. It is a rare and unique ecotourism base filled with healthy sunshine, clean air and unspoiled green. Nestled close to the country39。 hextobcd(oldcount)。) { send40kHz()。 //T0定時 58US TCCR0=0X02。 } void mcu_init(void)//MCU初始化 { DDRD=0XFF。 } } void display8led(void) //8LED顯示 { if(newcount10) PORTD=0XFE。 ledbuff[2]=tab2[temp]。 } void close40kHz(void) //停止發(fā)射超聲波 { TCCR2=0X00。 for(i=0。 for(i=0。 } void icp_timer1(void)//ICP1 捕捉中斷,捕捉頻率 ~ { if (96=ICR1=104) { SREGamp。超聲波測距儀的研究 [J].計算機測量與控制 .2022, 10( 7): 480482. [5]老虎工作室 趙晶 .電路設計與制版 Protel 99 高級應用 [M].北京:人民有點出版社, 2022. [6]張謙琳 .超聲波檢測原理和方法 .北京:中國科技大學出版社, . [7]蘇偉、鞏壁建 .超聲波測距誤差分析 .傳感器技術, 2022. [8]張義和 .Protel PCB99 設計與應用技巧 [M].北京:科學出版社, 2022. [9]隋衛(wèi)平 .高精度實時超聲波測距技術研究 [D].國防科學技術大學碩士論文, 2022年 1月 . [10]恒清、張靖 .加強單片機系統(tǒng)