From b702929e1f88470169012ed0a26495cf18e40309 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 7 Jul 2020 11:54:20 -0400 Subject: [PATCH] cases work --- scad/camera_controller_mod.scad | 28 +++++++++++++++++++++++++++- scad/dc_plug_cheat.scad | 31 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 scad/dc_plug_cheat.scad diff --git a/scad/camera_controller_mod.scad b/scad/camera_controller_mod.scad index 69db422..3d08887 100644 --- a/scad/camera_controller_mod.scad +++ b/scad/camera_controller_mod.scad @@ -1,3 +1,5 @@ +PART = ""; + MOUNT_DIST = 28 - .5; MOUNT_ANGLE = 125; MOUNT_W = 12; @@ -258,10 +260,34 @@ module sizing() { } } +module nano_mount () { + X = 17.6; + Y = 43.3; + Z = 5; + difference () { + cube([X + 6, Y + 6, Z + 3], center = true); + //center void + cube([X, Y, Z + 4], center = true); + //usb + translate([0, (Y / 2) + 1.5, Z / 2]) { + cube([7.5, 4, 3], center = true); + } + } + + translate([(X / 2) - 1, (Y / 2) - 1, -1.5]) cube([3, 3, Z], center = true); + translate([-(X / 2) + 1, (Y / 2) - 1, -1.5]) cube([3, 3, Z], center = true); + translate([(X / 2) - 1, -(Y / 2) + 1, -1.5]) cube([3, 3, Z], center = true); + translate([-(X / 2) + 1, -(Y / 2) + 1, -1.5]) cube([3, 3, Z], center = true); +} + +if (PART == "") { + nano_mount(); +} + //sizing(); //l289N_mount(); -translate([-one_to_one_x, -one_to_one_y, -27]) motor_key_120(); +//translate([-one_to_one_x, -one_to_one_y, -27]) //motor_key_120(); //geared_motor_mount_120(); difference () { diff --git a/scad/dc_plug_cheat.scad b/scad/dc_plug_cheat.scad new file mode 100644 index 0000000..b8e1b14 --- /dev/null +++ b/scad/dc_plug_cheat.scad @@ -0,0 +1,31 @@ +module top () { + $fn = 120; + ID = 11.5; + VOID = 15; + OD = 19; + H = 11; + difference () { + cylinder(r = OD / 2, h = H, center = true); + cylinder(r = ID / 2, h = H + 1, center = true); + translate([0, 0, -2]) cylinder(r = VOID / 2, h = H, center = true); + } +} + +module bottom () { + $fn = 120; + difference () { + cylinder(r2 = 19 / 2, r1 = 10 / 2, h = 15, center = true); + cylinder(r2 = 14.9 / 2, r1 = 6 / 2, h = 15.1, center = true); + } + translate([0, 0, 6.5]) difference () { + cylinder(r = 14.9 / 2, h = 4, center = true); + cylinder(r = 13 / 2, h = 4 + 1, center = true); + + } +} + +//top(); +translate([0, 0, -19]) difference () { + bottom(); + //translate([0, 20, 0]) cube([40, 40, 40], center = true); +} \ No newline at end of file