EV3 Color Sensor RGB Block Enhanced

EV3 Color Sensor Enhanced Block

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

Name:Measure – RGB color

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

Name: 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, 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.

Name: HSVL Mode

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 HSUT2H Robotics
Ver:1.6

32 comments

  1. Iskander

    The object reads Red to 150-170.

    Did you mean 150-190?

    1. ofdl

      Oh, yes, thanks for correct.

  2. 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?

    1. OFDL小編

      Our version RGB Block should not have Missing DsiplayName problem, what’s language of your ev3 software use?

      1. Frieder

        Hi, only the strings for “en-GB” are correct.

        1. OFDL小編

          How about other lang? Miss display name or just show English? Because we using English and apply to all language set.

  3. robomac

    olá, usei muito o bloco e teve seu desempenho ótimo mas por veses desliga o sensor

    1. 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.

  4. Zoz

    Any help please The block don’t import on ev3 program

    1. OFDL小編

      More detail info?

  5. divine

    how can i program it

  6. oguzhan

    Hi,
    When I import the file R mode not view on drop menu. Could you please help?
    Thank you.

    1. OFDL小編

      R mode?

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

    1. OFDL小編

      HSFL?

  8. 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

    1. OFDL小編

      Using HSV mode.

  9. 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?

    1. OFDL小編

      Yes, sometims black and white is very similar, but usually white color S-value should higher than black.

  10. oguzhan

    Could you explaind how can we read colors with ev3 color sensor fron long range?

    1. OFDL小編

      Using HSV mode.

  11. Smurfs

    Hello,
    Is there any algorithm or filter to make the color sensor read accurate values from far distances?

    1. OFDL小編

      HSV

  12. Smurfs

    can you give suggestions for algorithms or filters to separate between blue and green?

    1. OFDL小編

      HSV

  13. Miguel

    Una consulta porfavor.
    Como puedo usar esos bloques en una condición y además como mido el nivel deR,G,B

    1. OFDL小編

      You can read the object RGB value to config the condition

  14. 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.

      1. Just a ramdon

        thanks.

  15. SirLEGO

    Is there any rgb calibration for line tracking ? Thanks

Leave a Reply

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