超聲波測(cè)距儀畢業(yè)論文.doc
約48頁(yè)DOC格式手機(jī)打開展開
超聲波測(cè)距儀畢業(yè)論文,頁(yè)數(shù):48字?jǐn)?shù):16799摘要本文詳細(xì)介紹了一種基于單片機(jī)的單脈沖反射式超聲測(cè)距系統(tǒng)。該系統(tǒng)以空氣中超聲波的傳播速度為確定條件,利用反射超聲波測(cè)量待測(cè)距離。并且描述了系統(tǒng)研制的理論基礎(chǔ),超聲傳感器等部分的電路設(shè)計(jì)以及使用了性能優(yōu)良的 philips單片機(jī) p89lpc932后對(duì)系統(tǒng)所起的積極作用。課...
內(nèi)容介紹
此文檔由會(huì)員 cnlula 發(fā)布
超聲波測(cè)距儀畢業(yè)論文
頁(yè)數(shù):48 字?jǐn)?shù):16799
摘要
本文詳細(xì)介紹了一種基于單片機(jī)的單脈沖反射式超聲測(cè)距系統(tǒng)。該系統(tǒng)以空氣中超聲波的傳播速度為確定條件,利用反射超聲波測(cè)量待測(cè)距離。并且描述了系統(tǒng)研制的理論基礎(chǔ),超聲傳感器等部分的電路設(shè)計(jì)以及使用了性能優(yōu)良的 PHILIPS單片機(jī) P89LPC932后對(duì)系統(tǒng)所起的積極作用。課題初步計(jì)劃是在室內(nèi)范圍的測(cè)距。系統(tǒng)的設(shè)計(jì)及器件的選擇也正是在這個(gè)基礎(chǔ)上進(jìn)行的。
超聲測(cè)距系統(tǒng)的設(shè)計(jì)原理以達(dá)到更優(yōu)的系統(tǒng)性能為目的。為適合不同的測(cè)距范圍,單片機(jī)設(shè)置了遠(yuǎn)近兩種發(fā)射模式,即遠(yuǎn)距時(shí)使用高放大倍數(shù)放大,近距使用低放大倍數(shù)放大。根據(jù)回波信號(hào)特點(diǎn)得到了最佳接收機(jī)的組成。利用雙門限檢測(cè)的原理,檢測(cè)單元實(shí)現(xiàn)了滑動(dòng)門限檢測(cè)和脈寬檢測(cè),一定程度上以降低系統(tǒng)檢測(cè)誤識(shí)率。并且采用PHILIPS P90LPC932微控制器,完成數(shù)據(jù)的采集,處理,顯示。
論文概述了超聲檢測(cè)的發(fā)展及基本原理,介紹超聲傳感器的原理及特性。對(duì)于測(cè)距系統(tǒng)的一些主要參數(shù)進(jìn)行了討論。并且在介紹超聲測(cè)距系統(tǒng)功能的基礎(chǔ)上,提出了系統(tǒng)的總體構(gòu)成。針對(duì)測(cè)距系統(tǒng)發(fā)射、接收、顯示部分的總體設(shè)計(jì)方案進(jìn)行了論證。進(jìn)一步介紹了單片機(jī) P89LPC932應(yīng)用在系統(tǒng)中的應(yīng)用,分析了系統(tǒng)各部分的硬件及軟件實(shí)現(xiàn)。
本設(shè)計(jì)以P89LPC932單片機(jī)為主控制器。采用6位數(shù)碼管顯示器,數(shù)碼管接口基于MAX7219進(jìn)行設(shè)計(jì)。
關(guān)鍵詞:超聲波;測(cè)距;P89LPC932;MAX7219
ABSTRACT
The thesis introduces a kind of single-pulse-reflection ultrasonic distancemeter system in detail based on microcontronller. The system could measure certain distance with the reflected wave on condition in which the speed of transmitting wave is fixed. It generally specifies the theoretical foundation of the system, the electronic design of the ultrasonic sensor. Because the project is the initial part of ultrasonic signal detection based on DSP, it is limited in indoor range in advance. So the design of the system and the choice of the components are decided according to the reason.
The scheme of each part is designed to acquire better performance of the system. In order to meet the different distance range, it arranges two transmitting modes in microcontroller: hign gain applies to far mode, while low gain applies to near mode. What is more, it makes use of the integrated chips to simplify the whole configuration, such as ingtegrated filter and programmable gain amplifier, in the optimum receiver that is based on the characters of the receiving waves. And to reduce the rate of misdetection, it carries out the double-threshold detection including amplitude detection and pulse-width detection. Moreover, the PHILIPS P89LPC932 microcontroller is employed in this system to achieve the function of collecting, processing, and displaying of data.
This paper summarizes the development and foudamental principle of ultrasonic detection. Then it presents the theory and characters of ultrasonic sensor. At the same time, it discusses a number of main technical parameters. Moreover, it proposes the whole structure of the system by introducing the function of ultrasonic distancemeter. And then the transmission, receiver, display scheme of this distancemeter system is brough out. Specially, after the application of P89LPC932 microcontroller, it analyzes the hardware and software realization of each part in this system.
This design with the P89LPC932 single slice machine id main controller, adopt 6figures tube displays, the figures tube connects to carry on establish according to the MAX7219.
Keywords: Ultrasonic wave;Distance measurement;P89LPC932;MAX7219
目錄
摘要 1
ABSTRACT 2
第1章 引言 1
第2章 超聲波測(cè)距儀原理及設(shè)計(jì)要求 2
2.1 超聲波測(cè)距儀簡(jiǎn)介 2
2.2設(shè)計(jì)要求 4
2.3設(shè)計(jì)方案的確定 5
第3章 超聲波測(cè)距儀的硬件設(shè)計(jì) 5
3.1超聲波發(fā)送器的設(shè)計(jì) 5
3.2 超聲波接收器的設(shè)計(jì) 6
3.3 基于DS18B20的溫度測(cè)量電路 8
3.4 LED顯示電路設(shè)計(jì) 9
3.5 基于P89LPC932的主機(jī)電路設(shè)計(jì) 13
第4章 超聲波測(cè)距儀的軟件設(shè)計(jì) 19
4.1超聲波測(cè)距儀的軟件規(guī)劃 19
4.2 DS18B20的接口程序設(shè)計(jì) 20
4.2.1 DS18B20的初始化 20
4.2.2 字節(jié)寫DS18B20程序 20
4.2.3 字讀DS18B20程序 20
4.3 顯示程序設(shè)計(jì) 21
4.3.1 MAX7219的初始化 21
4.3.2 字寫MAX7219程序 22
4.3.3 顯示子程序 22
4.4 距離計(jì)算及其程序?qū)崿F(xiàn) 22
4.4.1 溫度補(bǔ)償 23
4.4.2距離計(jì)算 24
4.4.3 數(shù)制轉(zhuǎn)換與數(shù)據(jù)標(biāo)定處理 24
4.5 主程序與P89LPC932的初始化程序 25
4.5.1 P89LPC932的初始化程序設(shè)計(jì) 25
4.5.2 主程序設(shè)計(jì) 25
第5章 結(jié)論 28
參考文獻(xiàn) 29
致謝 30
附錄 31
頁(yè)數(shù):48 字?jǐn)?shù):16799
摘要
本文詳細(xì)介紹了一種基于單片機(jī)的單脈沖反射式超聲測(cè)距系統(tǒng)。該系統(tǒng)以空氣中超聲波的傳播速度為確定條件,利用反射超聲波測(cè)量待測(cè)距離。并且描述了系統(tǒng)研制的理論基礎(chǔ),超聲傳感器等部分的電路設(shè)計(jì)以及使用了性能優(yōu)良的 PHILIPS單片機(jī) P89LPC932后對(duì)系統(tǒng)所起的積極作用。課題初步計(jì)劃是在室內(nèi)范圍的測(cè)距。系統(tǒng)的設(shè)計(jì)及器件的選擇也正是在這個(gè)基礎(chǔ)上進(jìn)行的。
超聲測(cè)距系統(tǒng)的設(shè)計(jì)原理以達(dá)到更優(yōu)的系統(tǒng)性能為目的。為適合不同的測(cè)距范圍,單片機(jī)設(shè)置了遠(yuǎn)近兩種發(fā)射模式,即遠(yuǎn)距時(shí)使用高放大倍數(shù)放大,近距使用低放大倍數(shù)放大。根據(jù)回波信號(hào)特點(diǎn)得到了最佳接收機(jī)的組成。利用雙門限檢測(cè)的原理,檢測(cè)單元實(shí)現(xiàn)了滑動(dòng)門限檢測(cè)和脈寬檢測(cè),一定程度上以降低系統(tǒng)檢測(cè)誤識(shí)率。并且采用PHILIPS P90LPC932微控制器,完成數(shù)據(jù)的采集,處理,顯示。
論文概述了超聲檢測(cè)的發(fā)展及基本原理,介紹超聲傳感器的原理及特性。對(duì)于測(cè)距系統(tǒng)的一些主要參數(shù)進(jìn)行了討論。并且在介紹超聲測(cè)距系統(tǒng)功能的基礎(chǔ)上,提出了系統(tǒng)的總體構(gòu)成。針對(duì)測(cè)距系統(tǒng)發(fā)射、接收、顯示部分的總體設(shè)計(jì)方案進(jìn)行了論證。進(jìn)一步介紹了單片機(jī) P89LPC932應(yīng)用在系統(tǒng)中的應(yīng)用,分析了系統(tǒng)各部分的硬件及軟件實(shí)現(xiàn)。
本設(shè)計(jì)以P89LPC932單片機(jī)為主控制器。采用6位數(shù)碼管顯示器,數(shù)碼管接口基于MAX7219進(jìn)行設(shè)計(jì)。
關(guān)鍵詞:超聲波;測(cè)距;P89LPC932;MAX7219
ABSTRACT
The thesis introduces a kind of single-pulse-reflection ultrasonic distancemeter system in detail based on microcontronller. The system could measure certain distance with the reflected wave on condition in which the speed of transmitting wave is fixed. It generally specifies the theoretical foundation of the system, the electronic design of the ultrasonic sensor. Because the project is the initial part of ultrasonic signal detection based on DSP, it is limited in indoor range in advance. So the design of the system and the choice of the components are decided according to the reason.
The scheme of each part is designed to acquire better performance of the system. In order to meet the different distance range, it arranges two transmitting modes in microcontroller: hign gain applies to far mode, while low gain applies to near mode. What is more, it makes use of the integrated chips to simplify the whole configuration, such as ingtegrated filter and programmable gain amplifier, in the optimum receiver that is based on the characters of the receiving waves. And to reduce the rate of misdetection, it carries out the double-threshold detection including amplitude detection and pulse-width detection. Moreover, the PHILIPS P89LPC932 microcontroller is employed in this system to achieve the function of collecting, processing, and displaying of data.
This paper summarizes the development and foudamental principle of ultrasonic detection. Then it presents the theory and characters of ultrasonic sensor. At the same time, it discusses a number of main technical parameters. Moreover, it proposes the whole structure of the system by introducing the function of ultrasonic distancemeter. And then the transmission, receiver, display scheme of this distancemeter system is brough out. Specially, after the application of P89LPC932 microcontroller, it analyzes the hardware and software realization of each part in this system.
This design with the P89LPC932 single slice machine id main controller, adopt 6figures tube displays, the figures tube connects to carry on establish according to the MAX7219.
Keywords: Ultrasonic wave;Distance measurement;P89LPC932;MAX7219
目錄
摘要 1
ABSTRACT 2
第1章 引言 1
第2章 超聲波測(cè)距儀原理及設(shè)計(jì)要求 2
2.1 超聲波測(cè)距儀簡(jiǎn)介 2
2.2設(shè)計(jì)要求 4
2.3設(shè)計(jì)方案的確定 5
第3章 超聲波測(cè)距儀的硬件設(shè)計(jì) 5
3.1超聲波發(fā)送器的設(shè)計(jì) 5
3.2 超聲波接收器的設(shè)計(jì) 6
3.3 基于DS18B20的溫度測(cè)量電路 8
3.4 LED顯示電路設(shè)計(jì) 9
3.5 基于P89LPC932的主機(jī)電路設(shè)計(jì) 13
第4章 超聲波測(cè)距儀的軟件設(shè)計(jì) 19
4.1超聲波測(cè)距儀的軟件規(guī)劃 19
4.2 DS18B20的接口程序設(shè)計(jì) 20
4.2.1 DS18B20的初始化 20
4.2.2 字節(jié)寫DS18B20程序 20
4.2.3 字讀DS18B20程序 20
4.3 顯示程序設(shè)計(jì) 21
4.3.1 MAX7219的初始化 21
4.3.2 字寫MAX7219程序 22
4.3.3 顯示子程序 22
4.4 距離計(jì)算及其程序?qū)崿F(xiàn) 22
4.4.1 溫度補(bǔ)償 23
4.4.2距離計(jì)算 24
4.4.3 數(shù)制轉(zhuǎn)換與數(shù)據(jù)標(biāo)定處理 24
4.5 主程序與P89LPC932的初始化程序 25
4.5.1 P89LPC932的初始化程序設(shè)計(jì) 25
4.5.2 主程序設(shè)計(jì) 25
第5章 結(jié)論 28
參考文獻(xiàn) 29
致謝 30
附錄 31