摘要
文章介绍了一种基于STM32的超声波测距系统。该系统利用STM32F407ZGT6作为主控板,利用HC-RS04超声波模块感测障碍物的距离,并将感测的距离数据通过串口发送到PC机端进行显示,实现对障碍物距离实时、高效的监测。同时,也可通过PC机端设计的LabVIEW人机交互界面给STM32F407ZGT6控制板发送命令,控制整个测距系统的启动和停止,实现对系统的远程操作。经测试发现,系统结构简单,操作方便,工作稳定,可靠性高,符合预期要求。
An ultrasonic distance measurement system based on STM32 is introduced.The system uses STM32F407ZGT6 as the main control board,uses HC-RS04 ultrasonic module to sense the distance of obstacles,and sends the measurement data to PC through serial port for display,so as to realize real-time and efficient monitoring of the distance of obstacles.At the same time,it can also send commands to STM32F407ZGT6 control board through LabVIEW human-computer interface designed on PC terminal to control the start and stop of the whole distance measurement system and realize the remote operation of the system.The test results show that the system has simple structure,convenient operation,stable operation,high reliability and meets the expected requirements.
作者
季三飞
雷蕊英
王晴
JI San-fei;LEI Rui-ying;WANG Qing(Shaanxi Polytechnic Institute,Xianyang,Shaanxi,China 712000)
出处
《湖南邮电职业技术学院学报》
2020年第1期29-31,共3页
Journal of Hunan Post and Telecommunication College
基金
陕西工业职业技术学院2019年自然科学专项科研项目“反激电路MOSFET电流和电压波形的尖峰和振荡研究”(项目编号:ZK19-15)。