Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 1.46 KB

File metadata and controls

39 lines (21 loc) · 1.46 KB

3D-Orientation-IMU-10DOF-MPU9250-Test-Grove

Display the 3D orientation of the IMU device using processing and an Arduino board

Introduction

In order to make a 3D simulation of a Robot, I first made some tests with Processing, a visual art language. I also forked a sketch from https://github.com/kriswiner/MPU9250.

Video

Video

Change dones on kriswiner's sketch

I have made some change to the Arduino Sketch:

  • In order to receive the orientation & some infos, the arduino board print serial infos.
  • I've made a new var for the informations printing interval.

Components

I'm using a IMU 10DOF Grove from Seed Studio working in I2C mode. That IMU integrate the MPU9250 gyro/accel/mag(AK8963) & a pressure sensor (BMP280)

Git structure

Arduino code is located in IMU_Arduino. The processing project is located in ProcessingIMU3DProject. I used the version 3.3.6 of Processing to make that sketch.

Processing Libs

I'm using shapes3d & g4p_controls. Some imports are commented for experiment reasons.

remaining problems

As you can see, the orientation is not in relation with the screen, it's sort of inverted