Connections:
1 - Color sensor
2 - Ultrasonic sensor
A - Turntable motor
B - Tilter arm motor
C - Color sensor motor
Downloading files to the brick
Download the files in tiltedtwister.zip to the brick.
The files can be downloaded to the brick using the lego mindstorms software:
- Unzip tiltedtwister.zip to a new directory.
- Create a new project (File/New)
- Press the button "NXT window"
- Select the Memory tab
- Press the download button
If you are having problems downloading, try to delete other program files and sound files etc to make room.
Rubik's cube
Tilted Twister 2.0 is programmed to solve a standard Rubik's cube. The Rubik's Logo on the white face is taken into account by the program.
The program works best if the cube is loose. If your cube is very stiff, you could try lubricating it with silicone spray. After lubrication, work the cube for a few minutes.
Tilted Twister Java Application
If you are able to connect your LEGO Mindstorms brick to a computer via Bluetooth, you can use the Java Application tiltedtwister.jar to let your computer calculate a faster solution.
Source Code
You don't need the source code (.nxc) unless you want to modify it.
The program is written in NXC using
Bricx Command Center. It cannot be edited or viewed in the LEGO Mindstorms software. (It can be viewed in notepad)
And java application source code is also included in the downloaded file.