文档介绍:长沙航空职业技术学院
(2012届)
毕业设计(论文)
基于单片机的测距仪的设计
学院(系):
航空电子电气工程系
专业:
生产过程自动化
学生姓名:
胡超
班级: 自动化0901
学号: 200900031016
指导老师: 罗德凌职称: 讲师
2012 年 03 月
摘要
本设计介绍了基于单片机控制的超声测距仪的原理:由AT89C51控制定时器产生超声波脉冲并计时,计算超声波自发射至接收的往返时间,从而得到实测距离。并且在数据处理中采用了温度补偿的调整,用四位LED数码管切换显示距离和温度。
整个硬件电路由超声波发射电路、超声波接收电路、电源电路、显示电路等模块组成。各探头的信号经单片机综合分析处理,实现超声波测距仪的各种功能。在此基础上设计了系统的总体方案,最后通过硬件和软件实现了各个功能模块。相关部分附有硬件电路图、程序流程图,给出了系统构成、电路原理及程序设计。此系统具有易控制、工作可靠、测距准确度高、可读性强和流程清晰等优点。实现后的作品可用于需要测量距离参数的各种应用场合。
关键词:AT89C51,超声波,温度补偿,测距
ABSTRACT
The design introduces the principle of the ultrasonic distance measurement instrument based on SCMC-controlled: AT89C51 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 LED nixie tubes display distance or temperature by switching.
The entire hardware circuit posed by ultrasonic transmitter circuit, ultrasonic receiver circuit, the power circuit, display circuit, and other modules. The probe signals are integrated analysised by SCMC to achieve the various functions of ultrasonic distance measurement instrument. Based on this has designed system's overall concept, final adoption of hardware and software to achieve the various functional modules. The relevant parts have the hardware schematics and process flow 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:AT89C51, Ultrasonic wave, pensation, Measure distance
目录
第1章绪论 1
课题研究的背景 1
课题研究的意义 1
论文结构 2
第2章超声波测距原理 3
超声波简介 3
超声波测距原理 3
第3章方案论证 5
设计思路 5
系统结构设计 6
第4章主要元件介绍 7
单片机AT89C51 7
超声波传