kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.02k stars 469 forks source link

Control multiple MPU9250 to start collecting data at the same time #92

Open Hysenzhao opened 7 years ago

Hysenzhao commented 7 years ago

Everyone, Is it possible to use multiple MPU9250s for data acquisition at the same time? I want to use 10 MPU9250s in human motion capture, but how make all MPU9250 work at the same time so that make the data collected meaningful. The MCU what i use is RPi Zero, and transfer data using one I2C.

---Hysen

alexozer commented 7 years ago

Right now it's only really possible to use one I believe; adding support for multiple sensors would at least require implementing multiple interrupt functions, but this is difficult because standard interrupt handlers only accept standalone or static functions and not C++ methods.

Defragster commented 7 years ago

It would take a unique pin to catch each interrupt - and that would trigger a unique function.

But with 10 active devices the time it would take to poll all 10 would probably not be too fast to start over - unless they were grouped onto unique i2c bus subsets.