文档介绍:编号
淮安信息职业技术学院
毕业论文
题目
基于单片机的超声测距系统的设计
学生姓名
学号
院系
专业
班级
指导教师
顾问教师
摘要
随着科学技术的快速发展,超声波将在测距仪中的应用成为研究热点,但就目前的水平来说,人们可以具体利用的测距技术还十分有限。因此,这是一个正在蓬勃发展而又有无限前景的技术及产业领域。
本设计介绍了基于单片机控制的超声测距仪的原理:由AT89S52控制定时器产生超声波脉冲并计时,计算超声波自发射至接收的往返时间,从而得到实测距离。并且在数据处理中采用了温度补偿的调整,用四位LCD数码管切换显示距离和温度。
通过硬件和软件实现了个各个功能模块,此系统模块具有易控制、工作可靠、测距准确度高、可读性强和流程清晰等优点。实现后可应用于需要测量的测距参数的各种应用场合。
关键词:AT89S52;超声波;测距;
Abstract
With the rapid development of science and technology, the application of ultrasonic wave in the range finder has e a hot topic, but the current level of technology, people can use the specific location is very limited. Therefore, it is a booming and technology and industry have unlimited prospects.
The design introduces the principle of the ultrasonic distance measurement instrument based on SCMC-controlled: AT89S52 controls timers to produce the ultrasonic wave pulse and time,count the time of ultrasonic wave spontaneous emission to receive round-trip,thus obtains the measured the pensation adjustment is used in the data processing, with four LCD nixie tubes display distance or temperature by switching.
It has given the system constitution, the circuitry and the programming. The instrument system has features: ease of control, stability of operation, highness of precision and distinctness of programme process ,etc. After the realization of the works can be used for needs of the various parameters measured distance applications.
Keywords:AT89S52; Ultrasonic wave; Measure distance;
目录
摘要 I
ABSTRACT III
目录 V
第一章绪论 1
单片机应用系统概述 1
超声波测距系统概述 2
2
超声波测距仪设计 2
硬件电路的设计 2
样机实验测试 3
误差分析 3
第二章超声波测距的原理 5
超声波的基本理论 5
5
5
6
超声波传感器 6
超声波测距系统原理 7
第三章系统主要硬件设计 9
方案论证与比较 9
超声波发射电路 9
超声波接收电路 10
12
13
复位电路 14
时钟电路 14
按键电路 14
蜂鸣器电路 14
15
16
温度采集DS18B20电路 17
L