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
         }
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
 bearing_mount_wall = 8;
116
 bearing_mount_wall = 8;

+ 2
- 3
lib/rail_mount.scad View File

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

+ 10
- 5
xyRepRap.scad View File

219
 // ###################### Mechanics ######################
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
 module y_rails() {
229
 module y_rails() {
225
     // y smooth rail on blue side
230
     // y smooth rail on blue side
226
     color("cyan")
231
     color("cyan")
227
     translate([rail_dia / 2 + rail_y_off_1, 18, -30])
232
     translate([rail_dia / 2 + rail_y_off_1, 18, -30])
228
         rotate([-90, 0, 0])
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
     // some lm8uu bearings on red side
236
     // some lm8uu bearings on red side
232
     color("yellow")
237
     color("yellow")
248
     color("cyan")
253
     color("cyan")
249
     translate([outer_width - (2 * slot) - rail_dia / 2 - rail_y_off_1, 18, -30])
254
     translate([outer_width - (2 * slot) - rail_dia / 2 - rail_y_off_1, 18, -30])
250
         rotate([-90, 0, 0])
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
     // some lm8uu bearings on red side
258
     // some lm8uu bearings on red side
254
     color("yellow")
259
     color("yellow")
274
 module x_rails() {
279
 module x_rails() {
275
     translate([30, 200, 15])
280
     translate([30, 200, 15])
276
         rotate([0, 90, 0])
281
         rotate([0, 90, 0])
277
-        cylinder(d = rail_dia, h = outer_length - (4 * slot));
282
+        rail(outer_length - (4 * slot));
278
     translate([30, 200 + x_rail_dist, 15])
283
     translate([30, 200 + x_rail_dist, 15])
279
         rotate([0, 90, 0])
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
 module motion_xy() {
288
 module motion_xy() {

Loading…
Cancel
Save