Welcome, Guest. Please login or register.
May 23, 2013, 12:56:20 PM
<< Back to The NXT Step Home Page    Home Help Search Login Register

+  The NXT STEP Forum
|-+  General Category
| |-+  General Discussion
| | |-+  Tilted Twister cube solver
« previous next »
Pages: [1] Print
Author Topic: Tilted Twister cube solver  (Read 4337 times)
Von_Dingle
Newbie
*
Posts: 5


View Profile
« on: December 27, 2009, 07:41:33 PM »

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?

Thanks,
David
Report to moderator   Logged
Dino_Martino
Hero Member
*****
Posts: 411


AC-130: my other passion, the sky!


View Profile WWW
« Reply #1 on: December 28, 2009, 02:48:58 AM »

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?

Thanks,
David

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


Good lcuk!
Report to moderator   Logged

Dodgey99
Newbie
*
Posts: 3


View Profile
« Reply #2 on: January 30, 2010, 06:00:31 AM »

Hi! New here :-)

I changed the Tilted Twister program to use the NXT 2 colour sensor. To keep it simple I used the 6 colours the sensor recognises natively, so you'll need to put black stickers over the orange facets, and probably a white one over the white center logo.

The programs are over on nxtasy.org in a post of mine. There are 2 versions. One like the original, and one with speech (it calls out the colours as it scans the facets)
Report to moderator   Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!