https://willem.aandewiel.nl/index.php/2022/01/02/yet-another-parametric-projectbox-generator/

” data-image-caption=”” data-medium-file=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_stands.png?w=400″ data-large-file=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_stands.png?w=800″>

When it comes to taking an idea from concept to prototype reality, depending on the type of project, there can be quite a few sub-tasks along the way. Take for example, your latest electronic widget design. You’ve finished the schematic, and the PCB layout is a work of art (if you do say so yourself) but having that kicking around on the desk unprotected with wires dangling is not the end game. Now you’ve got to make an enclosure of some kind, and I don’t know about you, but this is the bit where this scribe struggles a little to get something to fit nice. Even if you’ve got the latest 3D printer dialed in to within a gnat’s whisker of perfection, you’ve still got to come up with the design, and those dimensions need to be really accurate. So, for those of us who are great at the PCB, but suck at the enclosure, [Willem Aandewiel] has been busy making the tool just for you, with his PCB-orientated Yet Another Parametric Projectbox generator (YAPP.)

<img data-attachment-id="517859" data-permalink="https://hackaday.com/2022/01/31/this-parametric-project-box-generator-is-super-easy/yapp_pcbstands/" data-orig-file="https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png" data-orig-size="1200,587" data-comments-opened="1" data-image-meta='{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}' data-image-title="YAPP_pcbStands" data-image-description="

Yet Another Parametric Projectbox generator

” data-image-caption=”” data-medium-file=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png?w=400″ data-large-file=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png?w=800″ loading=”lazy” class=”wp-image-517859 size-medium” src=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png?w=400″ alt=”” width=”400″ height=”196″ srcset=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png 1200w, https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png?resize=250,122 250w, https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png?resize=400,196 400w, https://hackaday.com/wp-content/uploads/2022/01/YAPP_pcbStands.png?resize=800,391 800w” sizes=”(max-width: 400px) 100vw, 400px”>

Defining the PCB mounting points w.r.t. the PCB outline

Without hesitation you can head over to the YAPP GitHub, grab that sweet OpenSCAD code, and get cracking with the demos. Provided for your convenience are a number of examples for enclosing some common items, such as Arduinos and ESP32 modules, so you can use those as a springboard to get your own code in place. YAPP works based off the PCB — by specifying programmatically since this is OpenSCAD — outer dimensions, mounting post locations first. Next you define openings in the six faces of the box, and the tool happily spits out a platter with the base and lid ready to drop into Cura (or your slicer of choice) What could be easier?

<img data-attachment-id="517858" data-permalink="https://hackaday.com/2022/01/31/this-parametric-project-box-generator-is-super-easy/yapp_cutoutsfront/" data-orig-file="https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png" data-orig-size="976,421" data-comments-opened="1" data-image-meta='{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}' data-image-title="YAPP_cutoutsFront" data-image-description="

Yet Another Parametric Projectbox generator

” data-image-caption=”” data-medium-file=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png?w=400″ data-large-file=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png?w=800″ loading=”lazy” class=”wp-image-517858 size-medium” src=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png?w=400″ alt=”” width=”400″ height=”173″ srcset=”https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png 976w, https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png?resize=250,108 250w, https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png?resize=400,173 400w, https://hackaday.com/wp-content/uploads/2022/01/YAPP_cutoutsFront.png?resize=800,345 800w” sizes=”(max-width: 400px) 100vw, 400px”>

End face cutouts

And before you start on non-rectangular designs, this is a rectangular box generator for rectangular PCBs. That is all this is designed for, and as far as we can tell, it does that one job well.

Of course, this is by no means the first enclosure generator to grace these pages, far from it. Here’s one for starters. If you’re here for tips to help make better designs, check this out, and finally 3DHubs also has a nice guide for you. Happy printing!

…read more

Source:: Hackaday