超声波测距仪设计

以下是资料介绍,如需要完整的请充值下载. 本资料已审核过,确保内容和网页里介绍一致.  
无需注册登录,支付后按照提示操作即可获取该资料.
资料介绍:

超声波测距仪设计(任务书,开题报告,中期检查表,论文说明书11200字)
  摘  要:超声波测距仪主要包括:温度检测电路,超声波发射及控制电路,超声波接收及信号处理电路,显示电路,微处理器及其辅助电路。它就是利用控制系统定期使超声波发射探头产生超声波,经过障碍物反射回来,这样只要测出发送和反射的时间,就可按照公式计算出距离。由于传播速度与温度有关,所以在测量时,用温度传感器测量温度,进行温度与速度的转换。计算出所测距离。
  关键词:温度检测电路;超声波发射与接收;距离显示电路

Ultrasonic Rangefinder
  Abstract: Ultrasonic rangefinder mainly includes: temperature detection circuit, ultrasound and control circuit, ultrasonic receiving and signal processing circuit, display circuit, microprocessor and auxiliary circuit. It is to use the control system produced regularly make ultrasound probe reflected ultrasonic, through obstacles, such as long as sending and reflection time measured in accordance with the formula, can the distance. Due to the propagation speed and temperature measuring about, so in use temperature sensor measuring temperature, the temperature and speed conversion. Compute the distance measurement.
  Key words:temperature detection circuit; ultrasound and receiving; distance show circuit

设计要求
超声波测距仪的设计要求如下:
测量距离范围要求为≤6m;
精度要求优于1%;
进行温度补偿;
显示方式为数码管显示;
具有较强的抗干扰能力,安装简单;
体积小、功耗低,便于嵌入其他系统。

 

超声波测距仪设计
超声波测距仪设计


目  录
摘要    1
关键词    1
前言    1
2 超声波测距仪的设计要求    3
2.1设计要求    3
2.2方案的确定    3
3超声波测距仪的硬件设计    4
3.1超声波发送器的设计    4
3.2超声波接收器的设计    5
3.3DS18B20的温度测量电路    6
3.4AT89S52微处理器及其辅助电路的设计    7
4 超声波测距仪的软件设计    9
4.1超声波测距仪的软件规划    9
4.2  DS18B20的接口程序设计    9
4.2.1 DS18B20的初始化    10
4.2.2字节写DS18B20程序    10
4.2.3读DS18B20程序    11
4.3显示程序设计    13
4.3.1MAX7219初始化    13
4.3.2字写MAX7219程序    14
4.3.3显示子程序    15
4.4距离计算及其程序实现    16
4.4.1温度补偿    16
4.4.2距离计算    18
4.4.3数制转换与数据处理    19
4.4.4两字节二进制数大小比较    22
4.4.5对温度值求补(得到原码)    22
4.4.6两字节乘法子程序    22
4.5主程序与AT89S52的初始化程序    23
4.5.1AT89S52的初始化程序设计    23
4.5.2主程序设计    25
结    论    25
参考文献    25
致    谢    26