From c9fb2c1531fd1430fb2034fa3edbb41f7b69b385 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 9 Jan 2024 19:59:04 +0100 Subject: mech: pcb_case: Add spacers Since a proper norm-based distance bolt was not found printing spacers is the easiest way to make the case producable independent of part availability. --- mech/pcb_case/spacer.scad | 10 ++++++++++ mech/production.scad | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 mech/pcb_case/spacer.scad diff --git a/mech/pcb_case/spacer.scad b/mech/pcb_case/spacer.scad new file mode 100644 index 0000000..e7eba3a --- /dev/null +++ b/mech/pcb_case/spacer.scad @@ -0,0 +1,10 @@ +include + +spacer_h = 11; + +module spacer() { + difference() { + cylinder(d=bolt_dk, h=spacer_h, $fn=30); + cylinder(d=bolt_ds+bolt_ds_tol, h=spacer_h, $fn=30); + } +} diff --git a/mech/production.scad b/mech/production.scad index 1485a39..7ca3051 100644 --- a/mech/production.scad +++ b/mech/production.scad @@ -5,6 +5,7 @@ use use use use +use module production() { dim = dim_pcb_to_case(pcb_dim, margins, t); @@ -26,6 +27,12 @@ module production() { rotate([0, -90, 0]) translate([2*t-dim[0], -t, -t]) panel_front(pcb_dim, margins, t); + + for(i = [0:3]) { + translate([dim[0]+bolt_dk/2+spacing, bolt_dk/2+i*(bolt_dk+spacing), 0]) { + spacer(); + } + } } production(); -- cgit v1.2.3-70-g09d2