Interfacing MPU6050 With MediaTek Linkit One
by kmamaniya in Circuits > Sensors
2125 Views, 7 Favorites, 0 Comments
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
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
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
MPU6050 : Linkit One
Vin: 3V3
GND: Gnd
SCL: SCL/AD5
SDA: SDA/Ad4
INT: D2
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
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
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