【正文】
及其與設(shè)定距離值的比較結(jié)果給顯示電路及提醒電路不同提醒信號(hào),產(chǎn)生不同的聲光效果,引起駕駛?cè)藛T注意,以便采取相應(yīng)行動(dòng)。波長這樣短的超聲波具有類似光線的一些物理性質(zhì) [7]:(1)超聲波的傳播類似于光線,遵循幾何光學(xué)的規(guī)律,具有反射、折射現(xiàn)象,也能聚焦,因此可以利用這些性質(zhì)進(jìn)行測量、定位、探傷和加工處理等。按作用原理不同,超聲波傳感器可分為壓電式、磁致伸縮式、電磁式等數(shù)種,其中壓電陶瓷晶片制成的換能器最為常用 [8]。超聲測距有脈沖回波法、共振法和頻差法,其中常用脈沖回波法測距。目前使用的方法有信號(hào)過零檢測,包絡(luò)檢測和脈沖檢測等方法。表1列出了幾種不同溫度下的聲速溫度(℃) -30 -20 -10 0 10 20 30 100聲速(m/s) 313 319 325 323 338 344 349 386表1聲速與溫度關(guān)系這是超聲波的溫度效應(yīng)特性,超聲波的傳播速度“C”可以用如下公式表示:C=+(m/s) (3淮北師范大學(xué) 2022 屆學(xué)士畢業(yè)論文 論文正文113)式中:t溫度(℃)。若超聲波在30℃的環(huán)境下以0℃的聲速測量100M距離所引起的測量誤差將達(dá)到5M,測量1M誤差將達(dá)到5MM。因此在測量精度要求很高的場合,應(yīng)通過溫度補(bǔ)償對(duì)超聲波的傳播速度進(jìn)行校正,以提高測量精度,減小誤差。本設(shè)計(jì)溫度測量選用 DALLAS 公司的 DS18B20 數(shù)字式溫度傳感器,獨(dú)特的一線接口,只需要一條口線通信多點(diǎn)能力,簡化了分布式溫度傳感應(yīng)用,無需外部元件,可用數(shù)據(jù)總線供電電源范圍為 至 無需備用電源。 超聲波接收電路設(shè)計(jì)超聲波接收部分的任務(wù)是接收到返回的超聲波信號(hào)并對(duì)其進(jìn)行濾波、放大、整形。 距離顯示電路距離顯示電路采用 LCD1602 液晶顯示,它具有既能顯示數(shù)字又有能顯示符的特點(diǎn),而且顯示數(shù)據(jù)多,字跡清晰。(2)溫度檢測部分,本設(shè)計(jì)運(yùn)用數(shù)字?jǐn)?shù)字溫度傳感器DS18B20進(jìn)行溫度檢測。s,每個(gè)寫時(shí)序之間必須有至少11181。s的恢復(fù)時(shí)間。s的存在低脈沖,主CPU收到此信號(hào)表示復(fù)位。具體程序見附錄A。淮北師范大學(xué) 2022 屆學(xué)士畢業(yè)論文 論文正文22參考文獻(xiàn)[1] 王歡. 基于 CAN 總線的倒車?yán)走_(dá)研究[J]. 哈爾濱工業(yè)大學(xué), [2]趙保全. 中國集成電路大全[M].北京:國防工業(yè)出版社,1985.[3] 中國集成電路大全編委會(huì). 中國集成電路大全 集成運(yùn)算放大器[M]. 北京:國防工業(yè)出版社,1985.[4] [M].北京:機(jī)械工業(yè)出版社,2022[5] 楊明發(fā). 高性價(jià)比倒車?yán)走_(dá)的研究[J].《機(jī)電技術(shù)》季刊,福建省機(jī)械科學(xué)研究院, 2022年01期, pp3031[6] 何希才. 集成電路及其應(yīng)用實(shí)例[M]. 科學(xué)出版社, [7]蘇長贊. 紅外線與超聲波遙控[M]. 北京:人民郵電出版社,.[8] 康華光. 電子技術(shù)基礎(chǔ)[M].北京:高等教育出版社,2022.[9]金濠芷,王明時(shí). 現(xiàn)代傳感器技術(shù).北京:電子工業(yè)出版社,1995[10] 51 單片機(jī) C 語言教程:入門、提高、開發(fā)、拓展全攻略[M].北京:電子工業(yè)出版社,2022淮北師范大學(xué) 2022 屆學(xué)士畢業(yè)論文 論文正文23附錄 A 程序includeinclude define uchar unsigned chardefine uint unsigned intuchar code table[]=0123456789。sbit DQ=P2^6。//液晶數(shù)據(jù)命令選擇端sbit dula=P2^6。}void delay(uint z){uint x,y。P1=。delay(5)。write_(0x38)。 k++)。}//18B20 寫命令函數(shù)void write_DS18B20(uchar cmd){ uchar i。_nop_()。 //右移一位 } DQ = 1。_nop_()。_nop_()。}//讀出溫度函數(shù) void read_temp() { init_DS18B20()。 write_DS18B20(0xBE)。 //若低8位全為0且溫度為負(fù),取補(bǔ)時(shí)就要向高位進(jìn)1temp_l=~temp_l+1。 write_(0x85+0x40)。delay(1)。}} void temzhi(void) 、 、函數(shù)功能:溫度值計(jì)算 { read_temp() 。}SPK=1。 } else if (l50) { Rd=~Rd。 //打開總中斷 0 TMOD=0x10。 EX0=1。 //關(guān)閉外部中斷 0 temzhi()。 //沒有回波則清零 test = !test。在本論文的寫作過程中,方正國老師傾注了大量的心血和汗水,給我提出了許多寶貴的意見。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal.Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept i.If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help.Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation.Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help.淮北師范大學(xué) 2022 屆學(xué)士畢業(yè)論文 論文正文30If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。s governing body, has also ordered an immediate investigation into the referee39。 Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn39。s plaint. In a statement the Russian side added: We found no racist insults from fans of CSKA.Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB.For more information about making a claim to an employment tribunal, see Employment tribunals.The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。在這里在對(duì)他表示由衷的感謝。 //取出定時(shí)器的值 timeL =TL1。 if(succeed_flag==1)淮北師范大學(xué) 2022 屆學(xué)士畢業(yè)論文 論文正文28 { time=timeH*256+timeL。 //定時(shí)器 1 清零 TL1=0。 //關(guān)總中斷 Trig=1。 Rd=1。else if (d50)淮北師范大學(xué) 2022 屆學(xué)士畢業(yè)論文 論文正文27 delaysk(10)。 }void speak()//蜂鳴器發(fā)聲函數(shù){unsigned int i,d。delay(1)。delay(1)。 uchar bai,shi,ge。 //連續(xù)讀取兩位溫度 temp_h=read_DS18B20()。 write_DS18B20(0xcc)。_nop_()。 DQ = 0。 淮北師范大學(xué) 2022 屆學(xué)士畢業(yè)論文 論文正文25}//18B20 讀 1 個(gè)字節(jié)函數(shù)uchar read_DS18B20(void){ uchar i。_nop_()。 i0。 delay1(1)。//設(shè)置開顯示,不顯示光標(biāo)write_(0x06)。delay(5)。lcden=1。x0。sbit wr=P2^1。//紅燈sbit Gd=P3^1。uchar code table2[]=cm。通過超聲波探頭發(fā)射和接收超聲波,使用單片機(jī)計(jì)算測量車與障礙物之間的往返時(shí)間然后再計(jì)算出車與障礙物的距離,并加入了溫度補(bǔ)償,提高了距離計(jì)算的精度,然后顯示在LCD1602 液晶上,當(dāng)探測到障礙物距離小于最小安全距離時(shí),蜂鳴器報(bào)警,紅燈閃爍發(fā)出告警。(3)中斷測距部分在啟動(dòng)發(fā)射電路的同時(shí)啟動(dòng)單片機(jī)內(nèi)部的定時(shí)器T1,利定時(shí)器的計(jì)數(shù)功能記錄超聲波發(fā)射的時(shí)間和收到反射波的時(shí)間值,當(dāng)收到超聲波反射波時(shí),接收電路輸出端產(chǎn)生一個(gè)負(fù)跳變。 DS1820通過保持總線為高發(fā)送“1”,將總線拉低發(fā)送0。DS1820在單片機(jī)發(fā)出寫時(shí)序后的1560181。測溫?cái)?shù)據(jù)讀取:訪問DS1820必須遵循初始化、ROM命令、DS1820函數(shù)命令這一順序,缺少其中任何一步或打亂順序,DS1820都不會(huì)響應(yīng)。當(dāng)偵測到的汽車距障礙物的距離在安全范圍內(nèi)時(shí)綠色發(fā)光二級(jí)管點(diǎn)亮,蜂鳴器不發(fā)聲;偵測到