Fixed version 7.3
It seems that special characters in the code have again led to the code not working properly for some. I apologize for this. I have now created a new version 7.3 where this is fixed. I would be very interested to know if everything works as expected for you now. Thanks for your feedback in the comments

Stable and waterproof OpenSCAD case V7.2 by pbtec
New Version 7.2 out!

Enhancements in Version 7.2:

  • Hot melt copper nut support
  • Screw hole options: Can be configured to pass through the entire case, with the option to position the nut at the bottom of the case
  • Flexible mounting options: 1 to 3 holes on all sides for cable glands or switches
  • Improved PCB support: Now compatible with up to 3 different PCBs holders instead of just one
  • Base bottom mounting holes added (not recommended if the housing should be highly waterproof)
  • Gasket can now be printed (TPU).
  • Expanded screw support: In addition to countersunk screws, round, flat, and hex head screws are now supported

Edit August 24: More than 20’000 downloads!
The case has now been downloaded an incredible 20,000 times worldwide on both Thingiverse and Printables!

Highly scalable electronic case for 3D printing. Try it out!
Optimized for Openscad Customizer. Activate it under view/customizer and play around 😉

No Support needed to print

For waterproof cases you can use silicone sealing cord with diameters from 1 to 3mm

If you want to support my project, please use the links below to start your shopping. No additional charges for you, but I get a commission of your purchases

Brass hot melting insert nuts (starter) sets:
https://s.click.aliexpress.com/e/_DezuAlH
https://s.click.aliexpress.com/e/_DeWsPMp

Or individual sizes:
https://s.click.aliexpress.com/e/_DkaQObj
https://s.click.aliexpress.com/e/_DCrO22p

I also recommend using special hot iron to insert the nuts in the right angle:
https://s.click.aliexpress.com/e/_DcHd8Ep

round silicone sealing cord foam white
Aliexpress: https://s.click.aliexpress.com/e/_AdVXC6
Ebay: https://www.ebay.com/itm/184394411044?mkcid=1&mkrid=711-53200-19255-0&siteid=0&campid=5338823684&customid=&toolid=10001&mkevt=1

round silicone sealing cord foam black
Aliexpress: https://s.click.aliexpress.com/e/_A32aUQ
Ebay: https://www.ebay.com/itm/353309685702?mkcid=1&mkrid=711-53200-19255-0&siteid=0&campid=5338823684&customid=&toolid=10001&mkevt=1

round silicone sealing solid cord white
Aliexpress: https://s.click.aliexpress.com/e/_A07nM2
Ebay: https://www.ebay.com/itm/133527877200?mkcid=1&mkrid=711-53200-19255-0&siteid=0&campid=5338823684&customid=&toolid=10001&mkevt=1


To use also without sealing cord. The groove and ridge gives the housing a high stability and tightness.
Use of regular nuts or square nuts
Define outer vertical radius of corners
Echo output in console shows inner and outer size and more
Echo output shows the needed length of the screws
Use screws from m2 up to m5
Default are 4 screws at each corner. For large cases add addtional ones in the middle of both x and y sides if needed
Use several predefined wall mount holder, some with multiple mounting holes (up to 3)

Important!
If you use standard nuts you need to pause the printer a certain level to insert the nuts
If you need a stable and waterproof case please print with 100% infill
I’m aware that sometimes, when using too big or too small parameters, there are some rendering issues.To prevent such issues change only one parameter at once and check the result.

I never tested the water proofness of this case. For more information see https://blog.prusaprinters.org/watertight-3d-printing-part-2_53638/

For Projects with ESP32, ESP8266, Arduino, Sonoff, IoBroker, IoT. In- and outdoor 🙂

use https://paypal.me/pbtec if you want to spend me a coold beer. Thanks in advance 🙂

The latest version 7.0 is currently still in the development phase.
There are the following improvements planned:
– Parameter to add a bit more countersink for the screws
– Nuts on bottom
– Use of tapping Screws (Parker screw)
– Use of Knurled Hot-melt Insert Nut
– Additional cuts to check inside of Screw/Nut

You can find the OpenScad File on Printables https://www.printables.com/model/72839-stable-and-waterproof-electronic-box-enclosure