I couldn’t manage to put on the white leds of the color sensor to illuminate the object - so I desperately read “black”. What did I miss?
Philo,
The white LED on the Color Sensor illuminates when the sensor is in grayscale mode. This grayscale feature is currently being added to Modkit right now.
Regards,
- Art
Thanks, Art - though it doesn’t help me that much, I wanted to use it as a color sensor. Annoying it depends on ambient lighting!?!?
Philo,
During the development of the Color Sensor, we noticed that the white LED being on made it more difficult to detect colors. The Color Sensor would see the reflected LED light as opposed to the ambient reflected light off the object, so all color readings were highly skewed by the light spectrum of the LED itself (particularly so on reflective surfaces).
For grayscale detection, the white LED was very helpful for determining light versus dark due to the fact that the hue did not matter here, only the brightness value.
Currently in RobotC you can set the light on by using one of the assisted modes via setColorMode.
Regards,
- Art