freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于單片機的超聲波測距儀的設(shè)計論文終極版(更新版)

2025-08-05 21:54上一頁面

下一頁面
  

【正文】 電路構(gòu)建的系統(tǒng)往往可靠性差,調(diào)試困難,可擴展性差,所以基于單片機的超聲波測距系統(tǒng)被廣泛的應(yīng)用。因此,我國對超聲波的研究特別活躍。由于超聲波的干涉,在輻射器的周圍形成一個包括最大最小的揚聲場。目前較為常用的是壓電式超聲波發(fā)生器。 圖 4 測距原理由于超聲波也是一種聲波,其聲速 c 與空氣溫度有關(guān),一般來說,溫度每升高 1 攝氏度,聲速增加 米/秒。超聲波測距器的系統(tǒng)框圖如下圖所示:安徽科技學(xué)院 工學(xué)院 畢業(yè)設(shè)計(論文)6圖 5 系統(tǒng)設(shè)計總框圖由單片機 AT89S52 編程產(chǎn)生 10us 以上的高電平,由指定引腳輸出,就可以在指定接收口等待高電平輸出。3.2.1 超聲波發(fā)射電路超聲波發(fā)射電路包括超聲波產(chǎn)生電路和超聲波發(fā)射控制電路兩部分,可采用軟件發(fā)生法和硬件方法產(chǎn)生超聲波。CX20226A 采用單列 8 腳直插式,超小型封裝,+5V 供電。 圖 10 時鐘電路 按鍵電路我們通過 來啟動測量,程序中通過查詢 的電平來檢測是否按鍵被按下,在軟件中通過軟件延時來消除按鍵的機械抖動。 LCD 顯示電路安徽科技學(xué)院 工學(xué)院 畢業(yè)設(shè)計(論文)11 本設(shè)計采用 LCD 液晶顯示屏來顯示距離和溫度,具有體積小、功耗低、界面美觀大方等優(yōu)點,這里使用 YB1602 液晶屏,它具有 16 個引腳,其正面左起為第一腳,如圖 14 所示: 圖 14 LCD1602 實物第一腳 VSS:接地。第十五腳 BLA:背光電源正極輸入端。如圖 17 所示描述了各個模塊的關(guān)系:安徽科技學(xué)院 工學(xué)院 畢業(yè)設(shè)計(論文)13 圖 17 系統(tǒng)軟件方框圖 系統(tǒng)主程序本設(shè)計主程序的思想如下:(1)溫度為兩位顯示,距離為四位顯示單位為 mm;(2)溫度每隔 900ms 采樣一次,DS18B20 在 12 位精度下轉(zhuǎn)換周期為 750ms ,故 900ms 滿足該速度要求;超聲波每隔 60ms 發(fā)送一次。 圖 24 Proteus 仿 真 圖用 Proteus 繪 制 好 電 路 圖 后 導(dǎo) 入 程 序 文 件 ( 用 Keil 編 譯 過 后 的 HEX 文件 ) , 然 后 就 可 以 執(zhí) 行 仿 真 , 我 們 在 仿 真 的 時 候 測 到 高 電 平 即 為 返回 信 號 獲 得 , 由 于 在 軟 件 中 沒 有 CX20226模 型 , 所 以 空 , 則 程 序 開始 就 認 為 返 回 信 號 獲 得 了 , 所 以 顯 示 了 一 個 最 小 測 量 值 113mm, 而 溫 度 為28176。 樣機的制作 由于時間關(guān)系,樣機暫時無法做出,但我們已經(jīng)和同學(xué)一起聯(lián)系商家,購買了一定的材料。同時,也要感謝大學(xué)幾年授我們以漁的老師們,是你們的諄諄教誨讓我們獲得了扎實的知識,在這里表示衷心的感謝!參考文獻[1] 謝維成, C51 :清華大學(xué)出版社,2022[2] :杭州大學(xué)出版社,1995[3] :西安電子科技大學(xué)出版社,2022[4] C :電子工業(yè)出版社,2022[5] :重慶大學(xué)出版社,1997[6] [J].電子技術(shù),2022[7] 姜道連,寧延一, AT89C2051 設(shè)計超聲波測距儀[J].國外電子元器件,2022[8] 張鵬,[J].山東:山東大學(xué)學(xué)報,2022,33(1)[9] 單片機實用教程-基礎(chǔ)篇(第 1 版)[M].:2022 年 2 月[10] 賈伯年. 傳感器技術(shù). 南京: 東南大學(xué)出版社,2022 [11] 陳大新,胡學(xué)同, FPGA 改進超聲波測距模塊設(shè)計[J].傳感器技術(shù),2022,24(2): 57~59[12] 閻石. 數(shù)字電子技術(shù)基礎(chǔ). 北京: 高等教育出版社, 1998 [13] 樓然苗. 51 系列單片機設(shè)計實例. 北京: 北京航空航天大學(xué)出版社,1999 [14] 程序設(shè)計(第三版).北京:清華大學(xué)出版社, 2022[15] [J].江蘇電器,2022,5:1415[16] Tom R. Watt .Cooling our tomorrows economically ,ASHRAE Journal.[17] Army Kayla. Improving efficiency in existing chillers with optimization technology ,ASHRAE Journal.[18] mutter , Eerily , , ,Refine the use of the evaporation in an experimental downdraft cool tower ,Energys .1995[19] rtori S,ZHANG G X. Geometric Error Measurement and Compensation of of the CIRP. 1995:599609安徽科技學(xué)院 工學(xué)院 畢業(yè)設(shè)計(論文)20Ultrasonic Distance Testing System’s Design Based onSinglechip MicroputerAbstract Because of modern production requirements, it was discovered that the need to achieve the production of noncontact distance measurement, and ultrasonic distance measurement is a good performance of the ranging approach is mainly used in reversing radar sites as well as some industrial field, this paper designed a to AT89S52 MCU as the core of the lowcost, highprecision, LCD display of ultrasonic range finder, and use some monly used devices such as: 74HC04, consists of microcontroller, ultrasonic transmitter and ultrasonic receiver amplifier circuit and display circuit. Chip AT89S52 control calculation by the ultrasonic transmission from transmit to receive time and hence the distance to be under test. The system has easy to detect, the software fully functional, reliable, high accuracy paper discusses the successful development of microputer technology, the basic principles of ultrasonic range finder, measurement method of calculating implementations. Use of software calibration, improved accuracy and machine reliability. The actual use of that greatly improves safety, reliability and accuracy. Keywords MCU distance meter ultrasonic sensor microcontroller LCD display安徽科技學(xué)院 工學(xué)院 畢業(yè)設(shè)計(論文)21附錄附錄一 系統(tǒng)原理圖附錄二 系統(tǒng) PCB 板圖安徽科技學(xué)院 工學(xué)院 畢業(yè)設(shè)計(論文)22附錄三 源程序include include include define uchar unsigned char define uint unsigned int uchar code dispBUF[33]={Temperature: Distance: mm }。339。739。 //計數(shù)器的高低位 uchar count=0。 //DS18B20 數(shù)字端口 sbit Busy = P0^7。 void Init_18B20(void)。 //發(fā)射超聲波 sbit CSBIN =P2^6。 count++。 _nop_()。 _nop_()。 TR1=1。 TL0 =0xA0。 else //溫度為負 c=*temp*。 fuhao=0。 //數(shù)據(jù)轉(zhuǎn)換后放到顯示數(shù)組里面 if(fuhao) num[12]=num[12]|0x80。 tmp%=10。 //跳過讀序號列號的操作B20_WDAT(0xBE)。 //DQ 復(fù)位 Delay(10)。 } /*******************讀數(shù)據(jù)******************************/ uchar B20_RDAT(void) //讀取一個字節(jié) { uchar i = 0。 //拼裝處理 Delay(15)。 //取出低位的一位數(shù)據(jù) Delay(5)。 //清顯示 Write_Comm(0x80)。} Write_Data(d)。 } Write_Data(d)。0x80)。P0= lcdm。 P0= lcddata。Write_Comm(0x06)。 _nop_()。 _nop_()。j100。ii255。 //顯示 sta_flag=0。 //讀取計數(shù)器高低位的數(shù)值HEXtoBCD()。}安徽科技學(xué)院 工學(xué)院 畢業(yè)設(shè)計(論文)33 } } }
點擊復(fù)制文檔內(nèi)容
語文相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1