基于单片机的超声波测距仪论文
- 格式:doc
- 大小:963.50 KB
- 文档页数:46
.
.
毕业设计(论文)
题 目:基于单片机的超声波测距仪
.
. 摘 要
在空气介质中超声测距传感器因其性能好,价格低廉、使用方便,在现场机器人定位系统、车辆自动导航、车辆安全行驶辅助系统、城市交通管理和高速公路管理监测系统,以及河道、油井和仓库及料位的探测中都有应用。由于超声波传播不易受干扰,能量消耗缓慢,在介质中传播的距离较远,因而超声波经常用于距离的测量,如测距和物位测量等都可以通过超声波来实现。为此,深入研究超声波的产生与传播规律、开发高性能超声波换能器及其收发电路,对于超声波检测技术的发展具有十分重要的现实意义。
本设计介绍了基于单片机控制的超声测距的原理:由STC89C52控制定时器产生一定频率脉冲,计算从发射到接收回波时间,从而得到实测距离,数据处理采用,显示距离,语音播报。
关键词:超声波,距离测量,语音播报,单片机.
. ABSTRACT
In the air medium, ultrasonic range finder sensor because of its good
performance, low price, convenient use, in the field of robot positioning
system, automatic vehicle navigation, vehicle safety driving assist system, city
traffic management and management of expressway monitoring system, as
well as river, well and warehouse and material level detection used in.
Because the ultrasonic wave propagation is not susceptible to interference,
energy consumption slow, medium of communication in the longer distance,
which are often used for ultrasonic distance measurement, such as the
location and level measurement can be achieved by ultrasound. Therefore,
in-depth study of ultrasonic generation and propagation, the development of
high performance ultrasonic transducer and its transceiver circuit, the
ultrasonic detection technology development has very important real sense.
This article introduces the design of control based on single chip ultrasonic
ranging principle: control by STC89C52 timer produces a certain frequency
pulse, calculated from transmitting to receiving echo time, so as to obtain the
measured distance, data processing using the temperature compensation,
four digital tube display distance, voice broadcast.
KEYWORDS: ultrasonic, range measurement, voice broadcast, singlechip .
. 目 录
第1章 绪论 ...................................................................................................................................
1.1 课题设计目的及意义 ...........................................................................................
1.1.1设计的目的............................................................................................................
1.1.2设计的意义............................................................................................................
1.2 国内外研究动态 ...................................................................................................
1.3 本课题研究的主要内容 .......................................................................................
第2章 总体方案 ..........................................................................................................................
2.1 方案选择 ................................................................................................................
2.2 超声波测距仪的设计思路 ..................................................................................
2.2.1 超声波测距原理 .................................................................................................
2.2.2 超声波测距原理框图 ........................................................................................
2.3 使用元件选择 .......................................................................................................
第3章 系统的硬件结构设计....................................................................................................
3.1 STC89C52单片机的功能及特点 ........................................................................
3.2 单片机最小系统 ...................................................................................................
3.3 语音播报 ................................................................................................................
3.4 显示单元 ................................................................................................................
第4章 系统的软件设计 .............................................................................................................
4.1 主程序流程图 .......................................................................................................
4.2 超声波发生子程序和超声波接收中断程序 ..................................................... .
. 第5章 超声波测距接收 .............................................................................................................
5.1 HC-SR04模块 .......................................................................................................
5.2 T40、R40超声波传感器简介 .............................................................................
5.2.1 超声波传感器的基本介绍 ...............................................................................
5.2.2 超声波传感器的主要应用 ...............................................................................
5.2.3 超声波传感器的工作原理 ...............................................................................
5.3 超声波发射电路 ...................................................................................................
5.4 超声波接收电路 ...................................................................................................