Hello all,
I noticed that the ColorLightSensor seems to depend much on the battery voltage. With fresh alcaline batteries, it always detect all four colors of the balls (from the Mindstorms 2.0 set) properly.
With rechargeable nickel batteries (7.8 Volt), the green color is often detected as black. After some time (7.4 Volt), green cannot be detected anymore at all and yellow balls are often detected as red. If tried different angles and istanced and I eliminted ambient light without any success.
This is really strange to me, because
a) Independently of the battery type, the device should work down to 1 Volt per Cell (6 Volts in total) because both alcaline and nickel batteries are empty below that level.
b) The hardware developer kit says that the four input connectors provide 4.3 Volt, so why does it depend on the battery voltage?
Any Ideas how to fix this?
Debugging Info, collected with 7.4 Volt battery Voltage using four balls with a distance of about 8mm:
Blue ball:
raw r/g/b/n: 133,150,273,97
cal r/g/b/n: 23,44,127,32
Color: 2, BLUE
Green ball:
raw r/g/b/n: 119,162,134,89
cal r/g/b/n: 19,61,32,22
Color: 1, BLACK
Yellow ball:
raw r/g/b/n: 376,252,176,114
cal r/g/b/n: 175,113,43,54
Color: 4, YELLOW
Red ball:
raw r/g/b/n: 347,135,140,114
cal r/g/b/n: 154,14,16,55
Color: 5, RED
