I am a complete noobie with both arduino and electronics in general.
I have and arduino due and a mpu-6050 breakout board from ebay http://www.ebay.co.uk/itm/1x-MPU-6050-Module-3-Axis-Gyroscope-3-Axis-Accelerometer-Sensor-MPU6050-Arduino-/320995455051?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item4abcd1f04b
I have connected the
3v3 pin to the 3.3v output on arduino
gnd pin to the gnd pin on arduino
scl pin to scl1 pin on arduino
sda pin to sda1 pin on arduino
I have used the following sketch Arduino Playground - HomePage
the serial output is as follows:
InvenSense MPU-6050
June 2012
WHO_AM_I : 0, error = 1
PWR_MGMT_2 : 0, error = 1
MPU-6050
Read accel, temp and gyro, error = 1
accel x,y,z: 0, 4200984, 134257412
temperature: 37.259 degrees Celsius
gyro x,y,z : 1, 0, 137590197,
MPU-6050
Read accel, temp and gyro, error = 1
accel x,y,z: 0, 1073747994, 525467
temperature: 36.509 degrees Celsius
gyro x,y,z : 1, 0, 137590197,
MPU-6050
Read accel, temp and gyro, error = 1
accel x,y,z: 0, 4200984, 134257412
temperature: 37.259 degrees Celsius
gyro x,y,z : 1, 0, 137590197,
MPU-6050
Read accel, temp and gyro, error = 1
accel x,y,z: 0, 1073747994, 525467
temperature: 36.509 degrees Celsius
gyro x,y,z : 1, 0, 137590197,
................
I can't figure out why the error is shown as 1 and there is no change in the gyro readings and the accel readings seem to jump back and forth to exactly the same readings.
can anybody please help??
Thanks