【正文】
基于 AT89S51 單片機(jī)的超聲波測距系統(tǒng) 完成日期:2022 年 4月 1日1摘 要關(guān)鍵詞:超聲波 單片機(jī) 測距 AT89S51AbstractUltrasonic wave has strong pointing to nature ,slowly energy consumption ,propagating distance farther ,so, in utilizing the scheme of distance finding that sensor technology and automatic control technology bine together ,ultrasonic wave finds range to use the most general one at present ,it applies to guard against theft , move backward the radar , water level measuring , building construction site and some industrial scenes extensively。This subject has introduced principle and characteristic of the ultrasonic sensor in detail ,and the performance and characteristic of onechip puter AT89S51 of Atmel Company ,and on the basis of analyzing principle that ultrasonic wave finds range ,the systematic thinking and questions needed to consider that have pointed out that designs and finds range ,provide low cost , the hardware circuit of high accuracy , ultrasonic range finder of miniature digital display and software design method taking AT89S51 as the core ,this circuit of system is reasonable in design, working stability, performance good measuring speeding soon , calculating simple , apt to acplish realtime control ,and can reach industry39。s practical demand in measuring the precision 。Key Words: Ultrasonic wave。 Onechip puter。 Range finding。 AT89S512目 錄ABSTRACT...................................................................................................................................................................1第 1章 緒論 .............................................................................................................................................................3 課題背景,目的和意義 ...................................................................................................................................3 ........................................................................................................................3 ....................................................................................................................................................4第 2章 超聲波測距原理概述 .................................................................................................................................5 ....................................................................................................................................................6 超聲波發(fā)生器 ...........................................................................................................................................6 壓電式超聲波發(fā)生器原理 .......................................................................................................................6....................................................................................................................7第 3章 設(shè)計(jì)方案 .....................................................................................................................................................8 AT89S51單片機(jī) ................................................................................................................................................8 超聲波測距系統(tǒng)構(gòu)成 .....................................................................................................................................11 超聲波測距單片機(jī)系統(tǒng) .............................................................................................................................12 超聲波發(fā)射、接收電路 .............................................................................................................................12 ......................................................................................................................................................14 供電電路 .....................................................................................................................................................14 ..............................................................................................................................................15第 4章 系統(tǒng)軟件設(shè)計(jì) ...........................................................................................................................................16 主程序設(shè)計(jì) .....................................................................................................................................................16 超聲波測距程序流程圖 .................................................................................................................................20 超聲波測距程子序流程圖 ...........................................................