Browse Source

Fix rail mounts

Thomas Buck 6 years ago
parent
commit
ec54c23392
3 changed files with 13 additions and 9 deletions
  1. 1
    1
      lib/bearing_idler.scad
  2. 2
    3
      lib/rail_mount.scad
  3. 10
    5
      xyRepRap.scad

+ 1
- 1
lib/bearing_idler.scad View File

@@ -110,7 +110,7 @@ module bearing_spacer_assembly(only_outer, top) {
110 110
         }
111 111
     }
112 112
     
113
-    echo(bearings_spacers_height=bearing_spacer_height);
113
+    //echo(bearings_spacers_height=bearing_spacer_height);
114 114
 }
115 115
 
116 116
 bearing_mount_wall = 8;

+ 2
- 3
lib/rail_mount.scad View File

@@ -6,13 +6,12 @@
6 6
 rail_mount_wall = 5;
7 7
 rail_mount_len = 10;
8 8
 rail_mount_block = 22;
9
-rail_mount_height = 11;
10
-
11 9
 rail_dia = 8;
12 10
 rail_y_off_1 = 10;
13
-
14 11
 cutout_width = 0.5;
15 12
 
13
+rail_mount_height = rail_y_off_1 + 6;
14
+
16 15
 module rail_mount(slot) {
17 16
     $fn = 20;
18 17
     

+ 10
- 5
xyRepRap.scad View File

@@ -219,14 +219,19 @@ module frame() {
219 219
 // ###################### Mechanics ######################
220 220
 // #######################################################
221 221
 
222
-rail_mount_dist = 10;
222
+rail_mount_dist = 12;
223
+
224
+module rail(length) {
225
+    cylinder(d = rail_dia, h = length);
226
+    echo(rail_dia=rail_dia, rail_len=length);
227
+}
223 228
 
224 229
 module y_rails() {
225 230
     // y smooth rail on blue side
226 231
     color("cyan")
227 232
     translate([rail_dia / 2 + rail_y_off_1, 18, -30])
228 233
         rotate([-90, 0, 0])
229
-        cylinder(d = rail_dia, h = outer_length - (2 * slot) - nema17_size - rail_mount_dist);
234
+        rail(outer_length - slot - nema17_size - (2 * rail_mount_dist));
230 235
     
231 236
     // some lm8uu bearings on red side
232 237
     color("yellow")
@@ -248,7 +253,7 @@ module y_rails() {
248 253
     color("cyan")
249 254
     translate([outer_width - (2 * slot) - rail_dia / 2 - rail_y_off_1, 18, -30])
250 255
         rotate([-90, 0, 0])
251
-        cylinder(d = rail_dia, h = outer_length - (2 * slot) - nema17_size - rail_mount_dist);
256
+        rail(outer_length - slot - nema17_size - (2 * rail_mount_dist));
252 257
     
253 258
     // some lm8uu bearings on red side
254 259
     color("yellow")
@@ -274,10 +279,10 @@ x_rail_dist = 50;
274 279
 module x_rails() {
275 280
     translate([30, 200, 15])
276 281
         rotate([0, 90, 0])
277
-        cylinder(d = rail_dia, h = outer_length - (4 * slot));
282
+        rail(outer_length - (4 * slot));
278 283
     translate([30, 200 + x_rail_dist, 15])
279 284
         rotate([0, 90, 0])
280
-        cylinder(d = rail_dia, h = outer_length - (4 * slot));
285
+        rail(outer_length - (4 * slot));
281 286
 }
282 287
 
283 288
 module motion_xy() {

Loading…
Cancel
Save