2023-04-02 02:51:24 +00:00
|
|
|
include <./common/common.scad>;
|
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
SprocketBaseD = 19.05; //8 frames
|
|
|
|
SprocketBaseH = 2.7;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
InnerD = 13.98;
|
|
|
|
InnerH = 10.6;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
TopBaseD = 18.47;
|
|
|
|
TopBaseH = 2.96;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
LipD = 18.84;
|
|
|
|
LipH = 0.33;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
HollowD = 4.7;
|
|
|
|
HollowBaseD = 12.01;
|
|
|
|
HollowBaseH = 6.09;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
TopD = 21.66;
|
|
|
|
TopH = 1.4;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
SprocketH = 10;
|
|
|
|
SprocketW = 0.79;
|
|
|
|
SprocketL = 1.3;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
FrameC = (SprocketBaseD * PI) / 8;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
|
|
|
$fn = 100;
|
2023-03-31 22:33:27 +00:00
|
|
|
module sprocket (pos = [0, 0, 0], rot = [0, 0, 0], bevel = false) {
|
|
|
|
//cube([SprocketL, SprocketW, SprocketH], center = true);
|
|
|
|
translate (pos) rotate(rot) {
|
2018-07-14 14:29:43 +00:00
|
|
|
difference () {
|
2023-03-31 22:33:27 +00:00
|
|
|
translate([0, 0, 0]) scale([1, 1, 2.25]) rotate([90, 0, 90]) cylinder(r = SprocketW/2, h = SprocketL, center = true);
|
2018-07-14 14:29:43 +00:00
|
|
|
translate([0, 0, -1]) cube([2, 2, 2], center = true);
|
2023-03-31 22:33:27 +00:00
|
|
|
if (bevel) {
|
|
|
|
translate([1.5, 0, 0]) rotate([0, -5, 0]) cube([2, 2, 2], center = true);
|
|
|
|
translate([-1.5, 0, 0]) rotate([0, 5, 0]) cube([2, 2, 2], center = true);
|
|
|
|
}
|
2018-07-14 14:29:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-31 22:33:27 +00:00
|
|
|
module sprocketed_roller (pos = [0, 0, 0], bevel = false) {
|
2023-04-02 02:51:24 +00:00
|
|
|
SoundtrackH = (TopBaseH / 2) + InnerH + (SprocketBaseH / 2);
|
2023-03-31 22:33:27 +00:00
|
|
|
translate(pos) {
|
|
|
|
difference () {
|
|
|
|
union () {
|
2023-04-02 02:51:24 +00:00
|
|
|
//sprocket base
|
|
|
|
cylinder(r = R(SprocketBaseD), h = SprocketBaseH, center = true);
|
|
|
|
//center
|
|
|
|
translate([0, 0, (InnerH / 2) + (SprocketBaseH / 2)]) cylinder(r = R(InnerD), h = InnerH, center = true);
|
|
|
|
//soundtrack area
|
|
|
|
translate([0, 0, SoundtrackH]) cylinder(r = R(TopBaseD), h = TopBaseH, center = true);
|
|
|
|
translate([0, 0, SoundtrackH - (TopBaseH / 2) + (LipH / 2)]) cylinder(r = R(LipD), h = LipH, center = true);
|
|
|
|
translate([0, 0, SoundtrackH + (TopBaseH / 2) - (LipH / 2)]) cylinder(r = R(LipD), h = LipH, center = true);
|
|
|
|
translate([0, 0, SoundtrackH + (TopH / 2) + (TopBaseH / 2) - (LipH / 2)]) cylinder(r = R(TopD), h = TopH, center = true);
|
2023-03-31 22:33:27 +00:00
|
|
|
}
|
|
|
|
cylinder(r = HollowD / 2, h = 100, center = true);
|
2023-04-02 02:51:24 +00:00
|
|
|
translate([0, 0, (HollowBaseH / 2) - (SprocketBaseH / 2)]) cylinder(r = R(HollowBaseD), h = HollowBaseH + 0.1, center = true);
|
2023-03-31 22:33:27 +00:00
|
|
|
}
|
|
|
|
for (i = [0: 8]) {
|
|
|
|
rotate([0, 0, i * 360 / 8]) sprocket([(SprocketBaseD / 2) -.01, 0, (SprocketBaseH / 2) - (SprocketL / 2)], [0, 90, 0], bevel);
|
2018-07-14 14:29:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-31 22:33:27 +00:00
|
|
|
sprocketed_roller( bevel = true);
|