I Built a Rubik's Cube Solver

2023 ж. 15 Нау.
38 098 Рет қаралды

In this video, I'll show you how I made a Rubik's Cube Solver that solves Rubik's cubes in under 5 seconds.
DIY Instructions: www.instructables.com/Rubiks-...
Hackaday Page: hackaday.io/project/190071-ru...

Пікірлер
  • Wow - major props on the technical design, fab, programming, and smart refinement involved in this! And kudos on your video production skills in making such a clear, breezy, entertaining and fun video. Truly impressive. Thanks!

    @dangruen@dangruen Жыл бұрын
    • Truly appreciated thanks!

      @aaedmusa@aaedmusa Жыл бұрын
  • This was incredibly entertaining, detailed and very educational. I wish I had half your patience and skill. More of this please!

    @AmigaRulz@AmigaRulz Жыл бұрын
    • Will do thanks!

      @aaedmusa@aaedmusa Жыл бұрын
  • Genuinely impressive! MIT would have been lucky to have you.

    @jamessewell5788@jamessewell578810 ай бұрын
  • They are both like me as well, except they're smart and got accepted to MIT.

    @jasonsdodd@jasonsdodd Жыл бұрын
  • this dude is insanely smart. the idea to use the website was super creative and smart. well done bro

    @ehsam8202@ehsam820210 ай бұрын
  • I’m glad your channel is getting more popular, it’s definitely underrated considering the quality of your videos

    @justinblin@justinblin10 ай бұрын
  • I have to say. Great video BUT as far as I know computer solvers don't use cfop or any human solving algorithms but instead start a breath first search from both ends of the solve one from the node of the solved cube and one from the unsolved cube's node and then once the two searches meet that means you have the absolute shortest path to solve the cube. These types of algorithms are also refered to as meet in the middle algorithms.

    @U_Geek@U_Geek10 ай бұрын
  • You should know that you have an audience in Africa. This is amazing work you're doing out here and I'm really aspired by this..

    @fredrickmwepu3134@fredrickmwepu313410 ай бұрын
  • Awesome video, showing the process very well (more inspiring and helpful than just jumping to the end result). Love the servo to hold your pen to start the stop watch!!

    @henrikbakk1@henrikbakk1 Жыл бұрын
    • Thanks! Yea I did the servo pen thing on the fly. I will say that it wasn’t accurate to the millisecond. Next time I’m going to use a timer display controlled by the microcontroller. That’ll be much more accurate.

      @aaedmusa@aaedmusa Жыл бұрын
    • @@aaedmusa hehe - more accurate, but much less fun ;)

      @henrikbakk1@henrikbakk1 Жыл бұрын
  • Thanks so much for taking the time to document this project on youtube and instructables and hackaday!

    @ahowedaddy@ahowedaddy Жыл бұрын
    • No problem!

      @aaedmusa@aaedmusa Жыл бұрын
  • Nice project, and well done !

    @dastatiks6182@dastatiks6182 Жыл бұрын
  • Incredible! It's good to know that smart, innovative people like you are in our world.

    @retiredtom1654@retiredtom1654 Жыл бұрын
    • thanks!

      @aaedmusa@aaedmusa Жыл бұрын
  • Great job! This is so awesome.

    @MakerBeach@MakerBeach Жыл бұрын
  • because you explain the math ( that i love it )under your projects this is one of the most beautiful chanel about mech eng, 3d print etc.

    @fra2025@fra202510 ай бұрын
  • You’re amazing, incredible idea

    @user-ek5wg3tb7g@user-ek5wg3tb7g5 ай бұрын
  • Brilliant work. I'm just starting a really basic spit-balling, white-boarding for how to use colour recognition to solve a virtual cube (a very crude one, once I can program that), using the F2L method coupled with other methods to finish the cube - basically CFOP; before much much later down the line, trying to bring it to reality. I'm planning on using JavaScript for the virtual solution since that's what I'm most familiar with. I'm really liking the use of the matrix to keep track of things. I've seen other vids where the colour recognition thing has been a bit of a nightmare to get right; so this option appeals more to me. Definitely adding this to my playlist; lots of good info here (I didn't even realize there was something like cube central for inputting the colours to each face). EDIT: I just realized you created the web server yourself. 👀

    @TinyMaths@TinyMaths3 ай бұрын
  • Great video! You inspire me to build my own.. Great job! This is so awesome..

    @user-xf1ij5wg3f@user-xf1ij5wg3f9 ай бұрын
  • This is why I love this channel an why I sub and come back to this channel. This is sick and just super nerdy.

    @tamrobotics@tamrobotics3 ай бұрын
  • Great video, great project.

    @maartenlms@maartenlms Жыл бұрын
  • Very nice, lots of iteration with a good product !!! Kepp up the good work.

    @squidben5780@squidben5780 Жыл бұрын
    • Thanks, I definitely want to make a better one in the future

      @aaedmusa@aaedmusa Жыл бұрын
  • Found you from instructibles... When I was young and the cube first came out I got really good at it. Well... really good at taking it apart and putting back together solved and starting over. You are obviously a few steps ahead of where I am. LOL.!

    @ACoustaDC@ACoustaDC4 ай бұрын
    • Haha just a couple!

      @aaedmusa@aaedmusa4 ай бұрын
    • You’re meant to solve it by turning it.

      @bigbosspanda1976@bigbosspanda1976Ай бұрын
  • Definitely interested

    @readdaily5680@readdaily56807 ай бұрын
  • If you are having printing issues, better make sure the printer is in the "ON" position

    @jonnoam@jonnoam5 ай бұрын
  • Great work, very cool

    @jeffveltri8472@jeffveltri847210 ай бұрын
  • Great video! You inspire me to build my own.

    @EpicLitez@EpicLitez Жыл бұрын
    • Awesome good luck!

      @aaedmusa@aaedmusa Жыл бұрын
  • this project have been registered in to my to do list...excelent video, excelent aproach

    @user-xf4dm5so1j@user-xf4dm5so1j Жыл бұрын
    • Awesome! thanks!

      @aaedmusa@aaedmusa Жыл бұрын
  • Hi Aaed, I was looking at some of the sites where AI’s training data is taken from and a few rabbit holes later I found this video. This was the cream of the crop in relevance, entertainment, and knowledge. So well done. Thank you for the great ride. Thanks! oh... the filming, narration, and finishing were great too.

    @markpresson@markpresson Жыл бұрын
    • Thanks man I appreciate it!

      @aaedmusa@aaedmusa Жыл бұрын
  • Thank you for you content

    @quiquesg88@quiquesg887 ай бұрын
  • Dude, I mean, Sir! I'm a new subscriber. Fantastic channel. Thank you!

    @OttoByOgraffey@OttoByOgraffey10 ай бұрын
  • You are a genius man!!!

    @jjani6138@jjani6138 Жыл бұрын
    • Not even close but thanks!

      @aaedmusa@aaedmusa Жыл бұрын
  • as a speedcuber, this video was very fun to watch 😁😁

    @bharati702@bharati7026 ай бұрын
  • good stuff!

    @brownie9948@brownie9948 Жыл бұрын
  • My gosh dude, MIT acceptance board members botched it. Gonna be hilarious if you end up a professor there some day. Really fun to see someone so smart also have such style and taste when it comes to filming/making content as well. Brilliant ⭐️⭐️⭐️⭐️⭐️

    @tnycrmb@tnycrmb10 ай бұрын
  • 8:19 well after watching some videos on your channel, you should definitely be accepted! amazing projects

    @hapsti@hapsti10 ай бұрын
  • Great vid! Super satisfying watching it step through a solution. Some thoughts on future iterations. CFOP is actually one of the more move heavy solving methods in cubing. It’s incredibly quick for humans because we can think about what our next move will be while going through an algorithm, but that’s not an advantage for a computer. The method that most robot solvers use is called Kociemba’s algorithm. It’s one that’s hard to code yourself or even understand, but there are libraries out there that have done the hard work for you. If you want to code the method yourself, maybe look at ZZ or Pertrus, which I think may be slightly more move efficient human executable methods. Also, definitely get a better cube. You can get propper speed cubes for about $10 or less. Those Rubik’s brand ones are just terrible. Lastly, I wouldn’t abandon the camera idea. Imagine how cool it would be if you could just throw the scrambled cube in, press a button and it solves it for you, rather than having to input the scramble manually. You could point 2 cameras at opposing corners which would let you every piece, except the one behind the motor posts, but you can infer what it is from the other pieces.

    @krumplin8992@krumplin899210 ай бұрын
    • Lego, the plastic bricks one, has a cube solver with a camera. It is not fast but no need to modify the cube. Just put a cube in it, and the thing solves it.

      @hopje01@hopje0110 ай бұрын
  • great content bro

    @gulfstream1800@gulfstream18006 ай бұрын
  • Epic stuff. Really nice build. My 2 cents, is that back in the day when me and my friends were into cubing, we would all take apart the cubes, and vaseline the insides. might help with the reliability!

    @RKatz121@RKatz12110 ай бұрын
    • They also now make specialized lube for speed cubes, with different versions so you can fine tune it to how you want it

      @aquafire1838@aquafire18389 ай бұрын
  • Awesome.

    @peter360adventures9@peter360adventures910 ай бұрын
  • This man deserves more rspect

    @thegreatmightynerd@thegreatmightynerd6 ай бұрын
  • It doesn't often happen that young guys are of inspiration to us, old guys, but you definitely are. I want to be like you when I go to pension 😅

    @milanfanas@milanfanas10 ай бұрын
  • Thank You for quite music, thank you for not stuttering, thank you for not saying "uh" or "um", very well done. I am sure your producer at the end had something to do with it.

    @donvukovic7440@donvukovic7440 Жыл бұрын
    • Yes, she's very strict. She made me do hundreds of takes before I got it just right lol!

      @aaedmusa@aaedmusa Жыл бұрын
    • @@aaedmusa I will use your video to sowh how its done, and what it takes to do it right.

      @donvukovic7440@donvukovic7440 Жыл бұрын
  • very nice, the only thing i think that can make it turn even faster, use a faster rubik's cube bc like the normal one only like turns every 0.5 seconds with hands, and using CFOP instead of beginner's method

    @Sporefire_@Sporefire_10 ай бұрын
  • you could use python to utilize an existing rubix cube solving program, and turn the output moves into specific motor turns

    @difficult.to.underestimate@difficult.to.underestimate10 ай бұрын
  • I'm like 3 months late, but if you buy a cube LIke the RS3M 2020 its 10 dollars and its considered the best budget speed cube and would work perfectly since you can turn really fast on it

    @fox_6242@fox_624210 ай бұрын
  • Félicitations!

    @cccbbb3161@cccbbb3161 Жыл бұрын
  • I know what you mean about MIT. I got accepted, but my parents made just enough money so I didn't qualify for free tuition, but not nearly enough to afford it outright, so I still couldn't go. Not the same thing, but still excruciating. I feel your pain. As far as the bot....hmmmm....my instincts say throw more computing power and 6 dedicated cameras at it. They don't have to be awesome cameras, far from it. The beauty of something like the Rubik's cube is it's about as easy to machine vision as possible (as you found out). Cheap cameras. You can beat theirs. Brains over money any day. 💪

    @guerrillaradio9953@guerrillaradio995310 ай бұрын
  • Yeah, everybody gangsta till Polish person sees "sick emblem" that is reminding me a SS badge 😂

    @user-gs6hn8cv9v@user-gs6hn8cv9v10 ай бұрын
  • Getting an actual speedcube could probably shave off some more milliseconds. The ones with magnetic "cores" are crazy smooth.

    @deleuzersig@deleuzersig Жыл бұрын
    • Agreed, gonna be doing this in a future iteration

      @aaedmusa@aaedmusa Жыл бұрын
  • I love your vids! I am a math and physics double major and just finished my freshman year. I’m quite good at both, but my mechanical and electrical engineering skills are nonexistent. My college gives me access to software like cad, and I can 3d print stuff for relatively cheep. My question to you is, how do I, independently, learn to do what you do?

    @elishashmalo3731@elishashmalo373110 ай бұрын
    • Are there any books/tutorials you recommend?

      @elishashmalo3731@elishashmalo373110 ай бұрын
    • Oh, I also have been programming in python for 5 years.

      @elishashmalo3731@elishashmalo373110 ай бұрын
  • Great job! To solve the cube, this is really overdesign, html server, algorithum, but I love it! So how many round of tetris you played lol

    @HabonRoofPlayground@HabonRoofPlayground Жыл бұрын
    • Too many to count!

      @aaedmusa@aaedmusa Жыл бұрын
  • how do i reach out to you mate?

    @mfslots@mfslots6 ай бұрын
  • Is there a way I can find the code for this. Would love to learn

    @vamsimunjuluri@vamsimunjuluri14 күн бұрын
  • Can't watch these enough. Is your program algorithm solving the cube in memory then performing the moves, or is it analysing the cub after each move?

    @CottonBudda@CottonBudda Жыл бұрын
    • From memory. I tell it what the cube looks like, it solves it virtually, then solves it physically.

      @aaedmusa@aaedmusa Жыл бұрын
  • I built one of these too and had a bunch of the same problems! (I also went for manual input for colours) it's on my channel if you wanna see it, but a lot less efficient

    @freddiemeinertzhagen@freddiemeinertzhagen10 ай бұрын
    • How can you build one too this is his design

      @jamesjameson4566@jamesjameson45669 ай бұрын
    • @@jamesjameson4566 Because it does the same thing. Most solvers will probably be similar to this design because it solves quickly

      @freddiemeinertzhagen@freddiemeinertzhagen9 ай бұрын
  • Hello, how do you go about taking the zero point of the stepper motors?

    @frei7501@frei75016 ай бұрын
    • The initial position of each face of the cube is assumed to be 0.

      @aaedmusa@aaedmusa6 ай бұрын
  • Hey, can you provide me with the 3d printing template?

    @flashingcuber1890@flashingcuber18903 ай бұрын
    • It’s in the description

      @aaedmusa@aaedmusa3 ай бұрын
  • If you actually applied and MIT didn't accept you, then it's their loss. You have all of the attributes a really grest engineer should have! And I was a registered professional engineer before you were born!

    @docfarl@docfarl6 ай бұрын
    • I Appreciate it🙏. I did apply to MIT but two year later I am over the MIT hype. I’ve found that personal grit matter more than the school you go to.

      @aaedmusa@aaedmusa6 ай бұрын
  • the actual solving speed is controlled by your stepper motors. Simply put, they are too slow for your application.

    @petenguyen8455@petenguyen84557 ай бұрын
    • Hmm I don’t know if I would consider 4.56 seconds slow.

      @aaedmusa@aaedmusa7 ай бұрын
    • @@aaedmusa by design, stepper motors completed one revolution with many steps. Hence they are slow. In constrast if you use geared DC motors, you can speed it up 10 times. Yup, 4.56seconds becomes 456ms. (less than 1 second). Using geared DC motors, you'll need signals (per motor) as an index to the start of a revolution.

      @petenguyen8455@petenguyen84557 ай бұрын
    • @@petenguyen8455 If it were that simple I would have a world record right now. I used stepper motors because they are very accurate. Its not as simple as using fast motors. They need to be just as precise as they are fast. DC motors are not position precise. This is why 3D printers use stepper motors and not DC motors. In this project, the slightest error in positioning accumulates with every move. This happened with the precise stepper motors that I used, so it would be much much worse with DC motors. I have honestly never seen someone make a Rubik's cube solver with dc motors for this exact reason.

      @aaedmusa@aaedmusa7 ай бұрын
    • @@aaedmusa it is a geared DC motor not simply a direct coupling dc motor. This gives you an accurate ratio 1:x. So if you are counting the ratio, you'll get the rotational speed. Anyway, may be this is way too complex for you.

      @petenguyen8455@petenguyen84557 ай бұрын
    • @@petenguyen8455 Once again if this could go as fast as you claim, then you would have a world record in your hands. Maybe it is too complex for me. If you can try this and and have it solve a Rubik’s cube as fast as you claim then I’d be more than happy to admit that I was wrong.

      @aaedmusa@aaedmusa7 ай бұрын
  • Excellent! You should add a warning: "Don't try this at home!". :)

    @Visionery1@Visionery1 Жыл бұрын
    • Looking at the complexity involved, nobody will try at home anyway!!!😅

      @jjani6138@jjani6138 Жыл бұрын
    • Why not? I think it's a pretty safe build.

      @aaedmusa@aaedmusa Жыл бұрын
  • when revisit :) ?

    @mankifg@mankifgАй бұрын
    • Look on my channel. I redid this project several months ago.

      @aaedmusa@aaedmusaАй бұрын
  • Sorry but no one is gonna talk about how he turned off the printer to start it? 1:25

    @DoubsGaming@DoubsGaming10 ай бұрын
  • You need to lube it. x)

    @dallebull@dallebull10 ай бұрын
  • I doubt the "much smarter".

    @mrWhite81@mrWhite8110 ай бұрын
  • 7:51 aint no way he added ss symbol

    @smetakdarkk@smetakdarkk7 ай бұрын
    • SS? It’s 2 lightning bolts

      @aaedmusa@aaedmusa7 ай бұрын
    • @@aaedmusa Yea, ss logo is 2 lightning bolts

      @smetakdarkk@smetakdarkk7 ай бұрын
    • ​@@smetakdarkkFor obvious reasons, I think its safe to say that I'm not a Nazi. While it has a slight resemblance to the ss patch it is cleary just 2 lighting bolts symbolising that the machine is fast.

      @aaedmusa@aaedmusa7 ай бұрын
  • Are you like a genius or something?

    @vladimirputindreadlockrast812@vladimirputindreadlockrast812 Жыл бұрын
    • Nope. This project took over a month. It's just been compressed into a 9-minute video.

      @aaedmusa@aaedmusa Жыл бұрын
  • If you couldn't get into mit I don't think anyone can...

    @matheustran8009@matheustran80096 ай бұрын
  • Algorithm bump

    @dellisbeaver8666@dellisbeaver866610 ай бұрын
  • kociemba

    @Yeetsnake@Yeetsnake6 ай бұрын
  • 1K likes on this video is criminal

    @jacksonvandenberghe9420@jacksonvandenberghe94206 ай бұрын
  • are stepper motors generally this huge? Looks like a nice project to have kids build but was wondering you can get away with using something different.

    @kritikusi-666@kritikusi-66610 ай бұрын
KZhead