Change I2C address for REV Color Sensor

I wanted to use two I2C color sensors, however the address for it is 0x39. I’ve got both hooked up, but I need the code to be able to differentiate the two. How would I go about changing the address for one of the sensors? Thanks

The i2c address on the color sensor is fixed. The best bet is to plug them into the two different i2c universes. The one on the side of the RoboRIO and the one in the MXP port are separate.

1 Like

Thanks for the help!

You could also use an I2C multiplexer, similar to the following: https://learn.adafruit.com/adafruit-tca9548a-1-to-8-i2c-multiplexer-breakout/overview

Note that I haven’t used one before, so I can’t recommend specific models.

Hello, were you able to figure out how to use the Mux?