I've built the Tilted Twister Rubik's cube solver from Hans Andersson's instructions at http://tiltedtwister.com/
. According to the code it appears to look at input 2 to determine if I have a light sensor or a color sensor attached. It always selects light sensor (even though I have the NXT kit that only has a color sensor and that is what I am using) and always outputs a '1023' for any color on the cube. If I modify the code to always use a color sensor, it also does not detect properly either. The weird thing is that if I use the built in NXT tester program under the 'View' menu, I am able to scan each color of my cube OK. While the tester is scanning, a little light is emitted from the sensor, while the Tilted Twister program is scanning the cube, the light is not emitted.
Does anyone know what the problem may be?
The robot you are pointing to is using an Hitechnic color sensor. That's a different sensor then the one comming in the NXT2.0 sets...
They require a different NXT-G programming block, and the program is written for a different color sensor then the one you are using.
This also causes the first problem you encounterred (light sensor or color sensor detection).
If you modify the program to include the correct color sensor, you might get it to work. you will need to re-write the color recognition part...
A very good comparison about the two sensors can be found on the legendary site of Philo...http://philohome.com/colcomp/cc.htm