The project uses the Pi to directly solve the Rubik’s cube. The BrickPi3 takes the unsolved Rubik’s cube and the Raspberry Pi takes a picture of each side of the Rubik’s cube with the Raspberry Pi Camera. The Pi creates a text map of the color squares that shows where they are located on the cube. When it has fully mapped the cube, the Pi uses the “kociemba” python library to map out the moves needed to solve the Rubik’s cube. This information is taken by the Pi and BrickPi3 to solve the Rubik’s cube using the LEGO motors. The result: a solved Rubik’s cube. Rubix Building Solutions
The Rubik’s cube has recently begun making a comeback. Invented in 1974, it is the world’s best-selling toy. But solving them takes thought, effort, and skill . . . so why not let a robot do it? In this project, we take a Raspberry Pi, a BrickPi, and a set of LEGO Mindstorms and build a Rubik’s cube solving robot. Simply place an unsolved Rubik’s cube in the solver, run the python program, and your Rubik’s cube is solved!
When you get round to building the Rubik’s Cube, you will find it is not as hard as it appears. The instructions are quite easy to follow and it will probably take you about fifteen minutes. When you get round to placing the colored tiles, pay attention to where they are supposed to go. Because once you snap them into place. you will not be able to remove them. Having said that. you can still use the Rubik’s Cube. What you will not be able to do is follow the instruction guide and solve the puzzle. Rubiks Build It Solve It