You just found the perfect I2C sensor, and you want to wire up two or three or more of them to your Arduino when you realize Uh oh, this chip has a fixed I2C address, and from what I know about I2C, you cannot have two devices with the same address on the same SDA/SCL pins! Are you out of luck? You would be, if you didnt have this ultra-cool TCA9548A 1-to-8 I2C multiplexer! Finally, a way to get up to 8 same-address I2C devices hooked up to one microcontroller - this multiplexer acts as a gatekeeper, shuttling the commands to the selected set of I2C pins with your command. Using the TCA9548A I2C Multiplexer is fairly straight-forward: the multiplexer itself is on I2C address 0x70 (but can be adjusted from 0x70 to 0x77) and you simply write a single byte with the desired multiplexed output number to that port, and bam - any future I2C packets will get sent to that port. In theory, you could have 8 of these multiplexers on each of 0x70-0x77 addresses in order to
⚠️ WARNING (California Proposition 65): This product may contain chemicals known to the State of California to cause cancer, birth defects, or other reproductive harm. For more information, please visit www.P65Warnings.ca.gov.