Adjust sprocket position

This commit is contained in:
Matt McWilliams 2024-09-14 20:17:25 -04:00
parent d94c0212e9
commit 9c87ad2233
1 changed files with 4 additions and 6 deletions

View File

@ -10,7 +10,6 @@ SprocketL = 1.5;
InnerH = 10.6; InnerH = 10.6;
TopBaseD = 18.47; TopBaseD = 18.47;
TopBaseC = (TopBaseD * PI) / 8; TopBaseC = (TopBaseD * PI) / 8;
TopBaseH = 2.96; TopBaseH = 2.96;
@ -31,7 +30,6 @@ echo(FrameC);
$fn = 100; $fn = 100;
module sprocket (pos = [0, 0, 0], rot = [0, 0, 0], bevel = false) { module sprocket (pos = [0, 0, 0], rot = [0, 0, 0], bevel = false) {
translate (pos) rotate(rot) { translate (pos) rotate(rot) {
difference () { difference () {
translate([0, 0, 0]) scale([1, 1, 2.25]) rotate([90, 0, 90]) cylinder(r = SprocketW/2, h = SprocketL, center = true); translate([0, 0, 0]) scale([1, 1, 2.25]) rotate([90, 0, 90]) cylinder(r = SprocketW/2, h = SprocketL, center = true);
@ -96,11 +94,13 @@ module sprocketed_wheel_m3_nut_void (pos = [0, 0, 0]) {
module sprocketed_roller_sprocket_wheel (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, D, bevel = false, bolts = false) { module sprocketed_roller_sprocket_wheel (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, D, bevel = false, bolts = false) {
translate(pos) rotate(rot) { translate(pos) rotate(rot) {
cylinder(r = R(D), h = SprocketBaseH, center = true); cylinder(r = R(D), h = SprocketBaseH, center = true);
translate([0, 0, 0.15]) {
for (i = [0: sprockets]) { for (i = [0: sprockets]) {
rotate([0, 0, i * 360 / sprockets]) sprocket([(D / 2) - .01, 0, (SprocketBaseH / 2) - (SprocketL / 2)], [0, 90, 0], bevel); rotate([0, 0, i * 360 / sprockets]) sprocket([(D / 2) - .01, 0, (SprocketBaseH / 2) - (SprocketL / 2)], [0, 90, 0], bevel);
} }
} }
} }
}
module sprocketed_roller_body (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false, adjust_base = 0) { module sprocketed_roller_body (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false, adjust_base = 0) {
D = (FrameC * sprockets) / PI; D = (FrameC * sprockets) / PI;
@ -170,7 +170,6 @@ module sprocketed_roller (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel
} }
} }
} }
} }
module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = true, model = "", bolts = false, nuts = false) { module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = true, model = "", bolts = false, nuts = false) {
@ -191,7 +190,6 @@ module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets
} }
} }
} }
} }
LIBRARY = false; LIBRARY = false;