The color senzor module will play two functions in my Robocat: a) detect food (it is going to be brownish) b) detect green leafs (to hide in the forest :-).
Now, it looks easy to mount it on Arduino and use it. But it is going to eat 4 pins. I need pins, since the Robocat has to do many other things.
I searched the net. There are indeed I2C dedicated color sensors. But they are more expensive and mostely work on 3.3 V. I want to keep all in 5V, the cat is already complicated, I do not want 2 voltages.
So I procured this TCS230 module: https://www.optimusdigital.ro/senzori-senzori-optici/1854-modul-senzor-de-culoare-tcs230-albastru.html
I also have a "multiplexor module"(TCA9548A) - brought just to be on my desk in any case. This one: https://www.optimusdigital.ro/electronica-de-putere-multiplexoare-de-alimentare/1423-modul-cu-multiplexor-i2c-adafruit-tca9548a.html?search_query=Modul+cu+Multiplexor+I2C+Adafruit+TCA9548A&results=1
And an expansion module. This one: https://www.optimusdigital.ro/interfaa/902-modul-de-expansiune-io-pcf8574.html?search_query=Modul+de+Expansiune+IO+PCF8574&results=2
So, question is: Can I mount the sensor on I2C? Perhaps using the devices above? And code it by myself (using Wire.h library only)?
There is no real info on the net on this issue, except using the color sensor as such, on Arduino pins, which is very straightforward and the example code is clear.