Notice: Undefined index: cf_maxage in /home/robochamp/public_html/wp-content/advanced-cache.php on line 51

Notice: Undefined index: cf_browser_maxage in /home/robochamp/public_html/wp-content/advanced-cache.php on line 51

Notice: Undefined index: cf_maxage in /home/robochamp/public_html/wp-content/advanced-cache.php on line 54

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the buddyboss-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/robochamp/public_html/wp-includes/functions.php on line 6121
How to Use Sensors In RGB Mode - International Robotics Championship

How to Use Sensors In RGB Mode

Do you know that there are some blocks that will help enhance your light sensors?

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.

Original Digital Flipped Lab (OFDL) have added other functions, including the RGB comparison mode and the raw value mode.

You can download the block from here: https://github.com/a10036gt/EV3-ColorRGBEnhanced-Block/releases/

RGB Block in EV3 Mindstorms

How it works

The block has 3 different modes which will help you use sensors in enhanced way:

Measure – RGB color

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

RGB Mode

Compare – 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.

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.

Compare RGB color mode

HSVL Mode

This mode allow you reading the HSVL value of EV3 Color sensor (convert from RGB).

HSVL mode

Citation:

ODFL Original Digital Flipped Lab

https://ofdl.tw/en/ev3-hacking/ev3-color-sensor-adv-block/Ver 1.6:
.Add HSVL Mode.
.Remove Raw value mode (merge to EV3-AdvEV3Col-Block)

Download

Download Link (GitHub):
Author:OFDL HSUT2H Robotics
Ver:1.6

Related Articles

How to Solve Complex Tasks

You may come across with some missions which will feel very difficult and hard to start working on them. For these kind of situations you need to be happy because there is a very simple way to get closer to a solution and it is called “goal breakdown structure”.

Responses

Your email address will not be published. Required fields are marked *