You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jacob Mealey edited this page Mar 17, 2018
·
1 revision
Welcome to the Arduino-MPU6050 wiki!
Arduino-MPU6050 is a library to interface with the MPU-6050 I.C. which is a 3-axis gyro, accelerometer and a thermometer. The MPU-6050 I.C. uses I2C in order to communicate with the Arduino. Arduino-MPU6050 uses the wiring library.
Wiring the Arduino
You will wire the Arduino to your MPU-6050 device just like you would any other I2C device, pin A5 to SCL and pin A4 to SDA.
Initializing mpu class
In order to work with the Arduino-MPU6050 library you must initialize the MPU6050 object.
MPU6050 mpu;
Acceleration
Getting Acceleration Data
The data is given in tenths of G's (maybe?)
Normalized
The way to access the acceleration is using the Vector struct, and the member function Vector readNormalizeAccel(void)