Multiple MPU6050

steinie44:

tanminggui:

steinie44:
Don't run the signals, SDA or SCL through the multiplexer.
Run the Address pin ADO through the multiplexer. Then select the one you want to use with the 74HC4051N address.

DId you mean connect the AD0 pin to the input of multiplexer? then how should I connected my SDA and SCL??

No, connect the input to the multiplexer High. then when you select the address, only one of the 4 MPU6050's will be addressed as 0x69. The other 3 will be 0x68. You only use 0x69 to talk to the one selected. Don't use 0x68 at all.

Now all 4 SDA lines are connected to the Arduino SDA. As well as all 4 SCL lines to SCL.

Ok. This sound like a good idea for me.

Since I am using Sparkfun MPU6050, I need to desoldier the AD0 pin first (which is quite troblesome). But anywhere, thanks for the advise.

I will share my result once I get it done.

Thank you again.