Henry Chen logo
ROBOTICS & EMBEDDED SYSTEMS

Sub-second solves from a fully integrated machine.

A Rubik's Cube solving robot that incorporates mechanical design, embedded systems, computer vision, and advanced algorithms to achieve solve times under one second.

Rubik's Cube Robot
<1sSolve Times
<20Moves Per Solve
<$125Total Cost
6Motors
MECHANICAL DESIGN

Engineered for speed, precision, and modularity.

Every component is custom-designed and 3D printed to enable independent rotation of each cube face. The fully modular architecture is conducive to iterative improvements and easy maintenance. Every part press-fits into the next, so the whole assembly goes together and comes apart completely toolless—no nuts, bolts, or fasteners of any kind.

End effectors are optimized for the precise interfacing and control of the cube with minimal backlash. The design was refined through multiple prototypes to achieve optimal balance between speed, reliability, and robustness.

Cutaway CAD render of the frame showing the cube, motor, and shaft assembly inside the housing
LIVE DEMONSTRATION

Watch a complete solve in under one second.

The robot processes cube state via computer vision, computes an optimal solution path, and executes the moves with precise stepper motor control.

Each solve averages fewer than 20 moves via the Kociemba algorithm, completing start to finish in under a second.

SOLVE TIME0.000s
ELECTRICAL SYSTEM

Reliable motor control and sensor integration.

The electrical system bridges computer vision with mechanical actuation. An Arduino MEGA 2560 coordinates six TMC 2209 stepper motor drivers for smooth, precise rotation of each cube face.

  • Arduino MEGA 2560 microcontroller
  • 6× TMC 2209 V2.0 stepper drivers
  • 6× NEMA 17 stepper motors
  • Pull-up resistors and decoupling capacitors
TMC 2209 stepper driver
NEMA 17 stepper motor
FIRMWARE

Real-time control with interrupt-driven architecture.

The C++ firmware manages stepper motor timing, serial communication with the vision system, and move execution. Interrupt-driven design ensures responsive sensor feedback during high-speed operations.

  • Precise timing for stepper motor control
  • Communication protocols for vision interface
  • Configurable motor RPM settings
  • Comprehensive error handling
Arduino MEGA 2560
SOLVING ALGORITHM & INTERFACE

Kociemba algorithm with real-time visualization.

Computer vision detects cube state through color recognition. The Kociemba algorithm computes near-optimal solutions, typically under 20 moves. A Python GUI provides real-time visualization of solving progress.

The system achieves consistent sub-second solve times while maintaining high accuracy in cube state detection across varying lighting conditions.

Rubik's Cube solving GUI
BILL OF MATERIALS

Six steppers, one system, $117.95.

ComponentQtyPrice
NEMA 17 2A stepper motor6$64.98
TMC 2209 stepper motor driver6$24.99
Arduino Mega1$22.99
12V 2A power supply1$4.99
Total build cost$117.95

Not included in the total above: the 3D-printed structural parts (filament cost only) and common lab-shop electrical components used throughout the build—resistors, capacitors, jumper wires, breadboard, and similar wiring hardware.

Rubik's Cube Robot CAD assembly drawing, three views with dimensions and title block
RESOURCES