diff --git a/case/48ish_case.scad b/case/48ish_case.scad index 48723b7..c475bc7 100644 --- a/case/48ish_case.scad +++ b/case/48ish_case.scad @@ -29,6 +29,14 @@ module shell () { } module standoffs () { + // for M2 3x3 standoffs + hole_diameter = 3; + hole_depth = 3 * 1.5; + wall_thickness = 1; + + // offsets the top of the standoffs down from where the pcb will actually rest; this allows the screws to actually hold the pcb down against the outer lip of the case and prevent rattling if the pcb is not perfectly flat + standoff_top_face_offset = -0.25; + for (point = [ [17 + 18 * 0, 16.5 + 17 * 0], [17 + 18 * 2, 16.5 + 17 * 2], @@ -38,9 +46,9 @@ module standoffs () { [17 + 18 * 8, 16.5 + 17 * 2], [17 + 18 * 10, 16.5 + 17 * 0], ]) { - translate([point.x, point.y, baseplate_thickness - 0.1]) difference() { - cylinder(h = inner_clearance + .1, d = 5); - translate([0, 0, inner_clearance + .1 - 3 * 1.5]) cylinder(h = 3 * 1.5 + .2, d = 3); // hole inner - adjust for insert size + translate([point.x, point.y, baseplate_thickness - 0.01]) difference() { + cylinder(h = inner_clearance + standoff_top_face_offset + .01, d = hole_diameter + 2*wall_thickness); + translate([0, 0, inner_clearance + standoff_top_face_offset + .1 - hole_depth]) cylinder(h = hole_depth + .02, d = hole_diameter); // hole inner - adjust for insert size } } }