From 1fe71cefca997090d5d0e1e760649ff10b9bfafb Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 16 Apr 2019 15:26:41 -0400 Subject: [PATCH] Two cases --- hardware/scad/arduino_sainsmart8_case.scad | 27 +++++--- .../arduino_sainsmart8_sainsmart4_case.scad | 63 +++++++++++++++++++ 2 files changed, 81 insertions(+), 9 deletions(-) create mode 100644 hardware/scad/arduino_sainsmart8_sainsmart4_case.scad diff --git a/hardware/scad/arduino_sainsmart8_case.scad b/hardware/scad/arduino_sainsmart8_case.scad index 36f61ca..cb6b03c 100644 --- a/hardware/scad/arduino_sainsmart8_case.scad +++ b/hardware/scad/arduino_sainsmart8_case.scad @@ -15,9 +15,11 @@ module arduino () { } } -difference () { +projection () difference () { $fn = 60; Box2D([150, 150, 46], center = true); + + //sainsmart 8 translate([10, 43, 0]) { translate([0, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); translate([0, 121.5, 0]) cylinder(r = 3 / 2, h = 10, center = true); @@ -25,14 +27,21 @@ difference () { translate([52, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); } - translate([-65, 112, 0]) { - translate([0, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); - translate([0, 52, 0]) cylinder(r = 3 / 2, h = 10, center = true); - translate([62, 52, 0]) cylinder(r = 3 / 2, h = 10, center = true); - translate([62, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); - } + //arduino translate([-40, 64, 0]) arduino(); - translate([-50, 46 / 2 - 9 ,0]) cube([18, 13, 20], center = true); - translate([-20, 46 / 2 - 9 ,0]) cylinder(r = 10 / 2, h= 30, center = true); + translate([-50, 46 / 2 - 9, 0]) cube([18, 18, 20], center = true); + translate([-19, 46 / 2 - 9 - 3, 0]) cylinder(r = 10 / 2, h= 30, center = true); + translate([-19, 46 / 2 - 9 - 3 + 5, 0]) cube([10, 10, 30], center = true); + + //wires + + translate([120, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([120, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); + + translate([150, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([150, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); + + translate([180, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([180, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); } diff --git a/hardware/scad/arduino_sainsmart8_sainsmart4_case.scad b/hardware/scad/arduino_sainsmart8_sainsmart4_case.scad new file mode 100644 index 0000000..f0feef6 --- /dev/null +++ b/hardware/scad/arduino_sainsmart8_sainsmart4_case.scad @@ -0,0 +1,63 @@ +include <./box_laser.scad>; + +module arduino () { + X = 53.5; + Y = 68.75; + Z = 22.5; + //cube([X, Y, Z], center = true); + translate ([-27, -39, 0]) { + translate([ 2.54, 15.24 , 0]) cylinder(r = 3.5 / 2, h = 100, center = true); + translate([ 17.78, 66.04 , 0]) cylinder(r = 3.5 / 2, h = 100, center = true); + translate([ 45.72, 66.04 ,0]) cylinder(r = 3.5 / 2, h = 100, center = true); + translate([ 50.8, 13.97 ,0]) cylinder(r = 3.5 / 2, h = 100, center = true); + + //cylinder(r = 3.5 / 2, h = 100, center = true); + } +} + +projection () difference () { + $fn = 60; + Box2D([150, 150, 46], center = true); + + //sainsmart 8 + translate([10, 43, 0]) { + translate([0, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); + translate([0, 121.5, 0]) cylinder(r = 3 / 2, h = 10, center = true); + translate([52, 121.5, 0]) cylinder(r = 3 / 2, h = 10, center = true); + translate([52, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); + } + //sainsmart 4 + translate([-65, 112, 0]) { + translate([0, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); + translate([0, 52, 0]) cylinder(r = 3 / 2, h = 10, center = true); + translate([62, 52, 0]) cylinder(r = 3 / 2, h = 10, center = true); + translate([62, 0, 0]) cylinder(r = 3 / 2, h = 10, center = true); + } + //arduino + translate([-40, 64, 0]) arduino(); + translate([-50, 46 / 2 - 9, 0]) cube([18, 18, 20], center = true); + translate([-19, 46 / 2 - 9 - 3 ,0]) cylinder(r = 10 / 2, h= 30, center = true); + translate([-19, 46 / 2 - 9 - 3 + 5 ,0]) cube([10, 10, 30], center = true); + + //wires + + translate([120, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([120, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); + + translate([150, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([150, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); + + translate([180, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([180, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); + + //wires + + translate([120 + 150, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([120 + 150, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); + + translate([150 + 150, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([150 + 150, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); + + translate([180 + 150, 46 / 2 - 12, 0]) cylinder(r = 5 / 2, h= 30, center = true); + translate([180 + 150, 46 / 2 - 12 + 7, 0]) cube([5, 14, 30], center = true); +}