Using 2 MPU6050s


I'm trying to access the address of a second MPU6050, by putting its AD0 pin to high, making its address at 0x69 instead of 0x68. Problem is that I'm not sure that the code I'm using for a single gyro can access the data from 0x69. By default it draws the data from address 0x68 and I'm not sure how to initialize the other gyro at the new address. The library I'm using is MPU6050_tockn.h

There are MPU6050 libraries that allow you to set the I2C address. You will have to initialize two instances of the library, each with a different address.

Or, use the SPI connection, with the chip selects on different Arduino output pins.