An OpenSCAD electronics enclosure designed to hold one rectangular PCB. The default settings are for the following:
-PCB w/ 100mm x 40mm mounting hole spacing
-SPAX #8 1 in. pan head screws for cover
-M3-0.5 threaded heat set inserts for PCB (https://www.amazon.com/gp/product/B077CJV3Z9/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1)
When printing this enclosure, please be mindful of the application. If you will be operating high voltages in the enclosure, be sure to use a filament with suitable dielectric and flammability properties and ensure there are proper clearances.
This OpenSCAD model is a modification of CanisVolans' “Customizable Enclosure” where the PCB is no longer held between the cover and the mounting feet; instead, the PCB has its own standoffs/feet and the original mounting feet are flush with the step for the cover.
Update 23 Oct 2022:
*_v2
Added a new version of the configurable enclosure that adds the ability to add up to 4 of each of the following features:
A JSON file was also included with an example that demonstrates most of the features available on many of the different surfaces of the enclosure.
The author remixed this model.