Introduction: Interfacing MPU6050 With MediaTek Linkit One

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:

Step 1: Connections

MPU6050 : Linkit One

Vin: 3V3
GND: Gnd

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