Answers.Body: <p>The color sensor works pretty well as long as the object is about <strong>1 1/2- 2 modules</strong> from the object.</p>
  
  <p>The sensing is best when the <strong>object is flat</strong>. </p>
  
  <p>The object is large enough to be <strong>fully contained within the "spotlight"</strong> that the sensor emits. As long as this is true, it doesn't really matter what the background color is.</p>
  
  <p>Another thing to consider is that the color sensor has different modes (active vs. passive). In <strong>"active"</strong> mode the sensing is affected much less by the ambient lighting conditions.</p>
  
  <p>Pro tip: if you are using EV3-G or RobotC without Xander's drivers, the color detection works best on LEGO's colors (the color the bricks are in). This is especially noticeable for the "green" color.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-14T07:35:01.657Z
Answers.LastActivityDate: 2015-04-14T10:35:39.647Z
Answers.LastEditDate: 2015-04-14T10:35:39.647Z
Answers.UserDisplayName: Ernest3.14
Body: <p>What type of setup is needed to get good color readings from the Mindstorms EV3 color sensor:</p>
  
  <ul>
  <li>Shape of object?</li>
  <li>Size of object?</li>
  <li>Distance to object?</li>
  <li>Color of background?</li>
  </ul>
  
Tags: <ev3><sensor-colour>
Title: How to get good color readings from the color sensor?
UserDisplayName: UlfR
ThreadText: # How to get good color readings from the color sensor?
  
  (Asked by: username_0 on 2015-04-14)
  
  What type of setup is needed to get good color readings from the Mindstorms EV3 color sensor:
  
  * Shape of object?
  * Size of object?
  * Distance to object?
  * Color of background?
  
  **Tags:** ev3, sensor-colour
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-04-14. Score: 7
  
  The color sensor works pretty well as long as the object is about **1 1/2- 2 modules** from the object.
  
  The sensing is best when the **object is flat**.
  
  The object is large enough to be **fully contained within the "spotlight"** that the sensor emits. As long as this is true, it doesn't really matter what the background color is.
  
  Another thing to consider is that the color sensor has different modes (active vs. passive). In **"active"** mode the sensing is affected much less by the ambient lighting conditions.
  
  Pro tip: if you are using EV3-G or RobotC without Xander's drivers, the color detection works best on LEGO's colors (the color the bricks are in). This is especially noticeable for the "green" color.
  
  
  ---
  
  