User Manual
Arduino
Wiring
Wiring the MPU-6050 to communicate with your microcontroller is straight forward thanks to the I2C interface. For
these examples we can use the Metro or Arduino to take measurements. The instructions below show a
Metro (https://adafru.it/METROXMETR), but the same applies to an Arduino
Connect board VCC (red wire) to Arduino 5V if
you are running a 5V board Arduino (Uno, etc.). If
your board is 3V, connect to that instead.
Connect board GND (black wire) to Arduino GND
Connect board SCL (yellow wire) to Arduino SCL
Connect board SDA (blue wire) to Arduino SDA
Library Installation
Once wired up, to start using the MPU-6050 you'll need to install the Adafruit_MPU6050 library (https://adafru.it/GEs).
The library is available through the Arduino library manager so we recommend taking that approach.
From the Arduino IDE, open up the Library Manager:
© Adafruit Industries https://learn.adafruit.com/mpu6050-6-dof-accelerometer-and-gyro Page 7 of 20