daanjels / Lejos

Java Lejos projects
2 stars 1 forks source link

Experiment with the colorsensor #39

Closed daanjels closed 5 years ago

daanjels commented 5 years ago

Write a class that uses the color sensor on the EV3

daanjels commented 5 years ago

The sensor can detect light and colour. It seems that the only available mode for light is ambient. That makes me wonder how I can put that to use... Using the colour sensor it is possible to detect brightly coloured objects like Lego pieces. My first simple class can distinguish white, black, red, yellow and blue. Adding green and gray to the list would be nice. Maybe I should measure the ambient light first to get better results interpreting the RGB input values.

daanjels commented 5 years ago

Basics are covered, I already started a line follower routine...