Abstract
www.youtube.com
I had used MPU9250 with Raspberry PI before, so I did same thing with Arduino. I implemented formula to calculate yaw, but I won't use because I want to make it accurate and simple.
How it works
Arduino
At first, get acceleration and angular velocity with this library.
github.com
Then add (angular velocity * delta time) to the rotation.
Calculate rotation from acceleration with below formula to calibrate.
Blend them like this.
※I used pointer to make function of this process.
Finally serial print them.
Processing
Use readStringUntil and convert to number. Then, just visualize it.