From dbcf6c1b6e6fed257ef92c9db4cf0c6a9eb0c611 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sat, 14 Jan 2023 18:38:07 -0500 Subject: [PATCH] Start a case for the electronics --- examples/JK_projector_takeup_case.scad | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 examples/JK_projector_takeup_case.scad diff --git a/examples/JK_projector_takeup_case.scad b/examples/JK_projector_takeup_case.scad new file mode 100644 index 0000000..affb7ac --- /dev/null +++ b/examples/JK_projector_takeup_case.scad @@ -0,0 +1,34 @@ +include <../common/common.scad>; + +module l289N_holes (r = 3/2 - .2, MOD_MOUNT = 0) { + $fn = 60; + DISTANCE = 36.5 + MOD_MOUNT; + H = 50; + translate([0, 0, 0]) cylinder(r = r, h = H * 5, center = true); + translate([DISTANCE, 0, 0]) cylinder(r = r, h = H * 5, center = true); + translate([DISTANCE, DISTANCE, 0]) cylinder(r = r, h = H * 5, center = true); + translate([0, DISTANCE, 0]) cylinder(r = r, h = H * 5, center = true); +} + +module l289N_mount () { + $fn = 60; + DISTANCE = 36.5; + H = 4; + THICKNESS = 3; + + module stand () { + cylinder(r1 = 4, r2 = 3, h = H, center = true); + cylinder(r = R(3.5), h = H + 5, center = true); + } + + translate([0, 0, 0]) stand(); + translate([DISTANCE, 0, 0]) stand(); + translate([DISTANCE, DISTANCE, 0]) stand(); + translate([0, DISTANCE, 0]) stand(); + difference () { + translate([DISTANCE/2, DISTANCE/2, -3]) rounded_cube([DISTANCE + 8, DISTANCE + 8, THICKNESS], 8, center = true); //base + translate([DISTANCE/2, DISTANCE/2, -3]) rounded_cube([DISTANCE - 5, DISTANCE - 5, THICKNESS+1], 10, center = true); //base + } +} + +l289N_mount(); \ No newline at end of file