A multi-language, extended fork of the EV3 Color Sensor RGB Block — adding HSV/L color space, Euclidean distance-based color identification, and full 15-language UI support.
The standard EV3 Color Sensor only returns predefined LEGO brick colors. This project extends it with raw RGB measurement, HSV/L color space conversion, and a complete RGB Color Operations pipeline for robust, illumination-invariant color identification using Euclidean distance in 3D color space.
Built on top of David Gilday's original MindCub3r RGB block and OFDL's prior extensions, this v2.0 release adds the full DataOperations block group and 15-language localization.
| Mode | Description |
|---|---|
| Measure - RGB color | Reads Red, Green, Blue channel values (0–255 each) from the EV3 Color Sensor |
| Measure - HSVL color | Computes Hue (0–360°), Saturation, Value, Lightness from the sensor's RGB data |
| Compare - RGB color | Compares sensor reading against a reference color within a tolerance; outputs True when all channels match |
| Mode | Description |
|---|---|
| Normalize RGB | Divides R, G, B by their sum for illumination-invariant ratios (outputs sum to 1.0) |
| Set Reference Color | Defines one reference color slot (Ref_R, Ref_G, Ref_B); pass-through to CalcDist |
| Calculate Distance | Computes Euclidean distance between measured RGB and a reference RGB in 3D color space |
| Identify Nearest Color | Takes up to 8 distance inputs and returns the index (0–7) and value of the minimum |
| Block | en-US | en-GB | ja | de | fr | es | it | nl | pt | ru | ko | zh-Hans | da | nb-NO | sv |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Color Sensor RGB | EN | en-GB | ja | de | fr | es | it | nl | pt | ru | ko | zh-Hans | da | nb-NO | sv |
| RGB Color Ops | EN | en-GB | ja | de | fr | es | it | nl | pt | ru | ko | zh-Hans | da | nb-NO | sv |
All blocks are fully localized for 15 languages:
| Language | Folder |
|---|---|
| English (US) | en-US |
| English (GB) | en-GB |
| Japanese (日本語) | ja |
| German (Deutsch) | de |
| French (Français) | fr |
| Spanish (Español) | es |
| Italian (Italiano) | it |
| Dutch (Nederlands) | nl |
| Portuguese (Português) | pt |
| Russian (Русский) | ru |
| Korean (한국어) | ko |
| Simplified Chinese (简体中文) | zh-Hans |
| Danish (Dansk) | da |
| Norwegian (Norsk) | nb-NO |
| Swedish (Svenska) | sv |
- Download the latest
.ev3bfile from Releases. - Open LEGO MINDSTORMS EV3 software.
- Go to Tools → Block Import and Export Wizard.
- Select the
.ev3bfile and follow the prompts.
- Original RGB block: David Gilday for MindCub3r
- Original extended block (HSV, comparison modes): OFDL / a10036gt — https://ofdl.tw/en/ev3-hacking/ev3-color-sensor-adv-block/
- v2.0 (DataOps blocks, 15-language localization): OFDL Dev. / Craft-Core