kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.03k stars 472 forks source link

Feasibility to connect Five MPU9250 onto a Arduino #425

Open rlalpha opened 4 years ago

rlalpha commented 4 years ago

Hello All,

Can I ask about the feasibility to connect 5 MPU9250 to one Arduino Mega/other Board? Or, it is better to buy some alternative one?

Thank you for helping.

kriswiner commented 4 years ago

Can be done fairly easily using I2C or SPI, see this https://github.com/kriswiner/MPU9250/tree/master/Dual_MPU9250.

On Thu, Jul 16, 2020 at 8:33 AM Alpha notifications@github.com wrote:

Hello All,

Can I ask about the feasibility to connect 5 MPU9250 to one Arduino Mega/other Board? Or, it is better to buy some alternative one?

Thank you for helping.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/425, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKRRF5BVQQO2MAIVJB3R34MUVANCNFSM4O4ORJ4A .

rlalpha commented 4 years ago

Thank you for rapid response. Can I ask about is that applicable to 5 MPU9250 cases? like I can connect 5IMUs to 10 digital I/O port and read all 5 IMUs data

kriswiner commented 4 years ago

Yes, you will have to toggle the ADO's so that you read from only one MPU at a time. So at any one time, one MPU will have I2C address 0x68 and the other will have 0x69, then toggle so that the next is 0x68 and the rest 0x69, etc. This is not very fast, but it can work, especially if you use the FIFO properly..

On Thu, Jul 16, 2020 at 9:00 AM Alpha notifications@github.com wrote:

Thank you for rapid response. Can I ask about is that applicable to 5 MPU9250 cases? like I can connect 5IMUs to 10 digital I/O port and read all 5 IMUs data

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/425#issuecomment-659507906, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKRLN5X6SR7M6ZE7BM3R34PZVANCNFSM4O4ORJ4A .