基于STM32的超声波精确测距系统设计  被引量:6

The Distance Measuring System Using Ultrasonic Based on STM32

在线阅读下载全文

作  者:李修权 刘杰[1] 黑创 黄力 尹志豪 

机构地区:[1]长江大学电子信息学院电工电子国家级实验教学示范中心(长江大学),湖北荆州434023

出  处:《长江大学学报(自然科学版)》2018年第17期29-32,共4页Journal of Yangtze University(Natural Science Edition)

基  金:国家自然科学基金资助项目(51604038)

摘  要:为解决现阶段超声波测距装置测量精度不高的问题,设计了一种基于STM32的超声波测距系统,包括超声波传感器、温度传感器、显示模块、报警电路、无线网络模块。超声波测距采用时间渡越法,通过测量环境温度对当前声速进行修正,使用三角修正函数和中位值平均滤波算法对测量过程中出现的偶然误差进行修正。基于LabVIEW配套开发上位机软件,上位机和单片机采用无线网络通信模式。补偿后测量精度达到±1mm,提高了传统的超声波测距装置的精度。In order to solve the problem of low measuring precision of ultrasonic distance measuring device,an ultrasonic distance measuring system based on STM32 is designed,which includes ultrasonic sensor,temperature sensor,display module,alarm circuit and wireless network module.The ultrasonic distance measurement adopts the time of flight method(TOFM).The current sound speed is corrected by measuring the ambient temperature.The trigonometric correction function and the median value average filtering algorithm are used to correct the accidental errors in the measuring process.Based on LabVIEW,the computer software is developed,and the upper computer and the single chip microcomputer use the wireless network communicating mode.The accuracy of the measurement is up to±1 mm after compensation,and the accuracy of the traditional ultrasonic distance measuring device is improved.

关 键 词:超声波 测距系统 温度补偿 无线传输 

分 类 号:TP216.1[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象