首页 | 本学科首页   官方微博 | 高级检索  
     

基于单片机的超声波测距仪设计
引用本文:王瑞荣.基于单片机的超声波测距仪设计[J].电子测试,2021(5):22-23,33.
作者姓名:王瑞荣
作者单位:太原工业学院电子工程系,山西太原,030008
基金项目:“山西省高等学校科技创新项目资助(2020L0638)”的研究成果。
摘    要:超声波测距是一种利用超声共性、电子技术、光电开关组合,完成非接触式距离测量的办法。本设计以STC89C52单片机为主要控制器设计了一个超声波测距仪,通过计算超声发射到接收所用的时间差,再有经过温度补偿的超声波的速度,通过计算就可以得出超声波和障碍物之间的距离。若超出设定的安全距离蜂鸣器将报警。最后将测得的数据交由液晶屏显示。它的测量范围为0.2cm-500cm,测量精度为毫米级别。

关 键 词:超声波  测距  单片机

Design of Ultrasonic Rangefinder based on Microcontrollers
Wang Ruirong.Design of Ultrasonic Rangefinder based on Microcontrollers[J].Electronic Test,2021(5):22-23,33.
Authors:Wang Ruirong
Affiliation:(Department of Electronic Engineering,Taiyuan Institute of Technology,Taiyuan Shanxi,030008)
Abstract:Ultrasonic distance measurement is a method of non-contact distance measurement based on the combination of ultrasonic commonness,electronic technology and photoelectric switch.In this design,an ultrasonic rangefinder is designed with STC89C52 microcontroller as the main controller,The distance between the ultrasonic wave and the obstacle can be obtained by calculating the time difference between ultrasonic wave transmission and reception,and the speed of ultrasonic wave compensated by temperature.If the set safe distance is exceeded,the buzzer will alarm.Finally,the measured data will be sent to the LCD screen for display.Its measuring range is 0.2cm-500cm,and the measurement accuracy is mm grade.
Keywords:Ultrasonic  Ranging  microcontroller
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号