Interfacing MPU6050 With MediaTek Linkit One

by kmamaniya in Circuits > Sensors

2125 Views, 7 Favorites, 0 Comments

Interfacing MPU6050 With MediaTek Linkit One

temp_-2064795233.jpg
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

Datasheet: https://cdn.sparkfun.com/datasheets/Components/General%20IC/PS-MPU-6000A.pdf

More processing and example code: https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050

Connections

temp_-1653871886.jpg
MPU6050 : Linkit One

Vin: 3V3
GND: Gnd
SCL: SCL/AD5
SDA: SDA/Ad4
INT: D2

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.

Downloads

Compile and Run

IMG_20151113_234740.jpg
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

Downloads