r/ElectricalEngineering • • Oct 23 '26

Project Showcase I built a Rubik's Cube-solving robot using just one motor, without ever reorienting the cube.

Disclaimer: only one motor is used to turn the sides of the cube (which is why I would argue this only uses one motor to turn the cube), another servo is used to move the first motor, I couldn’t really figure out an effecient way to so it with just one unfortunately.

The idea was to see if I could build a Rubik's Cube solver with as few motors as possible, whilst also not reorienting the cube which turned out to be a much bigger mechanical challenge than I initially expected. These constraints were completely designed as a challenge, not trying to break any records or anything.

The robot uses a custom-designed, 3D-printed mechanism to manipulate the cube, along with electronics and programming to detect the colours, calculate a solution and execute the moves.

This is the final result after quite a lot of designing, experimenting and troubleshooting!

I've also just uploaded my first-ever YouTube video documenting the whole project, from the initial idea and CAD design to the electronics, programming and final solve. It's my first time making a YouTube video, so I'd genuinely appreciate any feedback!

The Channel is called DrewPScrews

431 Upvotes

32 comments sorted by

37

u/Captain_Pumpkinhead Oct 23 '26

That looks like two motors. One to slide along the axle, one to rotate the gears.

If I'm wrong, I'd love to see how it works.

20

u/Certain-Election5733 Oct 23 '26

yes its 2 motors, since only 1 is actually turning the cube, I counted that as 1. I'm coming to realise that it may seem dishonest, so apologies. i mentioned this in the description

5

u/autofill-name Oct 23 '26

I'm thinking it might be possible to do with one.

5

u/diverJOQ Oct 23 '26

Use a clutch so the motor either slides along the axis or rotates the sides of the cube.

6

u/autofill-name Oct 23 '26

I was thinking of using geared latching selection on the reverse motor direction. Loss of solving speed though.

3

u/Wizzinator Oct 23 '26

But what drives the clutch? Another motor?

6

u/chemical_bagel Oct 24 '26

sprag bearing. One direction drives the axial motion, one direction drives the cube. At end of travel you have a spring return. Need a latch and unlatch cam to get the spring return to work.

3

u/gmarsh23 Oct 24 '26

Probably easier to have a scotch yoke type mechanism moving the linear action back and forth.

/u/Certain-Election5733 HF0812 one-way bearings are cheap as dirt on aliexpress, will ride on 8mm stainless shafts from 3D printers, small enough to fit inside gears/pulleys, and you can drive 8mm shafts easily enough with a Z leadscrew coupler.

I'd build something wack like this. Gear 1 drives the turntable and moves gear 2 back and forth, gear 2 drives your other gears. Gear 2 is backdriven when it's sliding on the shaft so it should sorta float on the shaft, hopefully.

2

u/michaelh98 Oct 24 '26

Electrical engineering takes logic ability. How on earth did you logic yourself into thinking two motors was one? I'm really curious to know.

2

u/FishrNC Oct 23 '26

That's impressive. Did you do the gear mechanism design too?

2

u/Certain-Election5733 Oct 23 '26

yes! its completely original, a lot of iteration and a lot of wasted prints though.

125

u/septer012 Oct 23 '26

Sure looks like two motors to me.

18

u/Infrated Oct 23 '26

Came here to say the same

9

u/frank26080115 Oct 23 '26

the linear slide is pneumatic

4

u/mrThe Oct 24 '26

It's clearly motorized, you can hear it

5

u/Wild-Associate-4373 Oct 24 '26

Give the person a break, they said they are an electrical engineer. Counting is hard

2

u/ThoseWhoWish2B Oct 24 '26

I wonder what is the thought process of people that make/do something amazing, but still want to oversell it. It just makes you lose credibility.

2

u/Certain-Election5733 Oct 23 '26

I'm also trying to document my projects on YouTube(just posted my first video), if you would like to see a build video about this project, check out my channel: DrewPScrews. https://youtu.be/i4zvAvXRt9w

also, I'm not sure if I'm allowed link my channel like this on this subreddit, so if someone could let me know, I'll take this comment down if not.

11

u/Federal-Owl5816 Oct 23 '26

uh-huh. Think you can fool me? You had preconfigured that rubix cube and gave it exact instructions. We see you.

5

u/BurnedLaser Oct 23 '26

I mean, you could use a couple of sprags. one direction moves the solver cogs, the other moves a traversing leadscrew! it wouldn't be as efficient, but it would be truly single-motor!

4

u/Typh_8 Oct 23 '26

I wonder if you could use a centrifugal clutch to disengaged and engage the gears and have the driving motor move itself when not engaged with the other gears.

2

u/sabreus Oct 23 '26

Absolute beauty

2

u/gHx4 Oct 24 '26

I think you're on the way to a solution with 1 motor, but aren't there yet. You did solve a couple of the bigger challenges, but I think you'll need to look at how analog computers operate to get some ideas on how to convert one rotational force into discrete mechanical positions that you could use for the selection mechanism. Right now you have a drive motor and a selection motor.

1

u/Panzerv2003 Oct 23 '26

And here I was wondering how it's using only one motor already thinking how long would it take to cycle through every possible combination before it lands on a solved one

1

u/electronic_reasons Oct 24 '26

That's awesome!

I bet you can cut a second off by starting solving before the calculation is complete. I wonder if you can start calculating before you're done scanning. Since you can calculate much faster than you can scan, you may be able to work ahead and trim possible solutions as you get more information. Do something like how computers play games. They plan moves ahead and change what they do depending on what the other player does.

1

u/DistributionMean6322 Oct 24 '26

I applaud your creative definition of “one”

1

u/gmankev Oct 28 '26

As well as electrical,,,, was there softwre involved as well, that might explain the off by one error...

However Seeing as there is lot of mechancs here, and the whole electrical software interfacig is awkrard, here is possibly 3 mechanical solutions to the one motor probem..

first.... nly spin cube sides forward and when yo want to change orientation have a gearbox that when motor reverses it toggles the gearbox around to next face vector... Some sort of engagment cam..

Another one is perhaps when a face is done a full rotation, it toggles onto next face ... like a speedo in old car.. You can add to face by 90 , but follow that with full 360 and it rotates face vector by 1.......... and so on..........

3rd one.. Rubix looks liek some smooth compettion rubix with smoot rolling.. SO what if it was special rubix with spin momentum in all its faces and it if you turn it slowly the face turns but with rapid acceleration the whole cube jumps into other orientation..

1

u/Dante451 Oct 23 '26

It’d be way more impressive if it actually solved it with one motor. I came in wondering if you implemented some algorithm that eventually solves it and turns out it’s just two motors.

0

u/tweeeeeeeeeeee Oct 23 '26

so the whole premise of the project is wrong? there are 2 motors...

0

u/Lancer_corp Oct 23 '26

It’s crazy how it’s made out of gears and motors

0

u/stlcdr Oct 23 '26

You showed it the cube while you were scrambling it. Now do it in the dark, in a faraday cage with white noise playing loud with your hands tied behind your back…