Vex IQ color sensor

Can the color sensor detect different colors of light as well as detecting colors? Also what is the range on the color sensor and how can I program it using either ROBOTIC or modkit. Modkit preferably.

Qlevine20,

The color sensor works by detecting various amounts of red, green, and blue light. This can be light directly from an illuminated object and can also be reflected light from the surface of an object.

Currently in Modkit, the Color sensor is limted to either 3-Color or Greyscale mode. 12-Color mode will be coming soon. An example program is available here: http://www.vexiqforum.com/forum/main…dkit-for-vexiq

In RobotC, you can use 3-Color, 12-color and Greyscale mode, as well as have access to the raw color channel values. Example programs are built into RobotC under the File > Open Sample Program menu.

Regards,

  • Art

How do you set the colour sensor to greyscale in Modkit Art?

Chris,

On the components screen, when you drag out a Color Sensor into the project there will be a settings (gear) icon to the right of the port selection drop down menu. You can change the mode here from Color to Greyscale. When you switch over to the Blocks view, you’ll see that the purple sensing area now contains a greyscale % block.

Regards,

  • Art

Now I feel silly! Sorry, I was expecting it to be under the settings bit in the code blocks!