毕 业 设 计(论 文)论文题目:基于单片机测距的装置设计摘 要超声波具有指向性强,能量消耗缓慢,传播距离较远等优点。所以,在利用传感器技术和自动控制技术相结合的测距方案中,超声波测距是目前应用最普遍的一种,它广泛应用于煤位高度、防盗、倒车雷达、水位测量、建筑施工施工场地以及一些工业现场。本设计详细介绍了超声波传感器的原理和特性,以及 Atmel 公司的 AT89S51 单片机为核心的性能和特点,并在分析了超声波测距的原理的基础上,设计测距系统的思路和所需考虑的问题,给出了以 AT89S51 单片机为核心的低成本、高精度、微型化数字显示超声波测距仪的硬件电路和软件设计方法,由于温度对超声波影响较大,设计中添加了温度补偿电路。该系统电路设计合理、工作稳定、性能良好、检测速度快、计算简单、易于做到实时控制,并且在测量精度方面能达到工业使用的要求。关键词:AT89S51; 超声波; 温度; 补偿;ABSTRACT Ultrasonic has strong directional, energy consumption is slow, transmission distance is farther, etc. So, the use of the sensor technology and automatic control technology of combining the measurement program, ultrasonic ranging is the application of the most common one.It is widely used in coal a height, guard against theft, backing up radar, water level measurement, construction site and some industrial field. The design detailed introduces the principle and characteristics of ultrasonic sensors. and the Atmel company AT89S51 as the core of the performance and characteristics.And analysis the ultrasonic ranging based on the theory of the ideas and design ranging system needed to consider the question.The design is given based on AT89S51 as the core of low cost, high precision, miniaturization digital display ultrasonic rangefinder hardware circuit and software design method. Because the temperature effect is big, so in design add temperature compensation circuit. The system circuit design reasonable, stable, the performance good, detection ...