how to connnect 3 mpu6050 to arduino uno?

how to connnect 3 mpu6050 to arduino uno? and get the values by code?
I`m new to this, so i need realy deep explain.

thanks alot!

Start by connecting one and getting it to work. There are plenty of tutorials.
Then come back and ask about three.

I get along with one..
i need 3 mpu sensors in my project.. if there is no solution with one arduino board so i will need more boards..
so i need a real answer not looming one!
thank you.

MPU6050 only supports 2 I2C addresses, selected with pin AD0:
I2C ADDRESS
AD0 = 0
1101000
AD0 = 1
1101001
If you want 3, then an I2C mux is needed, such as:

http://www.dsscircuits.com/sale/category/multiplexers

Or you can fake one by controlling which device see the SCL signal with an OR gate - SCL is normally high, drive 2nd gate or OR gate LOW to let output follow the SCL input.
Single gate buffer like HC125A would work also, power it from 3.3V so it has 3.3V output.

It is easy to address several MPU6050s without a multiplexer. Wire them with one Arduino output pin per A0 line, setting the A0 line low for the one you want to address, leaving A0 on the rest high.

Ooh, that's clever too. Good one jremington.

thanks its work for me with 2
now i will get one of this multiplexers chip and 2 more boards

what the Third address?

MPU6050 accelgyroIC1(0x68);
MPU6050 accelgyroIC2(0x69);
MPU6050 accelgyroIC3 .. ?

thanks alot!

For not using a multiplexer:
As I understood basically you are only using one address (e.g. 0x68). Then you are pulling the AD0 pin of the respective MPU6050 you want to use in this moment LOW (and pull the other ones to HIGH). So you have an additional wire from the Arduino output pins to each of your MPU6050.

In other words: There is only one MPU6050 with the address 0x68 (active) at each moment in time.

For just 3 MPU6050 it might be easier than a multiplexer. Correct me if I'm wrong :wink:

For just 3 MPU6050 it might be easier than a multiplexer. Correct me if I'm wrong

Your wrong, use the trick described here:-

http://playground.arduino.cc/Main/MPU-6050