There were also problems with the webcam not pointing directly at the cube since the tape was slipping slightly, so the camera would need to be mounted better. The online Rubik's Cube solver calculates the steps needed to solve a scrambled Rubik's Cube from any valid starting position.Enter the colors of your puzzle and click the Solve button.
This is a video of a Rubik's Cube solving robot that I made somewhere around June 2008 for a Gr. The project was made with the Lego NXT set and some extra pieces from a random pool of parts.The programs for the NXT brick and the computer were written in Java.The program on the computer had access to a Rubik's cube solver called Cube Explorer (available online).The Cube Explorer allowed for interface with the webcam and communicated with my program on the PC.After receiving the commands from Cube Explorer, the PC program will modify the commands a little.
This involves turning the Cube Explorer output which involves turning all 6 faces, into commands available to the robot, such as flipping, rotating, and turning a side.The PC program will then package the instructions in a series of 3 numbers; the first one will determine the command, the second number will determine how many times the command will be executed, and the third number will indicate direction.For example, a command can be "Rotate cube 90 degrees once clockwise.You will see that the robot only turns one way since turning the other way would require extra adjustments due to rotational errors.These numbers will be sent to the NXT brick program.The NXT brick will control the motors directly in order to process the commands.