文档介绍:淮北师范大学
2012届学士学位论文
超声波测距系统的设计
学院、专业物理与电子信息学院
电子信息工程
研究方向
学生姓名
学号
指导教师姓名
指导教师职称
2012年4月26日
超声波测距系统的设计
淮北师范大学物理与电子信息学院 235000
摘要超声波测距法迅速,方便,计算简单,易于做到实时控制,提过基于单片机的超声测距系统的设计能更加深入地了解单片机的实际应用。本课题完成整个超声波测距系统设计,包括单片机控制电路,超声波模块,1602显示数据。
本课题硬件部分设计采用51单片机开发板和所需的超声波收发电路。程序由计算机仿真并烧入单片机实际调试,最终实物是一个能在2至400cm范围内准确测量距离的系统,经实际测量误差控制在5%以内。基于单片机的超声波测距系统易实现,成本低,精确度高,并且容易做到实时控制,具备较强的实用性,该系统的设计过程加深了对单片机的理解。本设计的产品也能在实际生活中有很广泛的应用。
关键词单片机;超声波模块;测距;1602
Design Of Ultrasonic Ranging Based On Singlechip
Yang Lei
School of Physics and Electronic Information, Huai Bei Normal University, Anhui Huaibei, 235000
Abstract Ultrasonic ranging is so quick and useful,it can be easy to translationed and be controled on time. The ultrasonic ranging system based on single chip design can to understand the practical application of single chip puter This distance measurement include Single-chip puter,Ultrasonic module and data presentation by 1602.
The system is made up by singlechip part,send and receive part,LCD part and temperature detective the helping of smallest system puter,the product which can detective the distance from 2cm to es error is only %. Based on SCM ultrasonic ranging system easy to realize, low cost, high precision, and easy to do real-time control, has strong practicability, the design of the system process deepened to the understanding of the single chip puter this design products can also in real life have a wide range of applications .
Keywords Single-chip puter; Ultrasonic module; 1602
目次
I绪论 1
课程设计目的及意义 1
课题设计的任务、要求及思路 2
1 系统的硬件结构设计 4
系统整体方案的设计 4
系统整体方案的论证 4
2系统的硬件结构设计 5
单片机的功能特点及测距原理 5
超声波模块的原理 6
超声波测距系统的硬件设计 7
3系统的设计 9
超声波测距的程序设计 9
系统软硬件调试 10
系统测试实物图 10
结 论 14
参考文献 15
附录A 程序附录A程序 16
致谢 21
绪论
利用超声波作为定位技术是蝙蝠等一些无目视能力的生物作为防御及捕捉猎物生存的手段,也就是由生物体发射不被人们听到的超声波(20kHz以上的机械波),借助空气媒质传播由被待捕捉的猎物或障碍物反射回来的时间间隔长短与被反射的超声波的强弱判断猎物性质或障碍位置的方法。由于超声波的速度相对于光速要小的多,其传播时间就比较容易检测,并且易于定向发射,方向性好,强度好控制,因而人类采用