Answers.Body: <p>Green does tend to be tricky on the LEGO EV3 Color sensor. <a href="http://forums.usfirst.org/showthread.php?23642-EV3-Color-Sensor-and-green-line" rel="nofollow">Example</a></p>
  
  <p>Here are some suggestions:</p>
  
  <ul>
  <li>Build a shroud to eliminate ambient light. I have seen people use electrical tape for this or build something from LEGO parts.</li>
  <li>Using the raw RGB values, convert to HSV (there is a link in Example 1 for this).</li>
  <li>Use the <a href="https://github.com/mindboards/ev3sources/blob/master/lms2012/c_input/source/c_input.c#L1388" rel="nofollow">algorithm for the NXT color sensor from the EV3 source code</a>. It will probably have to be adjusted a bit for differences in the sensors.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-16T15:19:06.073Z
Answers.LastActivityDate: 2016-04-16T15:19:06.073Z
Answers.UserDisplayName: David Lechner
Answers.Body: <p>Yes try this. <a href="http://mindcuber.com/mindcub3r/ColorSensorRGB-v1.00.ev3b" rel="nofollow">Color RGB</a> This is the Color RGB sensor block. Installation instruction can refer from <a href="http://mindcuber.com/mindcub3r/mindcub3r.html#ColorSensorRGBBlock" rel="nofollow">here</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-18T13:53:20.077Z
Answers.LastActivityDate: 2016-04-18T13:53:20.077Z
Answers.UserDisplayName: Walt Peter
Body: <p>I'm following a line with the LEGO EV3 Color Sensor in Reflected-light mode, I need to stop the robot when it detects a green tile in the ground, but I didn't succeeded in differentiating Green and Black, can I access the RGB values of the sensor, or in some way differentiate those colors?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-17T14:53:23.227Z
Comments.Text: Please aim to be as descriptive as possible in your question title to get the best possible answers. I've changed the title to what I believe is the subject of your answer, if this isn't the case, please feel free to improve it.
Comments.UserDisplayName: Ambo100
Tags: <ev3><sensor-colour>
Title: Is it possible to access the RGB values of the EV3 Light Sensor?
UserDisplayName: Henrique M Rocamora
ThreadText: # Is it possible to access the RGB values of the EV3 Light Sensor?
  
  (Asked by: username_0 on 2016-04-16)
  
  I'm following a line with the LEGO EV3 Color Sensor in Reflected-light mode, I need to stop the robot when it detects a green tile in the ground, but I didn't succeeded in differentiating Green and Black, can I access the RGB values of the sensor, or in some way differentiate those colors?
  
  **Tags:** ev3, sensor-colour
  > **Comments:**
  > **username_1**: Please aim to be as descriptive as possible in your question title to get the best possible answers. I've changed the title to what I believe is the subject of your answer, if this isn't the case, please feel free to improve it.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-04-16. Score: 2 | Accepted answer
  
  Green does tend to be tricky on the LEGO EV3 Color sensor. [Example](http://forums.usfirst.org/showthread.php?23642-EV3-Color-Sensor-and-green-line)
  
  Here are some suggestions:
  
  * Build a shroud to eliminate ambient light. I have seen people use electrical tape for this or build something from LEGO parts.
  * Using the raw RGB values, convert to HSV (there is a link in Example 1 for this).
  * Use the [algorithm for the NXT color sensor from the EV3 source code](https://github.com/mindboards/ev3sources/blob/master/lms2012/c_input/source/c_input.c#L1388). It will probably have to be adjusted a bit for differences in the sensors.
  
  
  ---
  
  ### Answer by username_3 on 2016-04-18. Score: 0
  
  Yes try this. [Color RGB](http://mindcuber.com/mindcub3r/ColorSensorRGB-v1.00.ev3b) This is the Color RGB sensor block. Installation instruction can refer from [here](http://mindcuber.com/mindcub3r/mindcub3r.html#ColorSensorRGBBlock)
  
  
  ---
  
  