Tag Archives: Ernő Rubik

Solving Rubik’s Cube with an Arduino Uno

Rubik’s Cube is a 3-D combination puzzle invented in 1974 by Hungarian sculptor and professor of architecture Ernő Rubik.

Image Credit: Wikipedia

Originally dubbed the Magic Cube, the puzzle was licensed by Rubik to be sold by Ideal Toy Corp in 1980. According to Wikipedia, 350 million cubes had been sold worldwide as of January 2009 – making it the world’s top-selling puzzle game.

Recently, a Maker by the name of matt2uy designed an Arduino-based Rubik’s Cube ‘bot based on the famed Tilted Twister design by Hans Andersson.

However, rather than using LEGO, matt2uv adopted more of a DIY approach with wooden skewers, popsicle sticks, an Atmel-based Arduino Uno board (ATmega328 MCU) and two servos.

On the software side, matt2uy leverages the Arduino IDE, Python 2.7+, Tkinter (GUI) and Pyserial.

The result? A DIY Rubik’s Cube ‘bot that takes 20 minutes to enter the cube state and solve.

“Wiring up the servos to the Arduino [is] pretty simple. Connect the yellow (signal) wires for the push and rotation servo to pin 6 and 9, respectively,” he explained in a recent Instructables post.

“Connect the positive and negative wires to the 5v power source and ground. Sometimes the servos had jitters, so I think capacitors could have smoothed out the signals.”

Interested in learning more? You can check out the project’s official Instructables page here.