Skip to content

Craft-Core/EV3-ColorRGBEnhanced-Block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EV3-ColorRGBEnhanced-Block

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.


What is this?

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.


Blocks Included

Color Sensor RGB Enhanced (Sensor tab)

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

RGB Color Operations (Data Operations tab)

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

Usage Guides

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

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

Installation

  1. Download the latest .ev3b file from Releases.
  2. Open LEGO MINDSTORMS EV3 software.
  3. Go to Tools → Block Import and Export Wizard.
  4. Select the .ev3b file and follow the prompts.

Credits

About

Color Sensor RGB Enhanced block for LEGO MINDSTORMS EV3 — RGB/HSVL measurement, distance-based color identification, 15-language support

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages