How to switch between two sensors sharing same input

I have a BMP180 barometric pressure sensor. I have put it with a arduino UNO and measuring barometric air pressure within a baloon. Now the the project scope has included two baloons, which means I have to have two BMP180s and I need to read values from these sensors every 250 ms. As we know SCL has to go to A5 and SDA to A4 (please see picture), I have to design a switching circuit that can be automatically operated through sketch code.

Many thanks for reading this.

Maybe this will help

Common problem. I just googled

   arduino two BMP180

a7

Call me craxy, but consider a programmable patch panel (matrix of relays), akin to this "any of 16 inputs to any of 16 outputs" (16 x 16 = 256 relays + 16 input on/off relays + 16 output on/off relays = I lost count)

This is what you need:

1 Like

I would like to add here that if I switch to BMP280, there is an alternative solution, using SPI technology. I will not need I2C multiplexer board in this case. Below is a brief guide to wiring. You have to switch between the boards to get input from the boards. You cannot get input from both the boards at a time.

VCC - 3V3
SCL- D13 (SCK)
SDO- D12 (MISO)
SDA- (D11)(MOSI)
For switching
Board 1
CSB -D10
Board 2
CSB - D9

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.