Thursday, October 2, 2008

Lesson 5

Todays lesson
The lesson for today is to get the light sensor recognize white from black and later on colors.

Black and white sensor
We made a test program called TestBW.java using BlackWhiteSensor.class. By reading the surface reflection, its possible to see if the color is white or black. It needs to be calibrated for the color white and black.

Color sensor
This is building on the TestBW.java program, just with color. We added blue and green, its working like the black and white sensor, it just has to be calibrated for each color, and its a little more tricky to get it work.


ADD THE JAVA CODE

No comments: