From d0fe54b4297c80413efa7ec15bd3a6f7200fe37e Mon Sep 17 00:00:00 2001 From: mattmcw Date: Thu, 2 Feb 2023 19:48:08 -0500 Subject: [PATCH] Add m5 nut to the common lib --- scad/common.scad | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/scad/common.scad b/scad/common.scad index 2761310..02f1ece 100644 --- a/scad/common.scad +++ b/scad/common.scad @@ -34,6 +34,10 @@ module trap_cube(height = 19, top_x = 30, top_y = 34, bottom_x = 45, bottom_y = echo("common.scad - R()"); function R (diameter) = diameter / 2.0; +module hex (diag = 10, h = 1) { + cylinder(r = diag / 2, h = h, center = true, $fn = 6); +} + echo("common.scad - m3_nut"); module m3_nut (H = 5) { cylinder(r=R(6.6), h=H, center=true, $fn=6); @@ -45,6 +49,11 @@ module m4_nut (H = 5, DIAG = 8.1) { hex(diag = DIAG, h = H); } +echo("common.scad - m5_nut"); +module m5_nut (H = 5, DIAG = 9.1) { + hex(diag = DIAG, h = H); +} + module opto_endstop(){ difference(){ union(){ @@ -73,14 +82,10 @@ module optoswitch() { color("gray")translate([6.63,0,0]) cube([4.45,11.3,6.3]); color("gray")translate([13.63,0,0]) cube([4.45,11.3,6.3]); } - for ( hole = [2.75,24.5-2.75] ){ + for ( hole = [2.75,24.5-2.75] ){ rotate([90,0,0]) translate([hole,6.4/2,-4]) cylinder(r=1.5, h=4.5,$fn=40); - } - } - } - - module hex (diag = 10, h = 1) { - cylinder(r = diag / 2, h = h, center = true, $fn = 6); + } + } } module NEMA17_motor_shaft (L = 22.75) {