通过 Arduino 从 MPU6050 获取 IMU 数据进行姿态解算,并利用 Processing 进行三维姿态显示

本文最后更新于:May 7, 2023 pm

Overview

Arduino UNO & MPU6050 GY521

Hardware components

Arduino Apps

  1. Download jrowberg/i2cdevlib/Arduino, copy I2Cdev and MPU6050 to Arduino libraries
  2. Open Arduino IDE, File->Examples->MPU6050->MPU6050_MPU6
  3. #define OUTPUT_READABLE_YAWPITCHROLL -> //#define OUTPUT_READABLE_YAWPITCHROLL //#define OUTPUT_TEAPOT -> #define OUTPUT_TEAPOT
  4. compile and upload

Processing Apps for 3D Simulation

  1. install Processing IDE
  2. install ToxicLib into the Processing's libraries folder (modes -> java -> libraries), unzip toxiclibs-complete-0020.zip in ToxicLibs and place aLL the contents there
  3. running the teapot demo from the MPU6050_DMP6 example from Jeff Rowberg's MPU6050 libary


通过 Arduino 从 MPU6050 获取 IMU 数据进行姿态解算,并利用 Processing 进行三维姿态显示
https://cgabc.xyz/posts/8bc28273/
Author
Gavin Gao
Posted on
May 24, 2020
Licensed under