tevo-tarantula-updates/Y Carriage/e3d v6.scad

128 lines
3.1 KiB
OpenSCAD
Raw Normal View History

$fn = 100;
2021-08-21 11:52:35 +00:00
part = "cover";
//translate([4,4,0])
// translate([11,11,0])
// e3d_v6();
2021-08-21 11:52:35 +00:00
color("red") {
// translate([25,15,35])
// rotate([90,0,0])
// screw_mount(length=20, nut_size=6, screw_size=3, nut = "square");
// screw_mounts();
}
color("green") {
difference() {
// part
2021-08-21 11:52:35 +00:00
if (part == "mount") {
translate([0, 0, 0])
cube([30, 15, 42.5]);
} else if (part == "cover") {
translate([0, 15, 0])
cube([30, 15, 39]);
}
// space for fan mount
translate([40, 0, 0])
rotate([0, - 90, 0])
fan_mount();
// space for extruder
translate([4, 4, 0])
translate([11, 11, 0])
e3d_v6();
2021-08-21 11:52:35 +00:00
screw_mounts();
}
}
module e3d_v6() {
h0 = - 14;
translate([- 8, - 3.5, h0])
cube([16, 20, 12]);
h1 = h0 + 12;
translate([0, 0, h1])
cylinder(d = 3, h = 2);
h2 = h1 + 2;
translate([0, 0, h2])
cylinder(d = 22, h = 26);
h3 = h2 + 26;
translate([0, 0, h3])
cylinder(d = 16, h = 7);
h4 = h3 + 7;
translate([0, 0, h4])
cylinder(d = 12, h = 6);
h5 = h4 + 6;
translate([0, 0, h5])
cylinder(d = 16, h = 3.5);
h6 = h5 + 3.5;
translate([0, 0, h6])
cylinder(d = 11.5, h = 6.5, $fn = 6);
}
module fan_mount() {
cube([30, 30, 10]);
// screw holes
translate([1.5 + 1.5, 1.5 + 1.5, 10])
cylinder(d = 3, h = 5);
translate([30 - (1.5 + 1.5), 1.5 + 1.5, 10])
cylinder(d = 3, h = 5);
translate([1.5 + 1.5, 30 - (1.5 + 1.5), 10])
cylinder(d = 3, h = 5);
2021-08-21 01:14:04 +00:00
// fan duct
translate([1, 1, 0])
translate([14, 14, 0])
cylinder(d1 = 28, d2 = 22, h = 25);
2021-08-21 11:50:51 +00:00
}
module screw_mounts() {
2021-08-21 11:52:35 +00:00
// cover mount
2021-08-21 11:50:51 +00:00
translate([1.5, 24, 29])
2021-08-21 11:52:35 +00:00
rotate([90, 0, 0]) {
2021-08-21 11:50:51 +00:00
screw_mount(length = 17, nut_size = 6, screw_size = 3, nut = "square");
2021-08-21 11:52:35 +00:00
translate([1.5, 1.5, - 20])
cylinder(d = 6, h = 20);
}
2021-08-21 11:50:51 +00:00
translate([25.5, 24, 29])
2021-08-21 11:52:35 +00:00
rotate([90, 0, 0]) {
2021-08-21 11:50:51 +00:00
screw_mount(length = 17, nut_size = 6, screw_size = 3, nut = "square");
2021-08-21 11:52:35 +00:00
translate([1.5, 1.5, - 20])
cylinder(d = 6, h = 20);
}
2021-08-21 11:50:51 +00:00
2021-08-21 11:52:35 +00:00
// X carriage mount
2021-08-21 11:50:51 +00:00
translate([2, 15, 35])
rotate([90, 0, 0])
screw_mount(length = 20, nut_size = 6, screw_size = 3, nut = "none");
translate([25, 15, 35])
rotate([90, 0, 0])
screw_mount(length = 20, nut_size = 6, screw_size = 3, nut = "none");
}
module screw_mount(length, nut_size, screw_size, nut = "none") {
translate([screw_size / 2, screw_size / 2, 0]) {
cylinder(d = screw_size + 3, h = screw_size);
cylinder(d = screw_size, h = length);
if (nut == "hexagon") {
translate([0, 0, length - 3])
cylinder(d = nut_size, h = 3, $fn = 6);
} else if (nut == "square") {
translate([- nut_size / 2, - nut_size / 2, length - 3])
cube([nut_size, nut_size, 3]);
}
}
}