The I2C communication protocol allows you to communicate with multiple I2C devices on the same I2C bus as long as all devices have a unique I2C address. However, it will not work if you want to connect multiple I2C devices with the same address.
The TCA9548A I2C multiplexer allows you to communicate with up to 8 I2C devices with the same I2C bus. The multiplexer communicates with a microcontroller using the I2C communication protocol. Then, you can select which I2C bus on the multiplexer you want to address.
To address a specific port, you just need to send a single byte to the multiplexer with the desired output port number.
Main Features:
1 to 8 bidireccional translating switches Active-low reset input Three address pins—up to 8 TCA9548A devices on the same I2C bus Channel selection through an I2C bus Operating power supply voltage range: 1.65V to 5.5V 5V tolerant pins