diff --git a/Y Carriage/Y Carriage.scad b/X Carriage/X Carriage.scad similarity index 52% rename from Y Carriage/Y Carriage.scad rename to X Carriage/X Carriage.scad index 9df1548..7535b40 100644 --- a/Y Carriage/Y Carriage.scad +++ b/X Carriage/X Carriage.scad @@ -15,7 +15,7 @@ module base() { difference() { union() { block_with_fillet(width, depth, thickness, 10); - cube([width, 10, thickness]); + mount(); } big_holes(); small_holes(); @@ -61,4 +61,44 @@ module block_with_fillet(width, depth, height, fillet) { translate([fillet, fillet, 0]) cylinder(r = fillet, h = height / 2); } +} + +module mount() { + translate([(width - 30) / 2, 0]) { + // cube([30,thickness,30]); + + rotate([90, 0, 0]) { + difference() { + union() { + block_with_fillet(30, 30, thickness, 10); + cube([30, 10, thickness]); + } + + union() { + translate([2, 20, 10]) + rotate([180, 0, 0]) + screw_mount(length = 10, nut_size = 6, screw_size = 3, nut = "hexagon"); + + translate([25, 20, 10]) + rotate([180, 0, 0]) + screw_mount(length = 10, nut_size = 6, screw_size = 3, nut = "hexagon"); + } + } + } + + } +} + +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]); + } + } } \ No newline at end of file diff --git a/X Carriage/X Carriage.stl b/X Carriage/X Carriage.stl new file mode 100644 index 0000000..62d2217 Binary files /dev/null and b/X Carriage/X Carriage.stl differ diff --git a/Y Carriage/e3d v6.scad b/X Carriage/e3d v6.scad similarity index 100% rename from Y Carriage/e3d v6.scad rename to X Carriage/e3d v6.scad diff --git a/Y Carriage/hotentd cover.stl b/X Carriage/hotentd cover.stl similarity index 100% rename from Y Carriage/hotentd cover.stl rename to X Carriage/hotentd cover.stl diff --git a/Y Carriage/hotentd mount.stl b/X Carriage/hotentd mount.stl similarity index 100% rename from Y Carriage/hotentd mount.stl rename to X Carriage/hotentd mount.stl