How Synchronize multi MPU6050 by I2C Multiplexer #621
Replies: 3 comments
-
simple..... I hope :) in MPU6050_6Axis_MotionApps612.cpp
you will repeat this first part for each of your MPU's The second part will execute the above 3 lines for each of your MPU's which will start the MPU DMP routine. Z |
Beta Was this translation helpful? Give feedback.
-
Many thanks. My sensors (MPU6050) return 0xC instead of 0x34 even though I modified |
Beta Was this translation helpful? Give feedback.
-
MPU6050_6Axis_MotionApps20.cpp is deprecated. The only advantage is a smaller binary file Let's see if that helps fix problems |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I got difficulty with DMP using MPU6050_6Axis_MotionApps20.h (old and recent versions) when I want to read 5-10 MPU605 at the same time. Is there any way to synchronize starting DMP and sampling rates?
void loop()
{
for(i=0;i<8;i++)
{
SelectI2cChannel(i);
while (!mpu.dmpGetCurrentFIFOPacket(fifoBuffer))
{
delayMicroseconds(100);
}
mpu.dmpGetQuaternion(&q, fifoBuffer);
mpu.dmpGetGravity(&gravity, &q);
mpu.dmpGetYawPitchRoll(ypr, &q, &gravity);
mpu.dmpGetLinearAccel(&aaReal, &aa, &gravity);
mpu.dmpGetGyro(&gy, fifoBuffer);
PrintData();
}
}
Beta Was this translation helpful? Give feedback.
All reactions