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!

This entry was posted in EV3 Building, Featured Projects. Bookmark the permalink.

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

  1. Veronica says:

    Will you make the program and the building instructions available?

    • kris says:

      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 says:

    Excellent! Would love to see the program and instructions. 🙂

    • kris says:

      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 says:

    Hey good job !
    Instructions for me too 🙂

    I suppose that the recognisation step can be faster ?

    • Jorge says:

      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 says:

      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 says:

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

    • kris says:

      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 says:

    Please share instructions with me too!!

  6. huant says:

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

    • Laurens says:

      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 says:

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

  8. Anonymous says:

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

  9. Harold Ka says:


    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 says:

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

  11. Andrew says:

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

  12. Peter says:

    What software did you used for programing?

  13. bukhory says:

    I’ll spent my weekend for this 🙂

  14. Syart says:

    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 says:

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

    Write me please a E-Mail.

  16. roberts says:

    good job!
    please give me instructions please?!

  17. Baddo says:

    I can’t wait for the instructions & programming!

  18. HGW10 says:

    When r the building instructions and programming coming out

  19. Someone says:

    post instructions faster

  20. Marco says:

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

  21. Albert says:


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

  22. Ethan says:

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

  23. Ethan says:

    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?

    • Laurens says:

      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 says:

      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][/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 says:

        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 says:

    it didnt work because it didnt scan it

    • Ethan says:

      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 says:

    where are the instructions and software download?

  26. Kamden Bolhuis says:

    how do you get it

  27. MALIK says:


  28. Ethan says:

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

  29. phil eudy says:

    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 says:

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

    Thank´s a lot!


  31. Shane Abell says:

    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 says:

    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 says:

      i have the same problem can someone post working coding

      • derp says:

        ok so on 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 says:

    No program ! were is the program!

  34. Bob says:

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

  35. Elvin says:

    The programming wont work

  36. Bjorn says:

    Worked the first try!
    Thank you!

  37. lilly says:


Leave a Reply

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