基于STM32的三角视差测量与演示装置设计
Design of a Triangular Parallax Measurement and Demonstration Device Based on STM32
DOI: 10.12677/iae.2025.133046, PDF,    科研立项经费支持
作者: 宋俊宏, 庄智颖*:东莞理工学院粤台产业科技学院,广东 东莞
关键词: 三角测距Unity 3DSTM32物体识别与跟踪Triangulation Unity 3D STM32 Object Detection and Tracking
摘要: 针对当前天文科普教育领域缺乏展示天文观测原理的互动性、自动化的互动装置问题,本文以三角测距方法为基础设计了一种基于STM32的互动式视差测量演示装置。该装置以电机、舵机和摄像头组成测距云台模块;并通过RS485通信和CRC-16/MODBUS校验实现对编码电机的精准控制,且利用YOLO V5进行实时目标检测。测距数据与角度信息通过STM32与PC端交互,并在Unity 3D上开发的UI人机交互页面中实时虚拟仿真模拟及标注辅助测量线,直观模拟三角视差现象。实验表明,该装置具备高自动化、强互动性和可视化优势,可有效提升天文科普教学效果。
Abstract: In response to the current lack of interactive and automated demonstration devices for showcasing astronomical observation principles in science education, this paper designs an STM32-based interactive parallax measurement demonstration device based on the triangulation method. The device consists of a ranging pan-tilt module composed of motors, servo motors, and a camera. It achieves precise control of the encoded motors via RS485 communication and CRC-16/MODBUS verification, while utilizing YOLO V5 for real-time target detection. The ranging data and angle information are exchanged between the STM32 and the PC, and are virtually simulated in real-time on a UI human-machine interaction page developed in Unity 3D, with auxiliary measurement lines annotated to visually demonstrate the triangular parallax phenomenon. Experiments show that the device offers high automation, strong interactivity, and visual advantages, effectively enhancing the effectiveness of astronomical science education.
文章引用:宋俊宏, 庄智颖. 基于STM32的三角视差测量与演示装置设计[J]. 仪器与设备, 2025, 13(3): 367-382. https://doi.org/10.12677/iae.2025.133046

参考文献

[1] 刘文龙. 基于Modbus和嵌入式的步进电机控制设计[J]. 家电科技, 2022(S1): 438-441.
[2] 李琳, 魏立峰, 贲伟建. 基于stm32的步进电机实时监测系统设计[J]. 信息系统工程, 2016(2): 31-32.
[3] 蔡淼. Modbus RTU协议中字节型CRC-16算法分析与实现[J]. 物联网技术, 2015, 5(3): 35-36+39.
[4] 李金承, 雷青松, 刘雪莲, 等. 基于单片机和RS485的电子工业洁净室监测系统[J]. 科技与创新, 2024(1): 28-30.
[5] 谭斌, 王婷. YOLOv5与视差计算算法的目标检测与测距系统设计[J]. 科学技术与工程, 2024, 24(21): 9015-9024.
[6] 费杰, 鲁博洋, 唐鹤云, 等. 基于Unity与单片机的DR可交互仿真教学工作站的设计与应用[J]. 实验室研究与探索, 2019, 38(8): 110-113+133.
[7] 狄磊. 基于Unity的普通车床虚拟仿真学习系统[D]: [硕士学位论文]. 南京: 南京邮电大学, 2019.
[8] 刘玉均. 基于Unity3D的工业机器人现场编程实训仿真教学系统设计[J]. 现代计算机, 2024, 30(19): 101-105.
[9] 冯雨轩, 王圣玥, 杨丹丹, 等. 物联网智能浇灌控制系统[J]. 计算机科学与应用, 2017, 7(4): 329-335.
[10] Wang, X., Li, X., Du, H., et al. (2024) Design of an Intelligent Disinfection Control System Based on an STM32 Single-Chip Microprocessor by Using the YOLO Algorithm. Scientific Reports, 14, Article No. 31686. [Google Scholar] [CrossRef] [PubMed]
[11] Xia, K., Zhu, B., Lou, Y., et al. (2024) A Rotary Wireless Power Transfer System with Rail-Type Coupling Structure. IEEE Access, 12, 63967-63975. [Google Scholar] [CrossRef
[12] Fajrianti, E.D., Panduman, Y.Y.F., Funabiki, N., et al. (2024) A User Location Reset Method through Object Recognition in Indoor Navigation System Using Unity and a Smartphone (INSUS). Network, 4, 295-312. [Google Scholar] [CrossRef