Note: The color sensor provided in the Matrix Future Innovators Set is V3, which works with RGBC values. The C in RGBC stands for clear, a no-filter-channel that captures the combined intensity of all visible light, approximating human-perceived brightness. However, if you're using V2, colors are assigned specific numbers:
0 for Black, 1 for White, 2 for Cyan, 3 for Ocean, 4 for Blue, 5 for Violet, 6 for Magenta, 7 for Raspberry, 8 for Red, 9 for Orange, 10 for Yellow, 11 for Spring Green, 12 for Green, and 13 for Turquoise.
Sample Code
Hardware Connection: Connect the Color Sensor to the I2C1 port of the MATRIX Mini R4.
Result: The Color Sensor RGB value will be shown on the OLED under each other.
Specification
Parameter | Min | Typ | Max | Units |
---|---|---|---|---|
Supply voltage (VCC) | 3 | 3.3 | 5 | V |
Red channel wavelength | - | 465 | - | Nm |
Green channel wavelength | - | 525 | - | Nm |
Blue channel wavelength | - | 615 | - | Nm |
I2C operating speed | 100 | - | 400 | KHz |
I2C low-level input voltage | -0.5V | - | 0.33*VCC | - |
I2C high-level input voltage | 0.7*VCC | - | VCC | - |