forked from T3P3/kossel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
carriage_recirculating.scad
88 lines (81 loc) · 2.5 KB
/
carriage_recirculating.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
include <configuration.scad>;
separation = 40;
thickness = 6;
horn_thickness = 13;
horn_x = 8;
belt_width = 5;
belt_x = 5.6;
belt_z = 7;
plate_thickness = 7;
plate_y = -9;
plate_w = 29;
plate_h = 25;
outside_radius = 5;
module plate(h) {
minkowski() {
cube([plate_w, plate_h, 2], center=true);
cylinder(r1=outside_radius, r2=1, h=6, $fn=36);
}
}
module carriage() {
// Timing belt (up and down).
translate([-belt_x, 0, belt_z + belt_width/2]) %
cube([1.7, 100, belt_width], center=true);
translate([belt_x, 0, belt_z + belt_width/2]) %
cube([1.7, 100, belt_width], center=true);
difference() {
union() {
translate([0, plate_y, -3])
plate(plate_thickness);
// Main body.
translate([0, 4, thickness/2-2])
cube([27, 40, thickness+4], center=true);
// Ball joint mount horns.
for (x = [-1, 1]) {
scale([x, 1, 1]) intersection() {
translate([0, 15, horn_thickness/2-2])
cube([separation, 18, horn_thickness+4], center=true);
translate([horn_x, 16, horn_thickness/2]) rotate([0, 90, 0])
cylinder(r1=14, r2=2.5, h=separation/2-horn_x);
}
}
// Belt clamps.
difference() {
union() {
translate([6.5, -2.5, horn_thickness/2+1])
cube([14, 7, horn_thickness-2], center=true);
translate([10.75, 2.5, horn_thickness/2+1])
cube([5.5, 16, horn_thickness-2], center=true);
}
// Avoid touching diagonal push rods (carbon tube).
translate([20, -10, 12.5]) rotate([35, 35, 30])
cube([40, 40, 20], center=true);
}
for (y = [-12, 7]) {
translate([1.25, y, horn_thickness/2+1])
cube([7, 8, horn_thickness-2], center=true);
}
}
// Screws for linear slider.
for (x = [-plate_w/2, plate_w/2]) {
for (y = [-plate_h/2, plate_h/2]) {
translate([x, y+plate_y, 0]) #
cylinder(r=m3_wide_radius, h=30, center=true, $fn=12);
translate([x, y+plate_y, 0.5]) #
cylinder(r=4, h=30, $fn=24);
}
}
// Screws for ball joints.
translate([0, 16, horn_thickness/2]) rotate([0, 90, 0]) #
cylinder(r=m3_wide_radius, h=60, center=true, $fn=12);
// Lock nuts for ball joints.
for (x = [-1, 1]) {
scale([x, 1, 1]) intersection() {
translate([horn_x, 16, horn_thickness/2]) rotate([90, 0, -90])
cylinder(r1=m3_nut_radius, r2=m3_nut_radius+0.5, h=8,
center=true, $fn=6);
}
}
}
}
carriage();