【正文】
理工 大學(xué) 本科畢業(yè)論文(設(shè)計) 題 目 《 汽車倒車超聲波 報警器的設(shè)計與實現(xiàn) 》 系 專業(yè) 學(xué) 號 學(xué)生姓名 指導(dǎo)教師 起訖日期 工作地點 本科畢業(yè)論文(設(shè)計) I 目 錄 緒論 .................................................................................................................................. 1 1 汽車倒車超聲波報警器的設(shè)計背景 .................................................................................. 2 汽車倒車超聲波報警器的設(shè)計意義 ........................................................................ 2 汽車倒車超聲波報警 器的發(fā)展 ............................................................................... 2 課題的主要研究內(nèi)容和目標(biāo) ................................................................................... 2 2 超聲波基本發(fā)展史及原理 ................................................................................................ 3 超聲波發(fā)展簡史 .................................................................................................... 3 超聲波的應(yīng)用 ........................................................................................................ 3 超聲波測距的方法 ................................................................................................. 5 3 系統(tǒng)整體設(shè)計 ................................................................................................................. 7 系統(tǒng)整體設(shè)計框圖 ................................................................................................. 7 硬件選型 ............................................................................................................... 7 超聲波探頭的主要參數(shù) ............................................................................... 7 單片機的選擇 .............................................................................................. 9 其他元器件的選擇 ..................................................................................... 10 4 硬件電路設(shè)計 ............................................................................................................... 11 單片機外圍電路設(shè)計 ........................................................................................... 11 超聲波發(fā)射接收電路 ........................................................................................... 11 超聲波發(fā)射電路 ......................................................................................... 11 超聲波接收電路設(shè)計 .................................................................................. 12 超聲波測距模塊 ......................................................................................... 13 顯示報警電路設(shè)計 ............................................................................................... 13 數(shù)碼管顯示電路設(shè)計 .................................................................................. 13 報警模塊電路設(shè)計 ..................................................................................... 14 5 系統(tǒng)軟件設(shè)計 ............................................................................................................... 15 主程序設(shè)計 ......................................................................................................... 15 中斷處理程序設(shè)計 ............................................................................................... 16 計算及顯示模塊程序設(shè)計 .................................................................................... 17 報警模塊程序設(shè)計 ............................................................................................... 17 6 系統(tǒng)調(diào)試 ....................................................................................................................... 18 結(jié)論 ................................................................................................................................ 20 參考文獻(xiàn) ......................................................................................................................... 21 附錄 程序代碼 ................................................................................................................ 22 本科畢業(yè)論文(設(shè)計) II 汽車倒車超聲波報警器的設(shè)計與實現(xiàn) 摘 要 本文全面、深入、系統(tǒng)地介紹了 汽車倒車超聲波 報警 系統(tǒng) 的 設(shè)計 。 本設(shè)計 主要是將超聲波 的特點和優(yōu)勢與 單片機 的特點和優(yōu)勢相結(jié)合,設(shè)計出的一種基于 STC89C51 單片機和HCSR04 超聲波測距模塊的汽車倒車超聲波報警 系統(tǒng)。 其中用到的單片機是由全球微控制器研發(fā)制造領(lǐng)先企業(yè)美國 Atmel 公司 生產(chǎn)的 STC89C51。本設(shè)計是將硬件 結(jié)構(gòu)和程序設(shè)計兩個部分結(jié)合起來的 。 其中硬件部分分為六大塊,分別為 單片機控制電路、超聲波發(fā)射電路、超聲波接收電路、數(shù)碼管顯示電路、電源電路和報警電路 。軟件部分主要由主 程序、超聲波發(fā)射接收子程序、距離計算子程序及顯示子 程序等 組成。 本設(shè)計通過單片機控制時間、計數(shù)并利用超聲波發(fā)射接收的時間和超聲波在空氣中的傳播速度測算出儀器與障礙物之間的 距離 從而達(dá)到本設(shè)計的意圖。本設(shè)計 具有 電路設(shè)計合理簡單、性能穩(wěn)定 、測量速度快、測量結(jié)果精準(zhǔn)等優(yōu)點。 論文 主要介紹了 超聲波檢測的發(fā)展及基本原 理,闡述了超聲波傳感器的原理及特性,還對一些重要參數(shù)進(jìn)行了討論 。 【 關(guān)鍵詞 】 STC89C51; 單片機 ; HCSR04 ; 數(shù)碼管 本科畢業(yè)論文(設(shè)計) III Design and implementation of vehicle reversing ultrasonic alarm Abstract In this paper, a prehensive, indepth, systematic introduction to the design of the car crash reversing ultrasonic ranging system. The design is mainly features and advantages of the ultrasonic and SCM features and advantages of bining design a microcontroller based STC89C51 and Ultrasonic Ranging Module HCSR04 Ultrasonic Ranging car reversing Collision Avoidance System. Which uses a singlechip microcontroller is developed and manufactured by the world39。s leader in the United States produced by Atmel STC89C51. This design is the design of the hardware structures and procedures to bine two parts. The hardware part is divided into six large pieces, respectively MCU control circuit, ultrasonic transmitter circuit, ultrasonic receiver circuit, the digital display circuit, power supply circuit and alarm circuit. Software is mainly emitted by the main program, subroutines ultrasonic receiver, distance calculation subroutine and display routines and other ponents. The design of the control time through the microcontroller, and the count time