文档详情

基于单片机的超声波测距仪的设计与制作大学生毕业论文(设计).doc

发布:2016-04-30约1.92万字共42页下载文档
文本预览下载声明
本科毕业设计 基于单片机的超声波测距仪的设计 学 院: 专 业: 学 号: 姓 名: 指导教师: 职 称: 目 录 第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
显示全部
相似文档