Home Creators Posts Import Register Favorites Logout

Content

If you haven't seen it yet, you can check out my latest project video: a jigsaw puzzle solving robot here.

It's funny how this project progressed. It started as what seemed to be a simpler project that I could do with my robotic arm focused mostly on the software challenges. But then as I got into it, I kept upping the ante in ways that I thought would make it a more interesting project. More pieces. All white. Huge. Fast. 

I'd be lying if I said I'd do it differently. I get a lot of joy out of the struggle to work through challenging problems and this project delivered in spades. 

In fact, as I alluded in the video, I still have a lot of work to do before it can tackle the great bambino 5000 piece puzzle. Software processing time for the puzzle is a big problem, but there is one other huge thorny issue that I have to work through: cumulative error. 

When the camera scans the pieces, there's always some error. Either from the pixel resolution of the camera, my algorithm, or the way the pieces actually fit together. For example some puzzle pieces fit together very snugly, which makes the location of the other edge of the puzzle slightly shifted from where I would expect it to be with a looser fit. 

With only two puzzle pieces the error is tiny and you can ignore it, but when you start connecting hundreds of pieces in a row, it can add up to substantial error. If I don't measure and account for that error, I would give my robot a 0.001% chance of ever assembling a 5000pc puzzle successfully. 

This is the main reason I have the moving camera on the gantry with a small telecentric lens. I'll be using it to scan the location of all the pieces on the under-construction puzzle to update the assembly plan on the fly to compensate. It should make for some interesting software. 

I'm planning to focus on the software in Part 2 of the video, and I'm glad to see that there is general interest in that. I'm excited for this because I've always had a hard time explaining software since it is so abstract, but since almost everyone has intuition for puzzles, I think it will be a lot easier. 

I'll be scheduling the patron only directors commentary to share more details on this video in the next week or so. Keep your eyes peeled for that! 

Thank you all for the support! 

- Shane

Files

Jigzilla: the automatic puzzle solving machine (part 1)

Visit http://brilliant.org/stuffmadehere to sign up for free. And also, the first 200 people will get 20% off their annual premium membership. Help support these videos on patreon: https://patreon.com/stuffmadehere I thought this would be an easy project to knock off my list after putting myself through the wringer with the automatic basketball hoop. I was wrong. This project is really hard. BUT that also makes it really interesting! Some more details: - The 5000 piece puzzle is the gradient puzzle from the play group: https://www.playgroup.design/ - More about telecentric lenses: https://en.wikipedia.org/wiki/Telecentric_lens - CoreXY belt design: https://corexy.com/ - Algorithm to determine point furthest from all puzzle edges https://en.wikipedia.org/wiki/Distance_transform

Comments

Anthony Pham

I’m interested in the software side of your builds. What you’re able to figure out and solve in such a short amount of time is insane! Thanks for another cool project!

Carlos Forever.Endeavour

You always seem to do a great job explaining the abstract software concepts!

Stuff Made Here

Thanks and I'm glad to hear it. Although I would say that you don't see all the ones that I cut out because I can't find a good way to explain them :)

Vaughn Svendsen

I'm curious to see the algorithm that you used and how you may have parameterized the geometric features of each edge e.g. knob/socket, area of knob/socket, distance from knob/socket to top corner, distance from knob/socket to bottom corner, area of knob/socket, etc.

Lester Su

Hi Shane, I would say great video as always. I am actually super impressed by not just the sheer ingenuity of the build and solutions this time, but also the narrative, the pacing and the visual cues! I feel like you’ve massively improved over the years. Well done. I don’t always make it to your director’s commentary streams due to time zones, but I do go back and watch the VODs. Here’s a question for the next one. You often mention integration hell. Can you give some concrete examples of what you’re confronted with on a project like this? What actually happens when you work through it? Is it just a mess of issues and you have to isolate and resolve them one by one (again, examples)? Do new issues come up when you fix an old one? Etc. I am super interested (as I am sure there are probably many others too) in the process of your problem solving, in the journey so to speak, so would to hear about this in all its gory detail!

Thomas Maufer

You might try to work with the errors by estimating best-fit pieces, and first assembling those (you might need to allow for several in-progress clusters of pieces). With an all-white puzzle there is no wrong place to start (and no right place either). Your algorithm needs to avoid errors and that might speed up its matching process. Just a thought. I'm looking forward to seeing how you decided to approach this tough problem in a scalable way.

Claudio Bandera

I am very excited for the next video, since I am interested in more Infos on the software aspect of your projects for a long time already. Not only on the algorithmic part, but also in the fundamentals: which language and libraries do you use? How do you communicate with the motors and sensors? Can I find the source code on GitHub? How do you test your software? Maybe that's even enough to fill a complete video with it.

corgitronics.com

I would like to know more about the compact telecentric lens you are using, might be just what I have been looking for.

CuriousMarc

This is an amazing project. What do you write your software in by the way?

Paul McCartney

Haha, I loved this project. Great job!

Ivan PRUNIER

The main script seems to be python from what we see in the video, although there might be other languages in there for specific hardware.

Umut G

I would actually pay to watch the whole 700 hour process. It doesn’t have to be commented. I’m ok with watching the footage of you coding 500 hours with headphones on. I love this stuff, want to do some, have 0 time for it.

Jacob Bijani

looking forward to the software part 2. I've always wanted to hear more about what goes into the "then I fixed the algorithm" parts of the builds.

Stuff Made Here

Yep, mostly python. Firmware is usually C++. Sometimes I'll write a part in C++ and wrap it with cytpes (for speed or for using C++ lib with no python support).