《毕业设计-基于at89s51单片机的超声波测距系统设计》由会员分享,可在线阅读,更多相关《毕业设计-基于at89s51单片机的超声波测距系统设计(47页珍藏版)》请在金锄头文库上搜索。
1、基于基于 AT89S51 单片机的超声波测距系统设计单片机的超声波测距系统设计摘摘 要要超声波具有指向性强,能量消耗缓慢,传播距离较远等优点,所以,在利用传感器技术和自动控制技术相结合的测距方案中,超声波测距是目前应用最普遍的一种,它广泛应用于防盗、倒车雷达、水位测量、建筑施工工地以及一些工业现场。本课题详细介绍了超声波传感器的原理和特性,以及 Atmel 公司的 AT89S51 单片机的性能和特点,并在分析了超声波测距的原理的基础上,指出了设计测距系统的思路和所需考虑的问题,给出了以 AT89S51 单片机为核心的低成本、高精度、微型化数字显示超声波测距仪的硬件电路和软件设计方法。该系统电路
2、设计合理、工作稳定、性能良好、检测速度快、计算简单、易于做到实时控制,并且在测量精度方面能达到工业实用的要求。关键词关键词:超声波 单片机 测距 AT89S511AbstractUltrasonic wave has strong pointing to nature ,slowly energy consumption ,propagating distance farther ,so, in utilizing the scheme of distance finding that sensor technology and automatic control technology com
3、bine together ,ultrasonic wave finds range to use the most general one at present ,it applies to guard against theft , move backward the radar , water level measuring , building construction site and some industrial scenes extensively。 This subject has introduced principle and characteristic of the
4、ultrasonic sensor in detail ,and the performance and characteristic of one-chip computer AT89S51 of Atmel 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 ,pr
5、ovide low cost , the hardware circuit of high accuracy , ultrasonic range finder of miniature digital display and software design method taking AT89S51 as the core ,this circuit of system is reasonable in design, working stability, performance good measuring speeding soon , calculating simple , apt
6、to accomplish real-time control ,and can reach industrys practical demand in measuring the precision 。Key Words: Ultrasonic wave; One-chip computer; Range finding; AT89S512目目 录录ABSTRACTABSTRACT .1 1第第 1 1 章章 绪论绪论 .3 31.11.1 课题背景,目的和意义课题背景,目的和意义 .3 31.21.2 基于单片机的超声波测距系统基于单片机的超声波测距系统.3 31.31.3 课题主要内容课
7、题主要内容.4 4第第 2 2 章章 超声波测距原理概述超声波测距原理概述 .5 52.12.1 超声波传感器超声波传感器.6 62.1.1 超声波发生器 .62.1.2 压电式超声波发生器原理 .62.1.3 单片机超声波测距系统构成.7第第 3 3 章章 设计方案设计方案 .8 83.13.1 AT89S51AT89S51 单片机单片机.8 83.23.2 超声波测距系统构成超声波测距系统构成 .11113.2.13.2.1 超声波测距单片机系统超声波测距单片机系统 .12123.2.23.2.2 超声波发射、接收电路超声波发射、接收电路 .12123.2.33.2.3 显示电路显示电路.14143.2.43.2.4 供电电路供电电路 .14143.2.53.2.5 报警输出电路报警输出电路.1515第第 4 4 章章 系统软件设计系统软件设计 .16164.14.1 主程序设计主程序设计 .16164.34.3 超声波测距程序流程图超声波测距程序流程图 .20204.44.4 超声波测距程子序流程图超声波测距程子序流程图 .