While working on a project including multiple colors (which I hope to post soon), I realized I needed to use some sort of color sensor/camera. I decided to use 6 TCS34725 modules, which will be able to return the RGB values of certain colors to me. The problem was that these TCS34725 modules use the exact same address: 0x29! This was a problem for me since I needed 6 of these modules, and since the sensors all have the same address, it won't know which ones which! This is when I realized I can use a multiplexer to get these sensor signals into one.
Here, I decided to use an 8-to-1 TCA9548A multiplexer. This has an I2C address of 0x70-0x77, meaning theoretically you can have up to 64 devices on this multiplexer! That's crazy!
For now, I put an RGB LED and a button which will output the RGB values a sensor reads. This is so that when I show a specific sensor a color, it can tell me what the exact color is. For the real project, these RGB value would be used for processing and used for a more complex algorithm. I also used a gamma table to make it closer to how we would see it, and used the clear value to filter out any IR coming through.
It is a little bit inaccurate for now, but it is good enough for my purposes! It most likely has to due with how close I made these sensors in the first place. Hopefully I can show you my new project soon!