Get more analog pins

Hey,
I need more Analog inputs cause i want to connect multiple MPU6050. How can I get more?

Add another ADC-chip or get micro controller with more channels.

Or put an analogue multiplexer in front of each analogue input.

The MPU6050 is not an analogue device.
If you need multiple MPU6050 you must find a way to share them on the same I2C bus.

Ha silly me I trusted that @thereider knew at least the basics of what he was asking about and assumed he did need more analogue inputs.

This lack of knowledge doesn't bode well for a successful project, or even understanding the answer. What is needed is an I2C bus multiplexer, which is described Here

Or to use an analogue multiplexer to switch the clock and data of the I2C bus to each individual MPU6050.

Cool, good to know. Thanks.

Yeah, im a beginner. So can i use a CD74HC4067 to get the data from multiple MPU6050?

If you can budget one I/O pin per MPU6050, you can use that to control the I2C address.

Can you explain it more? So more details to my project would help in the beginning. Sorry for that.
Here we go:
I want to connect 10 MPU6050 to my Arduino Uno or Mega.
I got a CD74HC4067, can this solve the problem?

The MPU6050 has two possible I2C addresses, set by a single input pin.
If you give an I/O pin to each device, you can set all but one device to address X, and the remaining device to address Y, and that's the one you talk to.
You can only talk to one device at a time .

If you need to address multiple devices simultaneously, you'll need a controller with more I2C interfaces.

I've never tried it for so many devices

Yes, you could use that to achieve the solution described by @anon73444976 but using only 4 Arduino pins instead of 10. You would connect the multiplexer channels to the ADDR pins of the mpu6050.

You may have a problem connecting 10 mpu boards on the same bus, because each board probably has its own pull-up resistors, which, when combined in parallel, become too strong and prevent the i²c bus from operating correctly. You would have to remove those pull-ups on 9 of the 10 boards.

I think that the i²c multiplexer suggested would be an easier solution than using 74hc4067.

I also agree with @Grumpy_Mike that from the words of your first question, we can say that your level of experience will make your project very difficult.

A TCA9548A I2C-Multiplexer and than i can connect all 1o mpu? And I know that my project could be difficult.

No that will only give you 8 I2C buses.
So you need two of these boards.
multiplexer breakout

I think I know where the mistake was made. Because the MPU6050 connects to the I2C lines which on an Arduino is A4 & A5 he thought that it was an analogue in sensor.

Still totally little information. What is this doing for your project and why 10 of them. You can't put then on long wires you know as the distance you can wire up an I2C but is only in the region of two feet.

And what plans do you have to acquire the basic information that you need to know before you can begin to ask meaningful questions?

Hi, @thereider
Can you please tell us your project and why you need multiple units of 6050s?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:
PS; Knowing the full story we will be in a better position to give you constructive answers.

So I need 10 different Sensors cause I got 10 different joints to detect the "angle". And this at the same time. I found another person who tried the same: Connecting multiple MPU6050(GY521) to Arduino Due

And with the information of the sensors diffrent motors will powered

Well all very vague, I suggest you come back when you want to actually cooperate with us.

Only one multiplexer, I think. Most mpu6050 boards have a "ADR0" pin enabling selection of 2 i²c addresses, so 2 mpu boards on each of 5 multiplexer channels.

Yes spot on I missed that.
Thanks.

You don't need anything except a DIO for each MPU6050. The board has an address selector pin that can allow you to select one of two addresses.

So with an individual DIO to each MPU6050 address pin,
You set the address pin high for all the MPU6050 you DON"T want to read and low for the one you do want to read.....easy.