Connecting multiple sensors or modules on the same I2C bus, all with the same address, can be achieved by using this PCA9548A module. The module multiplexes the address over eight (8) available ports. In this manner, one can interface, for example, up to eight of the same modules (all with the same inherent address).
As an example application, consider the following. The ADXL345 accelerometer has an inherent, and fixed, address of 0x53. This cannot be changed. If wanting to connect multiple of these modules onto a single I2C bus, one would have to use something similar to the PCA9548A module. In this example, two ADXL345 are connected on Port 0 and Port 1. We chose to pull A0 HIGH and A1, A2 LOW to set address 0x71. The pin connects are straight-forward - just read the SDA and SCL labels on the modules and match them up! Supply Vin and GND and you're good to go. The Arduino IDE sketch can be downloaded here. You can use any microcontroller you wish, as long as the operating voltage is between 2.3V and 5.5V. Our microcontroller of choice for quick prototyping is often the Arduino Nano, but use whatever is in your collection. For any questions please contact us.