-
Notifications
You must be signed in to change notification settings - Fork 297
/
carriage.scad
71 lines (66 loc) · 2.11 KB
/
carriage.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
include <configuration.scad>;
separation = 40;
thickness = 6;
horn_thickness = 13;
horn_x = 8;
belt_width = 5;
belt_x = 5.6;
belt_z = 7;
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() {
// Main body.
translate([0, 4, thickness/2])
cube([27, 40, thickness], center=true);
// Ball joint mount horns.
for (x = [-1, 1]) {
scale([x, 1, 1]) intersection() {
translate([0, 15, horn_thickness/2])
cube([separation, 18, horn_thickness], 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 = [-10, 10]) {
for (y = [-10, 10]) {
translate([x, y, thickness]) #
cylinder(r=m3_wide_radius, h=30, center=true, $fn=12);
}
}
// 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();