Hello,
A while after I managed to get reasonable output from my Drotek 6050 IMU board while watching output values in serial monitor it suddenly stopped displaying them and by that I mean all earlier values were gone and it was just a blank page.
This happened while running this code with Kalman filtering from TKJElectronics. Then I tried running Krodal's code, which again gave no results (unlike before). Then I tried running the I2C scanner and got told that there's a device on 0x69 (as should be). Now, when running Krodal's code I get this:
InvenSense MPU-6050
WHO_AM_I : 68, error = 0
PWR_MGMT_1 : 40, error = 0
MPU-6050
Read accel, temp and gyro, error = 2
accel x,y,z: -5374, 0, 300
temperature: 37.212 degrees Celsius
gyro x,y,z : 2050, -15552, -32255,
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 0, 0, 0
temperature: 36.506 degrees Celsius
gyro x,y,z : 0, 0, 0,
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 0, 0, 0
temperature: 36.506 degrees Celsius
gyro x,y,z : 0, 0, 0,
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 0, 0, 0
temperature: 36.506 degrees Celsius
gyro x,y,z : 0, 0, 0,
MPU-6
As you can see it just stops mid-word and doesn't print anymore. Then if I wait long enough it shoots some zeros at me again and then stops once more. Any ideas why is this happening and if the IMU is dead?
Additional info:
The board I'm using is from Drotek
I was not using pull-up resistors for SDA/SCL to analog pins - can this be the case somehow?
Maybe anyone reading this could also recommend a good tutorial explaining how to use perpendicular axes of accelerometer alone to get more reliable pitch and roll data in dynamic conditions?
Thanks!