网站大量收购独家精品文档,联系QQ:2885784924

防触电测距报警系统的设计与实现.pdf

  1. 1、本文档共49页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多

摘要

摘要

超声波测距是一种有效地非接触式测距方式。本文在研究分析超声波原

理的基础上,利用单片机STC12C5410AD作为核心控制器,设计了一种防触

电超声波测量距离报警系统。本系统通过每次发射10个宽度为时间T的脉

冲,同时开启定时器并延时一段时间,超声波传感器接收到回波信号经前置

放大电路、带通滤波电路、后级放大电路和电压比较电路后,向单片机发出

外部中断信号,单片机保存定时器的值,计数器重新开始计数。用渡越时间

法计算出每根电缆线的距离,液晶用来显示所测距离,如果距离小于2m,报

警电路实现声光报警。另外,由于超声波在不同温度下传播速度不同,为了

提高精度使用DS18B20测出实时温度,计算出不同温度下超声波速度值,进

行温度补偿。

本设计的防触电测距报警系统能够在90°,3m范围内测量多根电缆线,

测量值由数字存储并进行液晶显示。精度可达5mm,并能根据电缆线的不同

距离发出不同的声光报警,同时通过温度补偿提高测量精度。它具有成本低,

非接触,速度快,操作方便等优点,有着广泛的应用前景。

关键词:超声波传感器;测距;STC12C5410AD;高精度

I

Abstract

Abstract

Theultrasonicdistancemeasurementisaneffectivenon-contact

ranging.Onthebasisoftheprincipleofresearchandanalysisof

ultrasonicthemicrocontrollerSTC12C5410ADasthecorecontroller,

thedesignofanelectricshockultrasonicmeasurementfromthealarm

system.Thesystemeachtimeyoulaunchthewidthof10forthepulse

ofthetimeT,turnonthetimerandelayperiooftime,the

ultrasonicsensorreceivestheechosignalbythepreamplifier,

band-passfiltercircuit,aftertheclassamplifieranvoltage

comparatorcircuit,theexternalinterruptsignalissenttotheMCU,

theMCUtosavethetimervalue,thecounterstartscountingagain.

Transittimemethotocalculatethedistanceofeachcable,LCDuse

todisplaythemeasureddistance,ifthedistanceislessthan2m,

thealarmcircuittosounanlightalarm.Inaition,becausethe

ultrasounatdifferenttemperaturesunderdifferentpropagation

velocity,inordertoimprovetheaccuracyoftheuseofDS18B20

measurereal-timetemperaturetocalculatetheultrasonicvelocity

valuesatdifferenttemperatures,thetemperaturecompensation.

Thedesignagainstelectricshockrangingalarmsystemina90°,

measu

文档评论(0)

欢乐峡谷 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档