- 1、本文档共55页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要
本系统以AT89S52单片机为核心,利用超声波测距原理,通过硬件电路和软件编程实现对液位高度的检测。其主要原理是由单片机控制超声波测距模块DYP-ME007发射超声波,遇到液面反射后模块接收回波,同时单片机记录所用时间。为了提高精度,计算时涉及到温度补偿。将测得的温度与时间带入相应公式,即可求得当前液位。最后通过LCD液晶不断更新显示当前温度与液位。若液位超出预设的最低值或最高值,液晶显示警告,同时蜂鸣器报警。
硬件部分包括AT89S52单片机,DYP-ME007超声波测距模块,12864LCD液晶显示模块,DS18B20温度测量模块和蜂鸣器报警模块。软件设计分为两部分,主程序和中断服务程序。主程序完成初始化、超声波发射和接收,温度测量,距离计算、结果显示等大部分主要工作。中断服务子程序主要完成时间值的读取。
关键词:单片机;超声波测距;液位测量;温度补偿??
Abstract
The system use the AT89S52 microcontroller as the core, using ultrasonic ranging principle, through a combination of hardware and software, and debugging, and ultimately to the liquid level detection. The main principle is controlled by the microcontroller module DYP-ME007 ultrasonic distance ultrasonic transmitter, and receives the echo reflected surface encountered while recording the time used microcontroller. For improved accuracy, temperature compensation calculations involved. The measured temperature and time into the appropriate formula to obtain the current level. Last updated through the LCD liquid crystal display the current temperature and level. If the level exceeds the preset minimum or maximum value, liquid crystal display a warning buzzer alarm. AT89S52 microcontroller hardware including, DYP-ME007 ultrasonic distance measuring module, 12864LCD LCD module, DS18B20 temperature measurement module and the buzzer alarm module. Software design is divided into two parts, the main program and interrupt service routine. Main program to initialize, transmit and receive ultrasound, temperature measurement, distance calculation, the results display most of the major work. Interrupt service routine reads the key values ??of completion time.
Key words: SCM; Ultrasonic distance measurement; liquid level measurement; temperature compensation
目 录
第1章 概 述 1
1.1 课题的背景和意义 1
1.2 液位测量系统的现状 2
1.3 液位传感器的发展方向 3
1.4 国内外液位监测技术的发展现状 3
1.5 本章小结 4
第2章 超声波测液位系统 5
2.1 超声波与超声波传感器 5
2.2 超声波测液位原理 5
2.3 超声波测距原理 6
2.4 总体方案设计 7
2.5 本章小结 8
第3章 硬件系统设计 9
3.1 单片机系统 9
3.2 发射电路方案比较 12
3.
您可能关注的文档
最近下载
- Midea 美的 MB-WFZ4000XM-W电饭煲(锅) 说明书.pdf
- 上海电大-会计实验实训-形考册参考答案-完整版.pdf
- 约克风冷热泵机组样本-附件.pdf
- 惠州市城市环境卫生专项规划.doc VIP
- 20240121-东北证券-中际旭创-300308-全球光模块领先企业,AIGC“旭”光时代再“创”新征程.pdf
- 《聚合物制备工程》全套教学课件.pptx
- 2021年高考全国甲卷英语试题(含听力音频、听力原文和答案解析).pdf
- 肺癌中医护理方案.ppt VIP
- 【大单元整体教学】第二单元 成长的时空-2024-2025学年七年级道德与法治上册活动型同步教学设计(统编版).docx VIP
- 浙教版六年级上册信息科技第5课算法的执行(课件).pptx VIP
文档评论(0)