Live watertight snap-fit enclosure configurator. Generates compliant OpenSCAD source and STL.
// A-IVM Parametric IoT Sensor Snap-Fit Enclosure
pcb_width = 45.0;
pcb_length = 65.0;
pcb_height = 1.6;
wall_thickness = 2.0;
corner_radius = 3.0;
tolerance = 0.15;
module base_shell() {
difference() {
hull() {
for (x = [corner_radius, pcb_length + 2*wall_thickness - corner_radius]) {
for (y = [corner_radius, pcb_width + 2*wall_thickness - corner_radius]) {
translate([x, y, 0]) cylinder(r=corner_radius, h=16, $fn=32);
}
}
}
translate([wall_thickness, wall_thickness, wall_thickness])
cube([pcb_length, pcb_width, 18]);
}
}
base_shell();