
The original EV3 color sensor supports reflected light, ambient light and color mode, but this does not meet our needs. David Gilday, who made mindcuber, created the EV3 Color RGB mode in the early days, which greatly improved the EV3 Color Sensor. But the Color Sensor RGB file is not perfect, so we have added other functions, including the RGB comparison mode and the raw value mode.
Instructions

This mode returns the Red, Green and Blue components of the RGB color.

This mode is a variant of RGB mode, which allows you to change the input value to achieve the judgment effect, as shown above: 20 is Error Amount, R, G, B are 170, 160, 120, respectively, when I measured it today. The object reads Red to 150-190, Green at 140-180, and Blue at 100-140. When the three are established, the Boolean value is finally output. The interval is determined by Error Amount, which is what you input. The RGB value +-Error is the judgment condition.

This mode allow you reading the HSVL value of EV3 Color sensor (convert from RGB)
Update:
Ver 1.6:
.Add HSVL Mode.
.Remove Raw value mode (merge to EV3-AdvEV3Col-Block)
Download:
Download Link(GitHub):http://bit.ly/30T2llb
Author:OFDL HSU、T2H Robotics
Ver:1.6
Iskander
The object reads Red to 150-170.
Did you mean 150-190?
ofdl
Oh, yes, thanks for correct.
Arthur
Hi, I just tried the EV3 Color Sensor RGB Block Enhanced and it is a great idea, but I’m having some trouble here. After installing it the description on the block says: “MISSING DISPLAYNAME”. Could you help me with that?
OFDL小編
Our version RGB Block should not have Missing DsiplayName problem, what’s language of your ev3 software use?
Frieder
Hi, only the strings for “en-GB” are correct.
OFDL小編
How about other lang? Miss display name or just show English? Because we using English and apply to all language set.
robomac
olá, usei muito o bloco e teve seu desempenho ótimo mas por veses desliga o sensor
OFDL小編
Try give a little bit delay in loop (0.0001s), and make sure there is no two block read one sensor at same time.
Zoz
Any help please The block don’t import on ev3 program
OFDL小編
More detail info?
divine
how can i program it
oguzhan
Hi,
When I import the file R mode not view on drop menu. Could you please help?
Thank you.
OFDL小編
R mode?
Nizar
Hello, sorry to bother you. I have some trouble here. first, what is HSFL mean? can you explain a little? and when I open HSFL mode the block says MISSING DISPLAYNAME. I’m using ev3 classroom teacher edition ver. 1.4.5 in windows 11. thank you, your answer will be very helpful
OFDL小編
HSFL?
Saieesh
how to use this block to read values of red, white and black colour from a distance of 3-7 studs. because difference in distance is causing values to be inaccurate
OFDL小編
Using HSV mode.
Auther
I have a problem with white and black. I don’t know how to read there with HSV, My
H- value is non-zero S-value and V-value is the same range it can be black or white at the same time. Do you have some advice?
OFDL小編
Yes, sometims black and white is very similar, but usually white color S-value should higher than black.
oguzhan
Could you explaind how can we read colors with ev3 color sensor fron long range?
OFDL小編
Using HSV mode.
#Robotics Using the EV3 Colour Sensor in RGB mode | David Musgrave's Winthrop Development Consultants Blog
[…] for EV3 with more advanced features created by OFDL (Original Flipped Digital Lab) see their post EV3 Color Sensor RGB Block Enhanced. You can download the block from their GitHub […]
Smurfs
Hello,
Is there any algorithm or filter to make the color sensor read accurate values from far distances?
OFDL小編
HSV
Smurfs
can you give suggestions for algorithms or filters to separate between blue and green?
OFDL小編
HSV
Miguel
Una consulta porfavor.
Como puedo usar esos bloques en una condición y además como mido el nivel deR,G,B
OFDL小編
You can read the object RGB value to config the condition
Just a ramdon
1.thanks gor the movements blocks, they are very usefull!
2. can you tell me how to use the HSV mode? or how to apply it?
please.
OFDL小編
https://web.cs.uni-paderborn.de/cgvb/colormaster/web/color-systems/hsv.html
Just a ramdon
thanks.
SirLEGO
Is there any rgb calibration for line tracking ? Thanks