Problem using MPU 6050 with Arduino UNO at I2C address 0x69

hi ,

i am getting drastically fluctuating values of Yaw, pitch and roll using MPU6050 (accelerometer and Gyroscope) with arduino UNO at address 0x69 even when the sensor is untouched.

i am using two MPU6050 sensor for calculating joint angle calculation. so i connected one sensor at the address 0x68 and the another 0x69. the sensor at 0x68 is doing well but the sensor at 0x69 is giving continously fluctuating values of yaw, pitch and roll even if the sensor is stationary.

any suggestion is most welcome. i am attaching the code i am using for the same purpose.

MPU-6050_SECOND_modification-1.ino (20.3 KB)

In such cases I proceed by isolating the problem. Create the simplest setup that demonstrates the problem. In this case, remove the sensor using address 68 and all the code that refers to it, then see if the problem persists. If it does, check all the connections to the sensor. If the sensor appears to be malfunctioning, set A0 high on the "other" sensor and try that instead.

By the way, how did you set A0 high on the sensor supposedly at address 0x69?

i connected AD0 with 5V pin on my Arduino board to make it use address 0x69.

and thanks for your reply. i will try to do this your way and will post about the results.

thanks