Connecting sensors in parallel

Hi fellas,
Let's assume I want to connect 4 groups of sensors, each group consists of one ADXL346 and one hc-sr04.
But I need only ONE group working at the same time.

Can I connect for that 4 ADXL346 and four hc-sr04 in parallel and somehow switch the power of each group on and off?

A HIGH side MOSFET switch can be used to turn ON/OFF devices.

The controller can operate these switches.

The problem comes when the sensor outputs are in parallel, this will more than likely cause problems.

To enable/disable the signal lines you could use opto FETS, however, we are now talking about complexity.

You can also Google multiplexer. :thinking:

Do you just need an io expander?

I could not see your links to "Technical" Information so I assume my first hit on the search engine is correct. I am not sure of your expertise or resources. I will take a SWAG: feel free to correct me with appropriate data, the schematic is not visible. You can connect all the ADXL346 together and use the CS line to select them, This is a digital signal. The same with the hc-sr04 except you will either need individual pins or a digital multiplexer. Good Luck!

Are you hoping to save power by turning all but the current item off, or are you hoping that by turning them off, they'll be invisible? The latter is rarely optimal. Better to select or multiplex, depending on the device. Please advise.
C

Thanks Larry for your help, I will go for a multiplexer!

Thanks for your help, I will go for a multiplexer!

Thanks for your help, I will go for a i2c multiplexer.

Thanks for your help, I will go for a multiplexer like this i2c multiplexer