Lego Mindstorms Robots Solving: Sudoku and Rubik’s Cube
Posted on August 26, 2009 Comments (7)
Just place the scrambled cube on Tilted Twister’s turntable. An ultrasonic sensor detects its presence and starts to read the colors of the cube faces using a light sensor. The robot turns and tilts the cube in order to read all the faces. It then calculates a solution and executes the moves by turning, tilting and twisting the cube.
The challenge was to build the robot using only the Lego Mindstorms NXT Retail-kit. And to make it completely independent, without need of being connected to a PC.
The Lego Mindstorms NXT Retail-kit contains three servo motors and four sensors (touch, light, ultrasonic and sound). How should I build the robot using only these items?
After a lot of experimenting I came up with a solution – If I tilted the whole robot, it would be possible for it to tilt the cube using only one motor, leaving the other two motors for turning the cube and for positioning the light sensor. Thus Tilted Twister.
Scanning the cube: 1 minute
Calculating a solution: 20 – 40 seconds
Executing the moves: 1 – 5 minutes. Average 4.5 minutes (60 faceturns)
Average total time: 6 minutes
Very cool. Related book: Building Robots With Lego Mindstorms
Related: Build Your Own Tabletop Interactive Multi-touch Computer – Babbage Difference Engine In Lego – If Tech Companies Made Sudoku – Lego Autopilot Project Update – Rubick’s Cube Solving Lego Mindstorms Robot – Open Source for LEGO Mindstorms