- 1、本文档共62页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE
南京工程学院
自动化学院
本科毕业设计(论文)
题目: 基于单片机的超声波测距仪设计
专 业: 自动化
班 级: 自动化092 学 号: 203090240
学生姓名: 曹松青
指导教师: 邵祥兵
起迄日期: 2013.2~2012.6
设计地点: 工程中心4栋
PAGE
Graduation Design (Thesis)
Design of ultrasonic range finder based on the MCU
By
Cao song qing
Supervised by
Shao xiang bing
School of Automation
Nanjing Institute of Technology
June, 2013
南京工程学院自动化学院本科毕业设计(论文)
PAGE V
摘 要
超声波具有指向性强,能量消耗少,传播距离较远等优点,所以在利用传感器技术和自动控制技术相结合的测距方案中,超声波测距是目前应用最普遍的一种。它广泛应用于建筑施工、防盗、倒车、水位测量以及一些工业现场。
本设计采用以STC89C52单片机为核心的超声波测距的硬件电路和软件设计方法,在此基础上设计了系统的总体方案。整个电路采用模块化设计,发射模块发射超声波,接受模块接受回波,单片机计算距离,LCD1602显示测量结果。换能器的信号经单片机综合分析处理,实现超声波测距仪的各种功能。软件部分由主程序、延时子程序、发射子程序、接受子程序、显示子程序、温度检测子程序等模块组成。,最后通过硬件和软件实现了所需功能。
经实验证明,这套系统软硬件设计合理、抗干扰能力强、实时性良好,经过系统扩展和升级,可以有效地解决汽车倒车、建筑施工工地以及一些工业现场的位置监控。
关键词:超声波;测距;单片机
南京工程学院自动化学院本科毕业设计(论文)
ABSTRACT
Ultrasonic has the advantages such ad directivity is strong, energy consumption is slow, propagation distance etc. so ultrasonic ranging is the most common application in the use of sensor technology and automatic control technology combination of ranging scheme. It is widely used in construction, guard against theft, backing, water level measurement and some industrial field.
This design use the STC89C52 with single-chip microcomputer as the core of the ultrasonic ranging hardware circuit and software design method. The whole circuit adopts modular design, transmitter module transmitter ultrasonic ,echo receiving module accepts, the microcontroller calculates the distance, LCD1602 display the measurement results. Transducer signal by the MCU comprehensive analysis processing, ultrasonic range finder various functions. Software part by the main program, delay subroutine, subroutines launch accept subroutine, display routines, subroutines temperature detection modules. , And finally through the required hardware and software functionality.
The
文档评论(0)