The Color Sensor RGB Block uses the standard LEGO® MINDSTORMS® EV3
Color Sensor to measure color using RGB color values. You can use this block
to detect colors other than the standard LEGO brick colors that are supported
by the Measure - Color mode of the standard Color Sensor Block.
This block was created by David Gilday for MindCub3r, the EV3
Rubik's Cube® solver robot.
Note: this block may not work as intended with some versions of the EV3
firmware. Please see the
MindCuber website
for more details.
Visit the
MindCuber facebook page
to share your experiences and help each other with troubleshooting tips.
The Color Sensor RGB Block is not officially supported by the LEGO Group.
This mode returns the Red, Green and Blue components of the RGB color.
Set Port to match input port on the EV3 to which the Color Sensor
is connected.
Use Red, Green and Blue to read the values of the three color
components from the measured RGB color. Each value is in the range 0 thru 255
indicating how much of the color component is present in the measured color.
The larger the number, the more of that component is present.