Display the 3D orientation of the IMU device using processing and an Arduino board
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.
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.
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)
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.
I'm using shapes3d & g4p_controls. Some imports are commented for experiment reasons.
As you can see, the orientation is not in relation with the screen, it's sort of inverted