1、 第 页 目录 摘要: . 2 第 1 章 系统方案比较与选择 . 3 1.1 方案一:利用分立模块的超声波测距仪 . 3 1.2 方案二:基于 AT89S51 单片机的超声波测距仪 第 2 章 理论分析与计算 . 2.1 测量与控制方法 2.2 理论计算 第 3 章 电路与程序设计 . 3.1 检测与驱动电路设计 3.1.1 主要器件选择: 3.2 总体电路图 3.3 软件设计与工作流程图 第 4 章 系统调试 4.1 超声波测距误差分析 4.1.1 发射接收时间对测量精度的影响分析. 4.1.2 当地声速对测量精度的影响分析. 4.2 提高精度的方案及系统设计 4.2.1 温度校正的方法提
2、高测距精度. 4.2.2 测量结果 4.2.3 标杆校正的方法提高测距精度 第 5 章 系统设计总结 参考文献 . 附录一:原理图与 PCB 图 . 附录二:系统程序 错误错误! !未定义书签。未定义书签。 第 页 超声波测距仪的设计 摘要摘要:电子测距仪要求测量范围在 0.105.00m,测量精度 1cm,测量时与被测 物体无直接接触,能够清晰稳定地显示测量结果。由于超声波指向性强,能量消 耗缓慢,在介质中传播的距离较远,因而超声波经常用于距离的测量,如测距仪 和物位测量仪等都可以通过超声波来实现。 超声波测距器, 可以应用于汽车倒车、 建筑施工工地以及一些工业现场的位置监控,也可用于液位、
3、井深、管道长度的 测量等场合。利用超声波检测往往比较迅速、方便、计算简单、易于做到实时控 制,并且在测量精度方面能达到工业实用的要求,因此在移动机器人的研制上也 得到了广泛的应用。 关键关键词词:超声波传感器,测距仪,AT89S51 单片机 AbstractAbstract : Ultrasonic Ranging, can be used in car reversing, the construction site and the location of some industrial site monitoring, can also be used if the level, dept
4、h and length of the pipeline, such as measurement occasions. Measurement of the requirements in the 0.10-5.00 m, precision 1 cm, with the measurement of detected objects without direct contact, being able to clearly show stable measurement results. Because of the strong point of ultrasonic energy co
5、nsumption slow, medium of communication in the longer distance, thus frequently used ultrasonic distance measurement, such as the range finder and level measurement and so on can be achieved by ultrasound. Use of ultrasonic testing is often more rapid, convenient and simple terms, easy to achieve re
6、al-time control, and measurement accuracy can meet the practical requirements of industry, in the mobile robot has been developed on a wide range of applications. Keyword: PivotalPivotal wordword: : I 2C bus AT89C2051 Security Cryptography Electronic Cipher Lock 第 页 第第 1 1 章章 系统方案比较与选择系统方案比较与选择 1.1 方案一:利用分立模块的超声波测距仪 系统包括超声波测距模组、LED 数码显示模组、驱动模组控制模组及电源五 部分。超声波测距模块主要由发射部分和接收部分组成,超声波的发射受主控制 器控制(如图 1 所示) ;超声波