Design and Implementation of a 3D Relative Position Acquisition System Based on STM32
摘要
The system is based on the ESP32 microcontroller and combines the MPU6050 inertial sensor and UDP transmission protocol to achieve accurate acquisition and real-time transmission of three-dimensional relative position information. The system uses the ESP32 microcontroller and MPU6050 inertial sensor as the key Euler angle acquisition unit, with UDP communication determining relative position. Additionally, the relative position and Euler angle information of each unit will be synchronized to Unreal Engine 5 (UE5) in real-time, achieving the reproduction of a digital twin human posture model. In an arm posture capture experiment, three data acquisition units work together to achieve real-time capture of sensor data and real-time capture and reproduction of virtual character arm posture. The system demonstrates good performance, with angle errors within 5 degrees and data reception intervals within 25 \(\upmu \) s.