- 1、本文档共41页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
本科毕业设计
基于单片机的超声波测距仪的设计
学 院:
专 业:
学 号:
姓 名:
指导教师:
职 称:
目 录
第1章 绪论 1
1.1 课题研究的背景 1
1.2 课题研究的意义 1
1.3 论文结构 1
第2章 超声波测距原理 2
2.1 超声波简介 2
2.2 超声波测距原理 3
第3章 方案论证 5
3.1 设计思路 5
3.2 系统结构设计 6
第4章 硬件电路设计 7
4.1 单片机AT89C52 7
4.2 超声波测距模块HY-SR05………………………………………………………..9
4.3 温度传感器DS18B20 10
4.4 LCD1602液晶 11
4.5 ISD1420语音芯片 12
第6章 软件设计 14
6.1 主程序流程 14
6.2 子程序设计 16
6.2.1 超声波发送子程序及超声波接收中断子程序 16
6.2.2 测温子程序 17
6.2.3 距离计算子程序 18
6.2.4 显示子程序和键盘扫描子程序 18
结 论 28
参考文献 29
致 谢 31
附录1 整体电路图 32
附录2 程序清单 33
附录3 外文复印件 41
附录4 外文译文 44
实习报告 46
摘 要
超声波是频率高于20KHZ的声波具有指向性强,能量消耗缓慢,在介质中传播的距离较远,因而超声波经常用于距离的测量,如和物位测量仪等都可以通过超声波来实现。利用超声波检测往往比较迅速、方便、计算简单、易于做到实时控制,并且在测量精度方面能达到工业实用的要求,因此在移动机器人得到了广泛的应用
关键词:AT89C52,超声波,HC-SR04,测距
Abstract
Ultrasound is sound waves with frequency higher than 20KHz, it has strong directivity and consumes energy slowly, at the same time it spreads farther in the same medium. Therefore ultrasound is often used for distance measurement, such as the range finder and level measurement and so on can be achieved by it. Use of ultrasonic detection tends to be quickly, convenient and simple calculation, easy to do real-time control. In the measurement precision it can reach industry practical requirement. So in liquid level, well depth, pipe length measurement, mobile robot localization and obstacle avoidance, etc a wide range of applications.
This ultrasonic ranging system consists of the single-chip microcomputer timer and control circuit, ultrasound transmitting and receiving modules, the distance display circuit, alarm circuits and other components. Detailed introduces the ultrasonic ranging module and AT89S52 MCU range finder principle. HC-SR04 is the core of the ultrasonic transmitter and receiver. The result displays with digital tube and controlled by transistor. And the alarm circuit is composed by buzzer and transistor. The whole circuit is simple structure, low cost, stable work and the measurement accuracy reached the application requ
您可能关注的文档
- 基于ug的商用车变速器的三维设计及仿真建模大学本科生毕业论文(设计).doc
- 基于usb接口的脉搏检测仪的设计大学本科生毕业(设计)论文.doc
- 基于uwb的室内信道模型大学大学本科生毕业(设计)论文.doc
- 基于vb的solidworks的二次开发大学本科生毕业(设计)论文.doc
- 基于vc++的城市学院学生信息管理系统的设计与实现大学本科生毕业(设计)论文.doc
- 基于vc开发与设计考试系统大学本科生毕业论文.doc
- 基于verilog的fsk调制器的设计与实现大学本科生毕业论文(设计).doc
- 基于vhdl的8位模型计算机的设计与实现大学本科生毕业论文(设计).doc
- 基于vlan技术的银行网络设计与组建大学本科生毕业(设计)论文.doc
- 基于web的仓库管理系统大学本科生论文.doc
文档评论(0)