摘要
近年来,非接触测距方式发展迅速,超声波测距是非接触测距方式的一种,因其精度高、成本低、性能稳定而备受青睐,在车辆定位、机器人避障等领域应用广泛。设计了一款简易的超声波测距装置,采用STM32单片机为控制核心,采用HC-SR04超声波模块作为距离感应模块,并通过OLED将采集的数据实时显示出来。经过绘制电路原理图、搭建实物装置、编写程序、调试等工作,最终完成了实物设计工作,实现了对距离的测量。
In recent years, the non-contact ranging methods are developed rapidly. Ultrasonic ranging is one of the non-contact ranging methods. It is favored for its high accuracy, low cost and stable performance. It is widely used in vehicle positioning, robot obstacle avoidance and other fields. A simple ultrasonic distance measuring device is designed in this paper with the STM32 micro-controller as the control core. The HC-SR04 ultrasonic module is used as the distance sensing module. And the collected data can be displayed in real time by OLED. After drawing circuit schematic, building physical device, programming, debugging and other works, the physical design work is finally completed, and the distance measurement is realized.
作者
王书侠
王国新
刘智超
WANG Shuxia;WANG Guoxin;LIU Zhichao(Heilongjiang University of Science and Technology,Harbin 150022,China;Intelligent Automation Zhuhai Co.,Ltd.,Zhuhai 519000,China)
出处
《仪表技术》
2021年第3期23-24,66,共3页
Instrumentation Technology
基金
2020年度黑龙江省省属高等学校基本科研业务费科研项目(702/0000070210)。
关键词
测距
单片机
超声波模块
显示
ranging
micro-controller
ultrasonic module
display