From e7c8d9ab68c2e8e5d41b4018b9f33508e49d39c5 Mon Sep 17 00:00:00 2001 From: finn Date: Fri, 3 Jan 2025 18:49:14 -0700 Subject: [PATCH] simple keyboard spacer --- outdoor/triglide-d.scad | 12 ------------ pc/kbd_spacer.scad | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 pc/kbd_spacer.scad diff --git a/outdoor/triglide-d.scad b/outdoor/triglide-d.scad index 4f4a6cb..ee5e983 100644 --- a/outdoor/triglide-d.scad +++ b/outdoor/triglide-d.scad @@ -1,6 +1,4 @@ // triglide. Target 20mm -// -// // thickness rThick = 5; @@ -13,10 +11,8 @@ holeD = 10; // head curve hcDeep = 3; hcRad = 200; - // minkowski/fillet rad minkRad = 1.2; - $fn = 25; difference(){ @@ -31,22 +27,18 @@ minkowski(){ } } - // slot 1 translate([0, rThick + strapThick / 2, 0]){ cube([strapWide + 2 * minkRad, strapThick + 2 * minkRad, 99], center = true); } - // slot 2 translate([0, -1 * (rThick + strapThick), 0]){ cube([strapWide + 2 * minkRad, strapThick * 2 + 2 * minkRad, 99], center = true); } - // hole translate([0, strapThick + 1.5 * rThick + 8, 0]){ cylinder(d = holeD + 2 * minkRad, rThick * 2, center = true); } - // channel translate([0, -44 - rThick - strapThick, rThick - strapThick]){ cube([strapWide + 2 * minkRad, 88, strapThick + minkRad], center = true); @@ -58,18 +50,14 @@ minkowski(){ cylinder(r = hcRad, 99, center = true, $fn = 300); } } - } - // mink sphere(r = minkRad); } - // bottom translate([0, 0, -222]){ cube([222, 222, 444], center = true); } - } diff --git a/pc/kbd_spacer.scad b/pc/kbd_spacer.scad new file mode 100644 index 0000000..080a26f --- /dev/null +++ b/pc/kbd_spacer.scad @@ -0,0 +1,25 @@ +// Spacer between kbd plate and pcb +// ref: +// plate thick: 1.3 +// other spacer gap at edge: 3.7 + +screwDiam=2.2; +eeWidth=5; +thickness=3.7; + +$fn = 40; + +difference(){ + + cube([eeWidth, eeWidth, thickness * 2], center=true); + + translate([0, 0, -22]){ + cylinder(d=screwDiam, 44); + } + + translate([0, 0, -22]){ + cube([44, 44, 44], center=true); + } + + + }