1、 基于单片机的超声波测距系统设计基于单片机的超声波测距系统设计 摘要 随着科学技术的快速发展超声波将在测距仪中的应用越来越广。 它将朝着更加 高定 位高精度的方向发展,以满足日益发展的社会需求。无庸置疑未来的超声波 测距仪将与自动化智能化接轨与其他的测距仪集成和融合, 形成多测距仪。随着测 距仪的技术进步, 测距仪将从具有单纯判断功能发展到具有学习功能最终发展到具 有创造力。 本课题详细介绍了超声波传感器的原理和特性,以及 STC 公司的 STC89C52 单片机的性能和特点,并在分析了超声波测距的原理的基础上,指出了设计测距系 统的思路和所需考虑的问题, 给出了以 STC89C52 单片机为
2、核心的低成本、 高精度、 微型化数字显示超声波测距仪的硬件电路和软件设计方法。该系统电路设计合理、 工作稳定、性能良好、检测速度快、计算简单、易于做到实时控制,并且在测量精 度方面能达到工业实用的要求。 关键词关键词:STC89C52 Ultrasonic ranging system based on SCM Abstract With the rapid development of science and technology, ultrasound will be more widely applied in the range finder . It will be toward m
3、ore high setPrecision of direction, in order to meet the growing needs of the community. Undoubtedly, the future of ultrasonic distance measurement instrument standards and automation of intelligent will be integrated with other rangefinder and fusion to form a multi-range finder. With the measured
4、away from the instruments technical progress, the rangefinder will develop from simple to judge the functional development to have a learning function, and eventually develop to has the creativity. This subject has introduced the principle and characteristic of the ultrasonic sensor in detail ,and t
5、he performance and characteristic of one-chip computer STC89C52 of STC Company ,and on the basis of analyzing principle that ultrasonic wave finds range ,the systematic thinking and questions needed to consider that have pointed out that designs and finds range ,provide low cost , the hardware circu
6、it of high accuracy , ultrasonic range finder of miniature digital display and software design IV method taking STC89C52 as the core ,this circuit of system is reasonable in design, working stability, performance good measuring speeding soon , calculating simple , apt to accomplish real-time control ,and can reach industrys practical demand in measuring the precision . Key words: Ultrasonic wave; One-chip computer; Range finding; STC89C52 中北大学 2012 届毕业设计说明书 第 I 页 共 II 页 目录目录 1 绪 论 1 1.1 超声