An extended, multi-language fork of EV3-ColorRGBEnhanced-Block — adding a distance-based Color Classifier in the Data Operations tab so your EV3 robot can tell colors apart even under changing light.
The stock EV3 color sensor only distinguishes 7 named colors and exposes reflected/ambient light. For competitive WRO / FLL robots you want raw RGB, illumination-invariant ratios, and a way to classify against your own color palette. This project bundles all of that:
- Original Color Sensor RGB Enhanced block (Sensor tab) — surfaces raw R/G/B, HSVL, and a tolerance-based comparator.
- New Color Classifier block (Data Operations tab) — normalize, define up to 8 reference colors, compute distances, pick the closest match.
All UI strings are localized into 15 languages.
Original block (by OFDL / a10036gt)
| Block | Modes | Description |
|---|---|---|
| Color Sensor RGB Enhanced | ReadRGB, ReadHSV, DectRGB | Raw RGB / HSVL output and RGB-tolerance comparator for the LEGO Color Sensor |
| Block | Modes | Description |
|---|---|---|
| Color Classifier | Normalize, Setup_C1..C8, Distance, Identify | Distance-based color classification: teach 8 reference colors then identify which one is closest to a live RGB reading |
Detailed documentation for each block (primary language: English):
| Block | en-US | en-GB | ja | de | fr | es | it | nl | pt | ru | ko | zh-Hans | da | nb-NO | sv |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Color Sensor RGB Enhanced | EN | en-GB | ja | de | fr | es | it | nl | pt | ru | ko | zh-Hans | da | nb-NO | sv |
| Color Classifier | 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 |
Translations are AI-assisted — PRs to refine wording in any locale are very welcome.
- Download the latest
.ev3bfile from the Releases page. - In EV3-G: Tools → Block Import → select the
.ev3bfile → Import → restart EV3-G.
Or install manually by copying the entire repo folder into:
C:\Program Files (x86)\LEGO Software\LEGO MINDSTORMS Edu EV3\Resources\Blocks\
(needs Administrator rights).
- Original block: OFDL / a10036gt — https://github.com/a10036gt/EV3-ColorRGBEnhanced-Block
- Original RGB block: David Gilday (mindcuber's RGB Block)
- Original user guide (繁體中文): https://ofdl.tw/ev3-hack/ev3-color-sensor-enhanced-block/
- Original user guide (English): https://ofdl.tw/en/ev3-hacking/ev3-color-sensor-adv-block/
