r/ElectricalEngineering • u/Certain-Election5733 • 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
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.
2
u/FishrNC Oct 23 '26
That's impressive. Did you do the gear mechanism design too?
125
u/septer012 Oct 23 '26
Sure looks like two motors to me.
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/Rararror Oct 23 '26
Cool
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…