sparkfun / SparkFun_MPU-9250-DMP_Arduino_Library

Arduino library for the MPU-9250 enabling its digital motion process (DMP) features.
Other
229 stars 151 forks source link

Using two MPU9250s at the same time #26

Closed Daniel-t closed 5 years ago

Daniel-t commented 5 years ago

Has anyone managed to use this library (with modification) to support using more than one 9250 at a time?

I've made some basic changes to pass the I2C address through in the begin function, however it gets overwritten by subsequent calls from a different object instance.

santaimpersonator commented 5 years ago

As mentioned in the datasheet, you need to configure the I2C address through the hardware. Otherwise, you will need to terminate your I2C connection and access your secondary device (see videos below).