本科毕业论文---基于单片机的超声波测距仪.docVIP

  • 3
  • 0
  • 约1.95万字
  • 约 36页
  • 2016-12-16 发布于辽宁
  • 举报

本科毕业论文---基于单片机的超声波测距仪.doc

目 录 1 Abstract 2 第1章 绪 论 3 1.1 课题研究的目的与意义 3 1.2 国内外研究动态 3 1.3 论文主要内容 4 第2章 系统的总体设计 5 2.1 设计方案 5 2.2 系统的硬件选型 5 2.2.1 单片机选型 5 2.2.2 超声波传感器选型 6 2.2.3 超声波接收芯片选型 7 2.2.4 显示器选型 7 第3章 系统的硬件设计 8 3.1 基本系统构成 8 3.1.1 系统电源电路 9 3.1.2 超声波发射电路 9 3.1.3 超声波接收电路 10 3.1.4 晶振电路 11 3.1.5 复位电路 11 3.1.6 显示电路 12 3.1.7 报警电路 13 3.2 电路原理图 13 3.3 PCB图 14 第4章 系统的软件设计 15 4.1 软件keil的简介 15 4.2 主程序流程 15 4.3 超声波收发模块程序设计 16 4.3.1 超声波收发中断子程序 17 4.3.2 距离测算子程序 19 4.4 显示模块程序设计 19 4.4.1 初始化程序 21 4.4.2 显示程序 21 4.4.3 延时程序 22 4.5 现场实测距离显示 23 第5章 结 论 24 5.1 总 结 24 5.2 系统实物图形 25 5.3 展 望 25 致 谢 26 参考文献 27 附 录 28 摘 要 硬件电路由超声波发射电路、超声波接收电路、电源电路、四位数码管显示电路、电铃报警电路、12MHz晶振电路等组成。各引脚接收的信号经单片机综合分析处理,最终实现超声波测距仪的测距功能。本文将具体介绍设计思路、硬件选型、程序流程等设计相关的内容。本测距仪成品具有很好的稳定性及操作简易性。在准确度方面,测量准确度较高,可以精确到厘米级,达到了预期的测量准确度。 关键词:AT89C51 超声波 测距square-wave Abstract In this paper, based on 51 MCU, ultrasonic range finder design process and its operation principle: AT89C51 control timer square wave pulse is produced. At the same time T1 timer start timing. Emit ultrasonic in the air spread, and then encountered obstacles surface ultrasonic reentrant, ultrasonic receiving module receiving returned ultrasonic signal and the ultrasonic signals are converted to electrical signals. The timer recording ultrasonic round-trip time used, thus obtains the measured distance calculated by the 51 single chip microcomputer. Then the use of four digital tube display distance. 硬件电路由超声波发射电路、超声波接收电路、电源电路、四位数码管显示电路、电铃报警电路、12MHz晶振电路等组成。各引脚接收的信号经单片机综合分析处理,最终实现超声波测距仪的测距功能。本文将具体介绍设计思路、硬件选型、程序流程等设计相关的内容。本测距仪成品具有很好的稳定性及操作简易性。在准确度方面,测量准确度较高,可以精确到厘米级,达到了预期的测量准确度。 Hardware circuit consists of an ultrasonic emission circuit, ultrasonic receiver circuit, the power circuit, four digital tube display circuit, an electric bell alarm circuit, 12Mhz crystal oscillator circuit. The received signal of each pin SCM comprehensive analysis, finally realize the ranging function of ultrasonic rangefinder. This paper introduces the design idea, hardw

文档评论(0)

1亿VIP精品文档

相关文档