1、 基于声波定位系统的研究毕业设计论文 摘 要 声波具有指向性强,能量消耗缓慢,传播距离较远等优点,所以,在利用传 感器技术和自动控制技术相结合的测距方案中,超声波测距是目前应用最普遍的 一种,它广泛应用于防盗、倒车雷达、水位测量、建筑施工工地以及一些工业现 场。 本课题详细介绍了能良好声波传感器的原理和特性,以及 Atmel 公司的 AT89C51 单片机的性能和特超虑的问题,给出了以 AT89C51 单片机为核心的低成 本、高精度、微型化数字显示超声波测距仪的硬件电路和软件设计方法。该系统 电路设计合理、工作稳定、性点,并在分析了超声波测距的原理的基础上,指出 了设计测距系统的思路和所需考、
2、检测速度快、计算简单、易于做到实时控制, 并且在测量精度方面能达到工业实用的要求。 关键词:超声波;单片机;测距;AT89C51 Abstract Ultrasonic wave has strong pointing to nature, slowly energy consumption, propagating distance ology combine together ,ultrasonic wave finds range to use the most general one at present ,it applies to guard against theft ,move
3、 backward the radar ,water level measuring ,building constructiofarther ,so ,in utilizing the scheme of distance finding that sensor technology automatic control technn site and some industrial scenes extensively This subject h ce and characteristic of one-chip computer AT89C51 of Atmel Company ,and
4、 on the basis of as introduced principle and characteristic of the ultrasonic sensor in detail ,and the performan 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 , tal
5、display and software design method taking AT89C51 as the core ,this circuit of system is reasohe hardware circuit of high accuracy , ultrasonic raspeeding soon , calculating simple , apt to accomplish real-time control ,and can reach industrys prange finder of miniature digitnable in design, working
6、 stability, performance good measuring ctical demand in measuring the precision . Key Words: Ultrasonic wave;One-chip computer;Range finding;AT89C51 I 目 录 第第 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