How can I add 2 pressure sensors BMP180 to Arduino Uno?

Hello there :). Same problem here.
I also need to hook up two BMP180-sensors to a Uno.
First I tried the SoftI2cMaster library. But I couldn't get I to work. So after a lot of frustration I wrote my own I2C library specially for BMP180. It can properly also be used for some other sensors too.
It supports an infinite number of I2C-connections (as long as you have enough pins on your board).

I have attached an example .ino which reads two BMP180-sensors. It can be easily modified to more sensors.
I have also attached the library.h and .cpp which should be put in your library folder.

There is almost no comments in the code since I am a lazy bastard, wrote it for my self and only puts it up here as a kind gesture.

BTW: If the sensor is located on a breakoutboard, it has pull-up-resistors built in.

Hope it helps dude. 8)

BMP180_Dual_Pressuresensors_AH.ino (5.04 KB)

MyWireLib.cpp (5.54 KB)

MyWireLib.h (742 Bytes)