From 7c64eded0e6ddac90096f777b9531a56b76264bd Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 28 Mar 2019 15:09:08 -0400 Subject: [PATCH] Fix various models for export and rotation during gif generation. --- .../16mm_sprocketed_roller.scad | 2 +- .../cmount_bellows_adapter.scad | 59 +++++++++++++++++++ models/lomo_spindle_top/lomo_spindle_top.scad | 4 +- .../steenbeck_notch_detector.scad | 3 +- 4 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 models/cmount_bellows_adapter/cmount_bellows_adapter.scad diff --git a/models/16mm_sprocketed_roller/16mm_sprocketed_roller.scad b/models/16mm_sprocketed_roller/16mm_sprocketed_roller.scad index 484398e..71db9b7 100644 --- a/models/16mm_sprocketed_roller/16mm_sprocketed_roller.scad +++ b/models/16mm_sprocketed_roller/16mm_sprocketed_roller.scad @@ -66,4 +66,4 @@ module sprocketed_roller (SPROCKETS = 8) { } } -sprocketed_roller(); \ No newline at end of file +rotate([0, 0, time]) sprocketed_roller(); \ No newline at end of file diff --git a/models/cmount_bellows_adapter/cmount_bellows_adapter.scad b/models/cmount_bellows_adapter/cmount_bellows_adapter.scad new file mode 100644 index 0000000..97a9947 --- /dev/null +++ b/models/cmount_bellows_adapter/cmount_bellows_adapter.scad @@ -0,0 +1,59 @@ +time = 0; + +module cmount_male(len = 4) { + inner_d = 23; + outer_d = 24.7; + f_inner_d = 25.4; + f_outer_d = 28.6; + translate ([0, 0, len / 2 ]) { + difference () { + union () { + cylinder(r = outer_d / 2, h = len, center = true); + } + cylinder(r = inner_d / 2, h = len + 1, center = true); + } + + difference () { + translate([0, 0, -(len / 2) - 1]) cylinder(r = f_outer_d / 2, h = 2, center = true); + translate([0, 0, -(len / 2) - 1]) cylinder(r1 = f_inner_d / 2, r2 = inner_d / 2, h = 3, center = true); + } + } +} + +module bellows_camera_board () { + H = 6; + difference () { + cube([60, 60, H], center = true); + //center + cylinder(r = 38 / 2, h = H + 1, center = true, $fn = 360); + //center bevels + translate([0, 0, 2.25]) cylinder(r1 = 36 / 2, r2 = 40 / 2, h = 1.5, center = true, $fn = 360); + translate([0, 0, -2.25]) cylinder(r1 = 40 / 2, r2 = 36 / 2, h = 1.5, center = true, $fn = 360); + //corners + for (i = [0 : 3]) { + rotate([0, 0, i * (360 / 4) + 45 ]) translate([43.5, 0, 0]) cube([11, 11, H + 1], center = true); + } + //bolt + translate([0, 30, 0]) rotate([90, 0, 0]) cylinder(r = 2.2, h = 30, center = true, $fn = 30); + } +} + +module camera_mount () { + $fn = 360; + cmount_male(5); + translate([0, 0, -4]) { + difference() { + cylinder(r = 42 / 2, h = 4, center = true); + cylinder(r = 26 / 2, h = 4 + 1, center = true); + } + } + translate([0, 0, -4 - 5]) { + difference() { + cylinder(r = 37.9 / 2, h = 7, center = true); + cylinder(r = 30 / 2, h = 7 + 1, center = true); + } + } +} + +//bellows_camera_board(); +translate([0, 0, 9]) rotate([0, 0, time]) camera_mount(); \ No newline at end of file diff --git a/models/lomo_spindle_top/lomo_spindle_top.scad b/models/lomo_spindle_top/lomo_spindle_top.scad index 0e74d82..e0fc306 100644 --- a/models/lomo_spindle_top/lomo_spindle_top.scad +++ b/models/lomo_spindle_top/lomo_spindle_top.scad @@ -1,4 +1,4 @@ -t = 0; +time = 0; include <../../libraries/threads.scad>; include <../../libraries/Triangles.scad>; @@ -99,4 +99,4 @@ module lomo_spindle_top () { } } -rotate([0, 0, t]) lomo_spindle_top(); \ No newline at end of file +rotate([0, 0, time]) lomo_spindle_top(); \ No newline at end of file diff --git a/models/steenbeck_notch_detector/steenbeck_notch_detector.scad b/models/steenbeck_notch_detector/steenbeck_notch_detector.scad index 5c879c0..efe1efc 100644 --- a/models/steenbeck_notch_detector/steenbeck_notch_detector.scad +++ b/models/steenbeck_notch_detector/steenbeck_notch_detector.scad @@ -1,3 +1,4 @@ +time = 0; IN = 25.4; module hex (r = 1, h = 1, center = false) { @@ -195,7 +196,7 @@ module steenbeck_notch_detector_base_dxf () { //rotate([0, -90, 0]) film_16mm(); //microswitch([0, 0, 25], [0, 90, 180]); -//translate([0, 0, 20 - 8]) color("blue") steenbeck_notch_detector(); +translate([0, 0, 20 - 8]) rotate([0, 0, time]) steenbeck_notch_detector(); //translate([-10, 0, -17.5]) steenbeck_notch_detector_base(); //notch_cup();