Replies: 6 comments 3 replies
-
@schosdas How it works: Z |
Beta Was this translation helpful? Give feedback.
-
Each MPU-6050 can use one of two addresses based on the AD0 pin, which means on any given single I2C bus, you can have two MPUs. In order to run five different MPUs simultaneously, you would need to have three separate I2C buses, and/or an I2C bus multiplexer (which might be simpler in this case). The only other possibility--which I'm not sure will work--is to toggle the AD0 pin on each IMU in a round-robin way so that the "active" one is set to GND (0x68 address) and all others are set to VDD (0x69 address), and communicate with each one in turn. This will fail if the MPU doesn't support switching its AD0 detection in real time, i.e. between different transactions. I've never tried it before, so I'm not sure. |
Beta Was this translation helpful? Give feedback.
-
”The only other possibility--which I'm not sure will work--is to toggle the AD0 pin on each IMU in a round-robin way so that the "active" one is set to GND (0x68 address) and all others are set to VDD (0x69 address), and communicate with each one in turn. This will fail if the MPU doesn't support switching its AD0 detection in real time, i.e. between different transactions. I've never tried it before, so I'm not sure." This method works great! |
Beta Was this translation helpful? Give feedback.
-
Hi there, In Arduino lib (MPU6050.h) we have following descriptions of bits(of MPU6050_RA_USER_CTRL 0x6A). #define MPU6050_USERCTRL_DMP_EN_BIT 7 But official Manual Do you have some other Register Map Manual where this things are documented? Kind Regards, |
Beta Was this translation helpful? Give feedback.
-
In short, no. Unfortunately. Nearly all of the DMP-related implementation came from reverse-engineering the way the original InvenSense ARM-based evaluation driver board worked with the MPU-6050 plug-in daughterboard. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I got it Just found this guy who made example for AVR without motion axis Now I need to port it to STM - to get rid of Wire library |
Beta Was this translation helpful? Give feedback.
-
Hello
I want to connect 5 mpu6050 to Arduino and output roll, pitch, and yaw values. For this, I'm going to use the DMP_V6 example.
I know I can change the address value of the mpu6050, but can I use five sensors at the same time? If possible, can you give us a simple example?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions