Finally, we add a camera arm.  In the original design by MindCubr, this held the EV3 color sensor over the Rubik’s cube.  In our modified design, it holds a Raspberry Pi Camera over the Rubik’s cube.  We use two LEGO Mindstorms motors to manipulate the cube: the first sits below the cradle to rotate the cube, and the second moves the shuffler arm to spin the cube on an opposite axis.

#### 5 After all the labeling is completed, the cubes are put in their final packaging. This can be a small box that has an instruction booklet included or a plastic blister pack with a cardboard backing. The package serves the dual purpose of protecting the Rubik's cube from damage caused by shipping and advertising the product. The Rubik's cube packages are put into cases and moved to a pallet. The pallets are then loaded on trucks and the products are shipped all over the world.

Here, we're looking at the colours that aren't solved. There are 21 different cases for the top layer, but we only need a couple of algorithms to solve them all. The first thing we want to find is headlights. Only 2 of the cases don't have any headlights (one of them is if you skip this step, and the cube is already solved). For the one case without headlights, just perform the algorithm below from any angle. This is a better case because when you do the next step, the cube will be solved already.
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!

### Build A Rubix Cube

3 The Rubik's cube parts are taken to an assembly line. In this phase of production, the individual cube pieces are put together. Starting with the nylon core, each ABS center cube is riveted to the core with a spring spacer. The rivet is carefully controlled with a depth stop to ensure the spring is compressed just the right amount. Each center cube has a plastic cover that is glued on to hide the rivet. One of the six center cubes is left until the last part of the assembly. The ABS edges and corner pieces are individually stacked around the core. The cube is built from the bottom up and the last piece to be assembled is the final center cube which is again riveted into the core with a spring spacer and the final cap is glued on.
```The Rubik's cube appears to be made up of 26 smaller cubes. In its solved state, it has six faces, each made up of nine small square faces of the same color. While it appears that all of the small faces can be moved, only the corners and edges can actually move. The center cubes are each fixed and only rotate in place. When the cube is taken apart it can be seen that the center cubes are each connected by axles to an inner core. The corners and edges are not fixed to anything. This allows them to move around the center cubes. The cube maintains its shape because the corners and edges hold each other in place and are retained by the center cubes. Each piece has an internal tab that is retained by the center cubes and trapped by the surrounding pieces. These tabs are shaped to fit along a curved track that is created by the backs of the other pieces. The central cubes are fixed with a spring and rivet and retain all the surrounding pieces. The spring exerts just the right pressure to hold all the pieces in place while giving enough flexibility for a smooth and forgiving function.
```

Okay, we’re going to be honest with you – you know how aggravating the traditional Rubik’s Cube is, correct? If you’ve ever tried to solve one, you probably know exactly what we’re talking about here. Yes, this kit offers a behind-the-scenes look and even comes with a 10-page instruction manual, but this doesn’t necessarily mean you will be solving the puzzle like a professional within seconds.

##### The individual pieces that make up the Rubik's cube are typically produced from plastic. Plastics are high molecular weight materials that can be produced through various chemical reactions called polymerization. Most of the plastics used in a Rubik's cube are thermoplastics. These compounds are rigid, durable, and can be permanently molded into various shapes. The plastics used in the Rubik's cube are acrylonitrile butadiene styrene (ABS) and nylon. Other plastics that might be used include polypropylene (PP), high impact polystyrene (HIPS), and high density polyethylene (HDPE).

There are many approaches on how to solve the Rubik's Cube. All these methods have different levels of difficulties, for speedcubers or beginners, even for solving the cube blindfolded. People usually get stuck solving the cube after completing the first face, after that they need some help. In the following article I'm going to show you the easiest way to solve the cube using the beginner's method.
The Rubik's cube appears to be made up of 26 smaller cubes. In its solved state, it has six faces, each made up of nine small square faces of the same color. While it appears that all of the small faces can be moved, only the corners and edges can actually move. The center cubes are each fixed and only rotate in place. When the cube is taken apart it can be seen that the center cubes are each connected by axles to an inner core. The corners and edges are not fixed to anything. This allows them to move around the center cubes. The cube maintains its shape because the corners and edges hold each other in place and are retained by the center cubes. Each piece has an internal tab that is retained by the center cubes and trapped by the surrounding pieces. These tabs are shaped to fit along a curved track that is created by the backs of the other pieces. The central cubes are fixed with a spring and rivet and retain all the surrounding pieces. The spring exerts just the right pressure to hold all the pieces in place while giving enough flexibility for a smooth and forgiving function. Rubix Building Solutions
The Rubik's cube appears to be made up of 26 smaller cubes. In its solved state, it has six faces, each made up of nine small square faces of the same color. While it appears that all of the small faces can be moved, only the corners and edges can actually move. The center cubes are each fixed and only rotate in place. When the cube is taken apart it can be seen that the center cubes are each connected by axles to an inner core. The corners and edges are not fixed to anything. This allows them to move around the center cubes. The cube maintains its shape because the corners and edges hold each other in place and are retained by the center cubes. Each piece has an internal tab that is retained by the center cubes and trapped by the surrounding pieces. These tabs are shaped to fit along a curved track that is created by the backs of the other pieces. The central cubes are fixed with a spring and rivet and retain all the surrounding pieces. The spring exerts just the right pressure to hold all the pieces in place while giving enough flexibility for a smooth and forgiving function.
The robot will turn the cube to each face and the camera will take 6 pictures, one of each side of the Cube.  The Raspberry Pi will determine the cube configuration from the six pictures. The Cube configuration will be passed to the kociemba Python library to find an efficient solution. Finally, the robot will execute the moves to solve the Rubik’s Cube!

If there are no more edges left on the top layer, then they are probably either inserted in the right place but flipped, or inserted in the wrong place. To get an edge out of somewhere it shouldn't be, just insert one of the yellow edges into that slot. This should get the edge out and on the top layer, ready for you to use the above instructions to insert correctly. Rubix Build