1、 毕业设计毕业设计(论文论文) 题目题目:基于单片机的超声波测距系统设计基于单片机的超声波测距系统设计 摘 要 I 摘 要 由于超声波指向性强,能量消耗缓慢,在介质中传播的距离较远,因而超声 波经常用于距离的测量,如测距仪和物位测量仪等都可以通过超声波来实现。超 声波测距系统,可以应用于汽车倒车、建筑施工工地以及一些工业现场的位置监 控,也可用于液位、井深、管道长度的测量等场合。利用超声波检测往往比较迅 速、方便、计算简单、易于做到实时控制,并且在测量精度方面能达到工业实用 的要求。 本文介绍了一种基于 STC89C52 单片机的超声波测距系统, 阐述了超声波测 距系统的硬件电路部分的构成、软
2、件设计思路及工作原理。硬件部分采用 STC89C52 单片机作为主控单片机,硬件电路主要由发射电路、接收电路、显示 电路、报警电路等几部分组成;软件部分由主程序、显示子程序、超声波发射子 程序、延迟子程序、计算子程序、报警程序等组成。该电路具有结构简单、操作 方便、精度较高、应用广泛的特点。 关键词:超声波;测距系统;单片机 Abstract II Abstract Because of the strong point of ultrasonic energy consumption slow, medium of communication in the longer distance,
3、thus frequently used ultrasonic distance measurement, such as the range finder and level measurement and so on can be achieved by ultrasound. Ultrasonic Ranging System, can be used in car reversing, the construction site and the location of some industrial site monitoring, can also be used if the le
4、vel, depth and length of the pipeline, such as measurement occasions. Use of ultrasonic testing is often more rapid, convenient and simple terms, easy to achieve real-time control, and measurement accuracy can meet the practical requirements of industry. The paper describes an ultrasonic measuring system based on the STC89C52, it described an ultrasonic measuring system hardware circuit structure, working principle and software design methods. Hardware using STC89C52 microcontroller as a ma