|
@@ -1,4 +1,6 @@
|
1
|
1
|
|
|
2
|
+include <bearing_idler.scad>
|
|
3
|
+
|
2
|
4
|
// #######################################################
|
3
|
5
|
// ################### Linear Bearings ###################
|
4
|
6
|
// #######################################################
|
|
@@ -40,7 +42,13 @@ module lm8uu() {
|
40
|
42
|
|
41
|
43
|
// TODO add cable tie lm8uu mounting
|
42
|
44
|
|
43
|
|
-module y_carriage() {
|
|
45
|
+module generate_spacer(pos) {
|
|
46
|
+ color("green")
|
|
47
|
+ translate([pos[0], pos[1], -0.5])
|
|
48
|
+ bearing_spacer(pos[2] + 0.5 + ((idler_outer_height - bearing_height) / 2), 2);
|
|
49
|
+}
|
|
50
|
+
|
|
51
|
+module y_carriage(idler_a = [0, 0, 0], idler_b = [0, 0, 0]) {
|
44
|
52
|
$fn = 20;
|
45
|
53
|
|
46
|
54
|
// attaching to x-rails
|
|
@@ -104,7 +112,7 @@ module y_carriage() {
|
104
|
112
|
}
|
105
|
113
|
}
|
106
|
114
|
|
107
|
|
- color("yellow")
|
|
115
|
+ color("magenta")
|
108
|
116
|
translate([(lm8uu_outer + lm8uu_dia_add) / 2 + y_carriage_rail_support, 0, 0])
|
109
|
117
|
rotate([-90, 0, 0]) {
|
110
|
118
|
// y-bearings
|
|
@@ -113,26 +121,43 @@ module y_carriage() {
|
113
|
121
|
%translate([0, 0, y_carriage_length - lm8uu_height - y_carriage_rail_support])
|
114
|
122
|
lm8uu();
|
115
|
123
|
}
|
|
124
|
+
|
|
125
|
+ // idlers for the corexy belts
|
|
126
|
+ translate([0, 0, y_carriage_wall]) {
|
|
127
|
+ translate(idler_a)
|
|
128
|
+ bearing_idler();
|
|
129
|
+
|
|
130
|
+ translate(idler_b)
|
|
131
|
+ bearing_idler();
|
|
132
|
+
|
|
133
|
+ generate_spacer(idler_a);
|
|
134
|
+ generate_spacer(idler_b);
|
|
135
|
+ }
|
116
|
136
|
}
|
117
|
137
|
|
118
|
|
-/*
|
|
138
|
+draw_y_carriage = false;
|
|
139
|
+draw_rail_len = 100;
|
119
|
140
|
|
120
|
|
-translate([(lm8uu_outer + lm8uu_dia_add) / 2 + y_carriage_rail_support, 0, 0])
|
121
|
|
-rotate([-90, 0, 0]) {
|
122
|
|
- // y-bearings
|
123
|
|
- %translate([0, 0, y_carriage_rail_support])
|
124
|
|
- lm8uu();
|
125
|
|
- %translate([0, 0, y_carriage_length - lm8uu_height - y_carriage_rail_support])
|
126
|
|
- lm8uu();
|
127
|
|
-}
|
|
141
|
+if (draw_y_carriage) {
|
|
142
|
+ translate([(lm8uu_outer + lm8uu_dia_add) / 2 + y_carriage_rail_support, 0, 0])
|
|
143
|
+ rotate([-90, 0, 0]) {
|
|
144
|
+ // y-bearings
|
|
145
|
+ %translate([0, 0, y_carriage_rail_support])
|
|
146
|
+ lm8uu();
|
|
147
|
+ %translate([0, 0, y_carriage_length - lm8uu_height - y_carriage_rail_support])
|
|
148
|
+ lm8uu();
|
|
149
|
+ }
|
128
|
150
|
|
129
|
|
-// x-rails
|
130
|
|
-for (i = [y_carriage_len_add : x_rail_dist : x_rail_dist + y_carriage_len_add]) {
|
131
|
|
- %translate([y_carriage_width + 1, i, 0])
|
132
|
|
- rotate([0, 90, 0])
|
133
|
|
- cylinder(d = lm8uu_inner, h = 50);
|
134
|
|
-}
|
|
151
|
+ // x-rails
|
|
152
|
+ for (i = [y_carriage_len_add : x_rail_dist : x_rail_dist + y_carriage_len_add]) {
|
|
153
|
+ %translate([y_carriage_width + 1, i, 0])
|
|
154
|
+ rotate([0, 90, 0])
|
|
155
|
+ cylinder(d = lm8uu_inner, h = draw_rail_len);
|
|
156
|
+ }
|
135
|
157
|
|
136
|
|
-y_carriage();
|
|
158
|
+ y_carriage([15, 15, 10], [10, 65, 2]);
|
137
|
159
|
|
138
|
|
-*/
|
|
160
|
+ translate([(2 * y_carriage_width + y_carriage_block_width) + draw_rail_len -5, y_carriage_length, 0])
|
|
161
|
+ rotate([0, 0, 180])
|
|
162
|
+ y_carriage([15, 15, 10], [10, 65, 2]);
|
|
163
|
+}
|