文档详情

超声波测距系统的研究毕业论文.doc

发布:2017-09-18约3.2万字共50页下载文档
文本预览下载声明
摘 要 超声波具有指向性强,能量消耗缓慢,传播距离较远等优点,所以,在利用传感器技术和自动控制技术相结合的测距方案中,超声波测距是目前应用最普遍的一种,它广泛应用于防盗、倒车雷达、水位测量、建筑施工工地以及一些工业现场。 本课题详细介绍了超声波传感器的原理和特性,以及Atmel公司的AT89C51单片机的性能和特点,并在分析了超声波测距的原理的基础上,指出了设计测距系统的思路和所需考虑的问题,给出了以AT89C51单片机为核心的低成本、高精度、微型化数字显示超声波测距仪的硬件电路和软件设计方法。该系统电路设计合理、工作稳定、性能良好、检测速度快、计算简单、易于做到实时控制,并且在测量精度方面能达到工业实用的要求。 关键词:超声波;单片机;测距;AT89C51 Abstract Ultrasonic wave has strong pointing to nature, slowly energy consumption, propagating distance farther ,so ,in utilizing the scheme of distance finding that sensor technology automatic control technology combine 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 ultrasonic sensor in detail ,and the performance and characteristic of one-chip computer AT89C51 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 ,provide low cost , the hardware circuit of high accuracy , ultrasonic range finder of miniature digital display and software design method taking AT89C51 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;AT89C51 目 录 第1章 概 述 1 1.1 单片机应用系统概述 1 1.2 超声波测距系统的研究背景与意义 2 第2章 超声波测距的原理 3 2.1 超声波的基本理论 3 2.2 超声波测距系统原理 4 第3章 系统主要硬件设计 7 3.1 方案论证与比较 7 3.2 单片机基础知识 11 3.3 单片机主机系统电路 18 3.4 温度采集DS18B20电路 20 3.5 LED数码管显示电路 21 3.6 超声测距系统软件实现 21 第4章 系统软件设计 23 4.1 系统程序的结构 23 4.2 系统主程序 25 4.3 40KHZ超声波发生及中断子程序 26 4.4 DS18B20温度采集程序 27 4.5 距离计算程序 30 4.6 LCD显示程序 31 第5章 试验分析 33 5.1 实验测试 33 5.2 试验数据 33 5.3 误差分析 3
显示全部
相似文档