Skip to content

Craft-Core/EV3-ColorRGBEnhanced-Block

Repository files navigation

EV3-ColorRGBEnhanced-Block

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.

EV3 Color RGB Enhanced overview

What is this?

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.


Blocks Included

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

Added in this fork

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

Usage Guides

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

Multi-Language Support

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.


Installation

  1. Download the latest .ev3b file from the Releases page.
  2. In EV3-G: Tools → Block Import → select the .ev3b file → 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).


Credits

About

EV3-G Color Sensor RGB Enhanced + distance-based Color Classifier in Data Operations. Multi-language (15 locales).

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages