Tested on MACOS X 10.9.5
Libraries for Arduino
Libraries for Processing
Codes / Files
Wiring MPU 6050 with Arduino
After downloading, unzip it.
Browse into the unzipped folder
For a correct use, we need to install a second library from the same unzipped folder. This time, it’s named : MPU6050. Drag it to the Arduino’s librairies folder.
Arduino software : connecting MPU6050 to serial Port – 1srt communication with computer
Launch Arduino software to check the good installation of libraries.
Go to File → Examples → MPU6050 → Examples → MPU6050_DMP6
After connecting Arduino board to your computer with USB wire, click the upload button.
Type any key in the field of serial monitor and click on the Send button…
Have a look on this video to check working example :
The Teapot Demo
The next step is checking the good communication between the arduino serial port and another application. There’s an ready-tot-go way to do that : the teapot demo. The teapot demo combines 2 files : an arduino one and a processing one. It’s very easy to use them to test the way arduino’s serial port communicates with another application.
Filtering values from sensor
For acurate results in Unity, we need to filtering the values sent by mpu6050. For detailed explanations, read the following posts :