Projects

Rubik's Cube Solver Robot

Frame

The first step was building the robot's frame. My first idea was a triangular pyramid with motors mounted on six sides, but I quickly realized how hard it would be to adjust the motor positions. I switched to a cube frame with acrylic side panels.

Motors and encoders

I chose Moons' NEMA 24 stepper motors for their high torque and speed. They mount on custom side panels that I cut on a Universal Laser Systems laser cutter.

After wiring the stepper motors to the power supplies, I mounted encoders on the frame to track each motor's position.

This simple three-axis rotation test confirmed that the steppers turned the right way and the right number of steps. No steps were lost.

Reading and matching a cube

A color detection algorithm that I wrote from scratch reads the colors of a separate cube, then sends commands through LabVIEW to scramble the robot's cube to match it. At that point, the robot is ready to solve the cube.

Status

The project is still a work in progress. So far, the whole robot has been built in a dorm room. Moving it on a cart across Berkeley's hilly campus shook many screws loose, so it needs recalibrating. I'll post further improvements here.

LabVIEW code structure

labview code summary, page 1labview code summary, page 2labview code summary, page 3labview code summary, page 4labview code summary, page 5
Open PDF: labview code summary