I2C Interface

Hello good people, hope you are all well.

Okay so I'm using MPU6050 for my project. It uses the i2c bus to connect to Arduino and therefore should be connected through pins A4 and A5 (SDA and SCL).

I'm also using flex sensors and I need 7 analog inputs. Some people suggested using ADS1115, which also uses I2C and connects to Arduino through pins A4 and A5 and gives more analog pins.

Now my question is, will it be possible to connect the MPU6050 to the analog pins provided by the ADS1115 or it should be connected only to Arduino A4 and A5?

Now my question is, will it be possible to connect the MPU6050 to the analog pins provided by the ADS1115 or it should be connected only to Arduino A4 and A5?

It can ONLY be connected to the I2C pins.

The Mega has I2C in different places, and more analog pins (and memory). Just a thought.

In this forum, a gentleman posted a link to a softI2C library. It's available on Github. It should allow you to use any two pins.

If you need that many analogue inputs then the previous posters recommendation should be followed as you will have some spares for future use.

There are more than 6 software I2C libraries. Perhaps one of them (or a combination of the best bits of many) should be added to the official Arduino libraries, just like the SoftwareSerial.
The Arduino Leonardo and Arduino Micro boards have I2C, and beside that enough analog pins. The Mega 2560 board has of course a lot more of everything.