Customizable Enclosure / Housing OpenSCAD Library by tripptrapp 3d model
3dmdb logo
Thingiverse
Customizable Enclosure / Housing OpenSCAD Library by tripptrapp

Customizable Enclosure / Housing OpenSCAD Library by tripptrapp

by Thingiverse
Last crawled date: 4 years, 1 month ago
About
3D-FlexCase is a customizable OpenSCAD library for simple creation of electronic component housings / enclosures, such as your own PCBs, Arduino, Raspberry Pi, ESP6288, ESP32, etc.
The idea is to parameterize the basic housing and then add your specific extensions such as brackets, lead-throughs, etc.
Requirements
BOSL Library
This project uses the BOSL library. Please install this as described here.
Screws
Recommendation for screws to fix the cover on the tray:
4mm x 20mm flathead or
4mm x 25mm flathead
Installation
Download the .zip from github.com and extract
Rename directory 3d-flexcase-master to 3d-flexcase
Copy directory 3d-flexcase to the OpenSCAD library folder of your system
Restart OpenSCAD
Usage
A simple example how to use 3D-FlexCase in your OpenSCAD project:
use <3d-flexcase/FlexCase-Housing.scad>

$fn = 40;

//Customize parameters
//-------------------------------------------
enclosureWidth = 80;
enclusureLength = 120;
enclusureHeightTray = 30;
enclusureHeightCover = 3;
coverSleeveOverlap = 4.0;
hullThickness = 2;
cornerRadius = 2.5;
screwDiameter = 4;

// The cover of the housing:
translate([enclosureWidth / 2 + 10, 0, (enclusureHeightCover + coverSleeveOverlap/2])
cover(enclosureWidth, enclusureLength, enclusureHeightCover,coverSleeveOverlap, hullThickness, cornerRadius, screwDiameter);

// The tray of the housing:
translate([-enclosureWidth / 2 -10, 0, enclusureHeightTray/2])
tray(enclosureWidth, enclusureLength, enclusureHeightTray, hullThickness, cornerRadius, screwDiameter);
You might then want to extend, change the housing, e.g. by
adding mounts / brackets for PCBs
adding cable or LED lead-throughs
etc.
GitHub
Visit project on github.com

Tags