Facebook Twitter Gplus YouTube RSS
Home » Tutorials » EV3 Building » LEGO MINDSTORMS EV3 solves Rubik’s Cubes in under two minutes

LEGO MINDSTORMS EV3 solves Rubik’s Cubes in under two minutes

Update: Instructions are now available here!

Click the image for building and programming instructions.

David Gilday, designer of the NXT Mindcuber bonus model is back with an all new EV3 cube solving robot: Mindcub3r. Here’s what David says about his design, and be sure to check out the video of the robot in action below:

MindCub3r is a new LEGO® Rubik’s Cube® solver that can be built from a single LEGO® MINDSTORMS® EV3 set Item: 31313.

MindCub3r is more efficient than previous versions of MindCuber that were created with MINDSTORMS NXT. It is currently able to solve the Rubik’s Cube puzzle in an average of about 24 moves in 1 min 50 secs.

This efficiency is enabled by the higher performance ARM9 processor and significantly greater 64MB RAM in the EV3 than the previous NXT. A new software algorithm was developed especially for the robot with a four-phase lookup-table driven algorithm requiring approximately 5MB RAM.

David says that he’ll make building and programming instructions available later this year, so stay tuned!

 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
53 Comments  comments 

53 Responses

  1. Veronica

    Will you make the program and the building instructions available?

    • kris

      you can see it as you are on youtube and type lego ev3 cubeslover
      and than the same picture and the distiptoin…

      i hope this helps you.

  2. Jo

    Excellent! Would love to see the program and instructions. :)

    • kris

      you can see it as you are on youtube and type lego ev3 cubeslover
      and than the same picture and the distiptoin…

      i hope this helps you.

  3. alban42800

    Hey good job !
    Instructions for me too :)

    I suppose that the recognisation step can be faster ?

    • Jorge

      Yes, scanning is slower. with NXT was 25s, now is 40s.
      Perhaps is due to the medium motor instead of large motor for moving the color sensor.

    • kris

      you can see it as you are on youtube and type lego ev3 cubeslover
      and than the same picture and the distiptoin…

      i hope this helps you.

  4. Jorge

    Great again !
    I’ll wait eager for the building instructions.

    • kris

      you can see it as you are on youtube and type lego ev3 cubeslover
      and than the same picture and the distiptoin…

      i hope this helps you.

  5. Ryan

    Please share instructions with me too!!

  6. huant

    hi, your mindcuber is fantastic,i would like to know, how you generate the movetable or where you got it from.

    • If you carefully read the article, you’ll find that David Gilday designed this robot.

      He’s working on creating building and programming instructions to share.

  7. Peter Haas

    Mindcuber with NXT is fantastic. It works well. But EV3 makes me very impacient. Greetings!

  8. Anonymous

    When will you make the building instructions available? This looks so exciting!

  9. Harold Ka


    it is very fantastic and I would like to make the project.
    I have EV3 but i don’t know how to make the program.

    could you share the program for me?
    my kid is really like it.

    Harold Ka from south korea

  10. norph101

    I hope this one works. Because when i have built the NXT mindcuber it failed.

  11. Andrew

    Wow cool can u give me instructions and a link to the program would love to show my robotics teacher

  12. Peter

    What software did you used for programing?

  13. bukhory

    I’ll spent my weekend for this :)

  14. Syart

    Hello can i have the instructions how to build it?
    I need it for a exibition.

    Thank you and have a nice day.

  15. Syart

    I will Pay you if you need money for the instructions.

    Write me please a E-Mail.

  16. roberts

    good job!
    please give me instructions please?!

  17. Baddo

    I can’t wait for the instructions & programming!

  18. HGW10

    When r the building instructions and programming coming out

  19. Someone

    post instructions faster

  20. Marco

    Can’t wail till the instructions and programming is posted!!!

  21. Albert


    can’t you send me the program to the email please? I’m excited!!

  22. Ethan

    Where is the program for Mindcub3r specifically? Can you please give the website address?

  23. Ethan

    Thank you for your help finding the program. I was able to load it on the brick. Then to start with I pried the cube apart and squirted some WD-40 inside so it spins easily. It goes through the scanning process and starts solving the cube. After about 5-6 spins it gets stuck because the cube is not lined up straight. How do I fix this?

    • Since this isn’t my design, I don’t know about the exact details of the program.

      Try asking for help on the Mindcuber Facebook page

    • Jan-Gerard van der Toorn

      The size of the cube matters a lot. When your cube is somewhat smaller than the one that was used by the developer of the Mindcub3r, your cube can turn a bit more within the table.
      That results in somewhat larger backlash of the cube, when the lowest ring it turned with respect to the rest of the cube. If there remains a misalignment of the rings, a turn of a perpendicular set of rings may result in a jam.
      You question is: how to solve it?
      You will have to modify the program slightly, and tune the backlash compensation value to match your particular cube. That is easy, since the creator of the Mindcub3r already anticipated on a backlash compensation mechanism.
      Open the program MindCub3r-v1p1.ev3, then open the Turn.3v3p subroutine and change the value of the numeric constant in the switch block in the upper center: [IMG]http://i58.tinypic.com/2ypcby0.png[/IMG]. In fact, you have to change both values, for both switch cases: the +65 and the -65. If your cube is smaller, you need to fill in a larger value.
      The transmission ratio formed by the gears between motor B and the table itself is 12/36. So to correct for 5 degrees misalignment of the lower ring of the cube, when turning, you need 36/12*5 degrees = 15 degrees extra rotation. Then, change the +65 into +80 and the minus -65 into -80.
      You may have to experiment a bit to get your cube solver working best.
      Note that the initial alignment of the cube (after you removed the cube, and before inserting it) is critical, and may be the cause of the problem if you experience jams after rotating in one direction, and not in the other. You can adjust the initial table alignment by pressing the left/right buttons on the brick when the robot is waiting for the cube to be inserted.
      Good luck.

      • Ethan

        I already took it apart, but I will put it back together soon, And Ill try doing what you suggested. Thanks for the help!

  24. aaryan

    it didnt work because it didnt scan it

    • Ethan

      No offence but it did scan it, It even solved it because I put it in then it would get jammed, So I would pull it out and restart the program and so on until it was solved.

  25. kidsntech

    where are the instructions and software download?

  26. Kamden Bolhuis

    how do you get it

  27. MALIK


  28. Ethan

    Read some of the comments above for the answers to your questions.

  29. phil eudy

    I downloaded your building instructions and EV3 program, both of them look awesome. I cant wait to build this this to show all my other Lego friends.
    Three questions:
    1. Would you mind if I take this cube solver to a Lego convention event to show it off and of course give you credit for the whole design?
    2. Are you using a standard Rubiks cube for this model?
    3. Are you planning on anytime in the future of building a machine like this to solve the 5x5x5 cube? Regards Phil

  30. Martin Haber

    Hi! Can you tell me if it´s possible to build MindCub3r with 45544 set?

    Thank´s a lot!


  31. Shane Abell

    What is the reason the mindcub3r does not work with the education kit? Is it just the build or is it the associated files/software??? Is it because there are different sensors??
    Cheers Shane

  32. Kamden Bolhuis

    did not work it said this
    Unable to compile some documents for deployment:
    ScanCube.ev3p: Use of a block which no longer exists.
    ScanPiece.ev3p: Use of a block which no longer exists.
    ScanFace.ev3p: Use of a block which no longer exists.
    ScanMiddle.ev3p: Use of a block which no longer exists.
    ScanEdge.ev3p: Use of a block which no longer exists.
    ScanCorner.ev3p: Use of a block which no longer exists.
    ScanRGB.ev3p: Use of a block which no longer exists.
    ScanAndSolve.ev3p: Use of a block which no longer exists.
    MindCub3r.ev3p: Use of a block which no longer exists.

    • sam

      i have the same problem can someone post working coding

      • derp

        ok so on mindcuber.com if you scroll down a little bit and select the 31313 version he shows how to download this RGB color block which is imported to your programming thing where you open the first file that doesn’t work and then it works. (he tells it in more detail…)

  33. Lukas pruess

    No program ! were is the program!

  34. Bob

    I”ve built the robot but I can”t download the program to the brick

  35. Elvin

    The programming wont work

  36. Bjorn

    Worked the first try!
    Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>