文档介绍:摘要
系统的设计主要包括两部分,即硬件电路和软件程序。硬件电路主要包括单片机电路、超声波发射电路、超声波接收电路、显示电路等,另外还有复位电路和LED显示控制电路等。我采用以AT89s51单片机为核心的低成本、高精度、微型化数字显示超声波测距仪的硬件电路。整个电路采用模块化设计,由信号发射和接收、温度测量、显示等模块组成。软件程序主要由主程序、预置子程序、发射子程序、接收子程序、显示子程序等模块组成。它控制单片机进行数据发送与接收,在一定温度下对超声波速度的校正,还有将数据正确显示在LED上。另外程序控制单片机消除各探头对发射和接收超声波的影响。
关键词:超声波;测距;传感器;单片机
Abstract
The system design includes ponents, namely hardware and software program. The hardware circuit includes a micro controller circuit, ultrasonic transmitter circuit, ultrasonic receiver circuit, display circuit, in addition to the reset circuit and the LED display control circuit. AT89S51 micro controller as the core of low-cost, high-precision, miniaturization of digital display hardware circuit of the ultrasonic range finder. The entire circuit is modular in design by the signal transmitting and receiving, temperature measurement, display modules. Software program from the main program, preset subroutine, emission subroutine receive subroutine, such as display subroutine modules. It controls the micro controller for data sending and receiving, at a certain temperature on ultrasonic velocity correction data correctly displayed on the LED. In addition, the program control micro controller eliminate the impact of each probe for transmitting and receiving ultrasonic.
KEY WORDS ultrasonic,location,sensor, micro controller,AT89S51
目录
摘要 I
Abstract II
1 绪论 - 1 -
设计课题的提出 - 1 -
超声波在测量领域的发展概况 - 2 -
本课题研究的内容及意义 - 3 -
2 超声波和超声传感器 - 4 -
超声波 - 4 -
声波简述 - 4 -
声波的反射与折射原理 - 6 -
超声传感器 - 8 -
超声传感器原理 - 8 -
超声波传感器的检测方式 - 9 -
结构构成 - 9 -
超声传感器结构图 - 11 -
超声传感器的主要参数以及选择 - 13 -
主要参数 - 13 -
超声传感器的选择 - 14 -
3 超声波测距原理 - 15 -
超声波测距原理 - 15 -
传感器的指向角 - 16 -
测距仪的工作频率 - 17 -
测量盲区 - 17 -
4 系统设计方案 - 19 -
系统功能框图 - 19 -
单片机外围电路 - 20 -
发射模块电路器件连接图 - 20 -
接收模块电路器件连接图 - 20 -
测温模块电路 - 21 -
LCD显示屏 - 22 -
单片机 - 23 -
整机电路连接图 - 24 -
5 软件设计 - 26 -