MPU6050 is and inertial measurement unit (IMU) consisting of accelerometer and gyroscope.
In this instructable, I'm gonna interface this device with the Mediatek Linkit One board and obtain raw data from the sensor
More processing and example code: https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050
Step 1: Connections
MPU6050 : Linkit One
Step 2: Code
I wrote a basic example to get the raw data from the sensor. But this data cannot be used for any calculations or stuff since its not in and standard units, its raw A to D conversion. Take a look in the DMP example to get processed output.
Step 3: Compile and Run
You'll need to add the MPU6050 library in the arduino software location
Usually: C:\Program Files (x86)\Arduino\arduino-1.6.5-r2\libraries
I have attached the zip. Extract the folder and paste it at the location of the libraries
Compile, upload and you are ready to go.
Open serial monitor to see output