基于STM32的高精度红外测距实现  

High Precision Infrared Ranging Based on STM32

在线阅读下载全文

作  者:王昕龙 刘爱国[1] 刘震昊 Wang Xinlong;Liu Aiguo;Liu Zhenhao(School of Materials Science and Engineering Shenyang Ligong University,Shenyang Liaoning 110158,China)

机构地区:[1]沈阳理工大学材料科学与工程学院,辽宁沈阳110158

出  处:《山西电子技术》2023年第3期29-32,共4页Shanxi Electronic Technology

摘  要:为了改善普通红外测距模块的测量精度,本次测距实现在红外测距的基础上加入了数据处理的算法,从而使得价格低廉的测距模块达到了较高的测量精度。硬件部分主要是以STM32F103ZET6型号的单片机为核心加上电源电路、复位电路、串口电路及测距模块电路构成;软件部分主要包括三部分程序,分别是模数转换模块、串口模块和主函数模块;最后便是在程序中加入了数据处理的算法通过消除随机误差的方式提高测距精度。实验结果显示:经过20次左右的迭代之后精度能够提高到0.01 cm,且通过卡尔曼估计进行迭代得出的距离值总是小于通过均值迭代得出的距离值。In order to improve the measurement accuracy of the ordinary infrared ranging module,the ranging is realized on the basis of infrared ranging to add the data processing algorithm,which makes the low-cost ranging module to achieve a higher measurement accuracy.The hardware part is mainly based on STM32F103ZET6 single chip microcomputer as the core,plus the power circuit,reset circuit,serial circuit and distance module circuit;the software part mainly includes three parts of the program,respectively are analog-to-digital conversion module,serial module and main function module.Finally,the algorithm of data processing is added to the program to improve the ranging accuracy by eliminating random errors.The experimental results show that the accuracy can be improved to 0.01cm after about 20 iterations,and the distance value obtained by iteration through Kalman estimation is always less than the distance value obtained by mean iteration.

关 键 词:红外测距模块 STM32 数据处理 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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