Hi,
I have an MPU 6050 and it is giving me wild readings here is a sinippet of one of those readings:
Ax: 4604 Ay: -3692 Az: 15120
Gx: 1375 Gy: 1016 Gz: 597
and the code i am using is this:
#include <MPU6050.h>
MPU6050 mpu;
void setup() {
Serial.begin(9600);
Wire.begin();
mpu.initialize();
}
void loop() {
int16_t ax, ay, az, gx, gy, gz;
mpu.getAcceleration(&ax, &ay, &az);
mpu.getRotation(&gx, &gy, &gz);
// This Prints sensor data
Serial.print("Ax: ");
Serial.print(ax);
Serial.print(" Ay: ");
Serial.print(ay);
Serial.print(" Az: ");
Serial.println(az);
Serial.print("Gx: ");
Serial.print(gx);
Serial.print(" Gy: ");
Serial.print(gy);
Serial.print(" Gz: ");
Serial.println(gz);
delay(100);
}