Boxes.py Has Your Lasercut Box Needs Covered

I needed something to test out a low-power laser cutter, and thought that some small cardboard boxes would fit the bill nicely, so off I went to scour the Interwebs for a quick-and-dirty finger-joint box generator. And the best of the best was to be found, drumroll please, on Hackaday.io. [Florian Festi]’s boxes.py not only has a sweet web interface, covers an absurd number of box styles, and includes kerf tests to ensure that your joints are tight, but it’s also written in easy-to-extend Python for when you have really particular needs.

But you won’t need to design anything of your own. There are already boxes with living hinges, boxes that fit 19″ racks, Eurorack skiff boxes with laser-cut mounting rails, and even a generic electronics project box with mounting ears for your PCB. Console2 has integrated clips on the rear service hatch.

You need a pentagonal prism with a round opening? What size? I guess a complete arcade-style console is technically a box. Naturally, there are also geartrains and even a robot arm design. Wait, what?

Each of the box designs is fully customizable, so it’s easy to make something like a box with customized dividers, where the different compartments are specified in a sweet text markup. [Florian]’s example box set for the game Agricola is amazing.

Underpinning the code is a LOGO-like finger-joint drawing routine. This makes it relatively easy to draw your own funny shapes, and have the hard work of thinking through the joining fingers taken care of by the computer. [Florian] seems open to taking pull requests for new box shapes, but I haven’t thought of one yet.

I can’t say enough about how cool boxes.py is, and most of the demo applications are worth a look on their own. This was an entry in the Hackaday Prize back in 2017, and it’s been growing and improving ever since. Way to go, [Florian] and Co.

Generating Laser Cut Boxes In C

[Mike] is a laser cutting newbie and has never had the opportunity to create a file and send it off to a laser for cutting. He knew he didn’t want to squint at a CAD package, nudging lines by tenths of a millimeter, only to screw something up and have to do it all over again. His solution, like so many other automation tasks, was to create a program that would generate a box of any size in .SVG format.

[Mike]’s program runs in C, and only requires a few variables set in the program to create a box of any size. There’s no argc or argv for the program – the one thing that would turn this into a command line utility that simply creates SVG boxes. Perhaps another time.

The rest of [Mike]’s hackerspace, Fab Lab xChc, was impressed the program worked the first time. With this small bit of C code, [Mike] has an easy, simple tool to generate laser cut boxes. The only remotely complicated bit of C this program uses is printf(), so even an Arduino can spit out the SVG for a laser cut box.