Rubik's cube is a toy puzzle designed by Erno Rubik during the mid-1970s. It is a cube-shaped device made up of smaller cube pieces with six faces having differing colors. The primary method of manufacture involves injection molding of the various component pieces, then subsequent assembly, labeling, and packaging. The cube was extremely popular during the 1980s, and at its peak between 1980 and 1983, 200 million cubes were sold world wide. Today sales continue to be over 500,000 cubes sold world wide each year.
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.
Puzzle makers have been creating problems for people to solve for centuries. Some of the earliest puzzles date back to the time of the ancient Greeks and Romans. The Chinese have a ring puzzle that is thought to have been developed during the second century A.D. This was first described by Italian mathematician Girolamo Carolano (Cardan) in 1550. When the printing press was invented, complete books of mathematical and mechanical problems designed specifically for recreation were circulated. Rubix Build