How to hook up multiple sensors that all require analog pins 4 & 5

Hello Everyone,

I'm sure this has been asked before but I haven't been able to find a forum post on the topic. Is there a good way(or is it even possible) to hook up multiple sensors to an Arduino Uno that require pins 4 and 5? From what I understand 4 and 5 are special?

As an example can I use a BMP085 Altimeter with a MPU-6050 accelerometer/gyroscope? I have used both independently to make the calculations I require, but can they be used together? If so does anyone have an example? (Arduino Playground - MPU-6050)

Analog pins 4 and 5 double up as the I2C pins SCL and SDA - that's what's special about them. You can connect multiple I2C devices (such as one BMP085 and one MPU6050) to these pins, as long as they have different addresses - which should be the case if they are different devices.

dc42:
Analog pins 4 and 5 double up as the I2C pins SCL and SDA - that's what's special about them. You can connect multiple I2C devices (such as one BMP085 and one MPU6050) to these pins, as long as they have different addresses - which should be the case if they are different devices.

Thanks! that was way easier than I expected.