From a6b7ba1a826698a2a8f69d56a01547aef480690e Mon Sep 17 00:00:00 2001 From: mattmcw Date: Wed, 10 May 2023 19:55:17 -0400 Subject: [PATCH] Configure side screw separate from top screw --- common | 2 +- sprocketed_roller_var.scad | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/common b/common index 890aa4f..257ddc1 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 890aa4f1633ba5507bd23e37dc2333de8ce5ae45 +Subproject commit 257ddc18bf17a2943d1cb465c68cb0949f8274b1 diff --git a/sprocketed_roller_var.scad b/sprocketed_roller_var.scad index 9d8b3b9..91be7e8 100644 --- a/sprocketed_roller_var.scad +++ b/sprocketed_roller_var.scad @@ -154,7 +154,7 @@ module sprocketed_roller_body (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, } } -module sprocketed_roller (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false, model = "", set_screw_top = false) { +module sprocketed_roller (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false, model = "", set_screw_side = true, set_screw_top = false) { D = (FrameC * sprockets) / PI; difference () { union () { @@ -165,7 +165,8 @@ module sprocketed_roller (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel translate(pos) rotate(rot) translate([0, 0, 10]) gearbox_motor_shaft_void(); if (set_screw_top) { translate(pos) rotate(rot) rotate([180, 0, 0]) m3_bolt_void([0, 0, -11]); - } else { + } + if (set_screw_side) { translate(pos) rotate(rot) m3_nut_void(pos=[D/4, 0, 8.5], rot = [90, 0, 90], H = D/2); } } @@ -191,9 +192,7 @@ module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets LIBRARY = false; PART = "sprocketed_roller_reinforced"; if (!LIBRARY && PART == "sprocketed_roller_reinforced") { - rotate([180, 0, 0]) sprocketed_roller(sprockets = 18, bevel = false, model = "gearbox_motor", reinforced = true, bolts = true, set_screw_top = true); + rotate([180, 0, 0]) sprocketed_roller(sprockets = 18, bevel = false, model = "gearbox_motor", reinforced = true, bolts = true, set_screw_top = true, set_screw_side = true); } else if (!LIBRARY && PART == "sprocketed_wheel") { rotate([180, 0, 0]) color("red") sprocketed_roller_reinforced(sprockets = 18, bevel = false, model = "gearbox_motor", bolts = true); } - -