rename nema->nema17, put shadow bearing on idlerholder
authorVáclav 'Ax' Hůla <axtheb@gmail.com>
Fri, 1 Jun 2012 15:30:12 +0000 (17:30 +0200)
committerVáclav 'Ax' Hůla <axtheb@gmail.com>
Fri, 1 Jun 2012 15:30:12 +0000 (17:30 +0200)
inc/functions.scad
x-end.scad
y-driverain.scad
z-axis.scad

index 26c8a1b..d71d580 100644 (file)
@@ -85,7 +85,7 @@ module cube_fillet_inside(size, radius=-1, vertical=[3,3,3,3], top=[0,0,0,0], bo
 }
 
 
-module nema(places=[0,1,1,1], size=15.5, h=10, holes=false, shadow=0, $fn=0){
+module nema17(places=[1,1,1,1], size=15.5, h=10, holes=false, shadow=0, $fn=0){
     for (i=[0:3]) {
         if (places[i] == 1) {
             rotate([0, 0, 90*i]) translate([size, size, 0]) {
@@ -97,7 +97,7 @@ module nema(places=[0,1,1,1], size=15.5, h=10, holes=false, shadow=0, $fn=0){
             }
         }
     }
-    if (shadow > 0) {
+    if (shadow) {
         %translate ([0, 0, shadow+21+3]) cube(size = [42,42,42], center = true);
     }
 }
index 0c10e1e..d7a92e7 100644 (file)
@@ -17,7 +17,7 @@ module x_end_motor(){
             // belt hole
             translate(v=[-30,1,0]) cube(size = [10,46,22], center = true);
             //motor mounting holes
-            translate(v=[-41, 0, 0]) rotate([90, 0, 0])  rotate([0, 90, 0]) nema(places=[1,1,1,1], holes=true, shadow=16, $fn=6, h=20);
+            translate(v=[-41, 0, 0]) rotate([90, 0, 0])  rotate([0, 90, 0]) nema17(places=[1,1,1,1], holes=true, shadow=16, $fn=6, h=20);
             translate(v=[0,0,0]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 80, r=18, $fn=6);
         }
     }
index 74ec498..ba5d408 100644 (file)
@@ -18,12 +18,12 @@ module motorholder(thickness=10){
                 difference(){
                     union(){
                         translate(v = [-21+4.5,0,5]) cube(size = [9,31,thickness], center=true);
-                        nema([0,1,1,0], thickness=thickness);
+                        nema17([0,1,1,0], thickness=thickness, shadow=true);
                         // Parts joining part
                         translate(v = [-29,-21,0]) cube(size = [14,30,thickness]);
                     }
                     // Motor mounting holes
-                    translate([0,0,thickness]) mirror([0,0,1]) nema([0,1,1,0], thickness=thickness, holes=true);
+                    translate([0,0,thickness]) mirror([0,0,1]) nema17([0,1,1,0], thickness=thickness, holes=true);
                 }
             }
 
@@ -48,7 +48,10 @@ module idlermount(support=false){
         translate(v = [8,8,-1]) cylinder(h = 120, r=idler_size_inner_r);
         translate(v = [8,33,-1])cylinder(h = 25, r=4.5);
 
-        translate(v = [8,8,4])cylinder(h = 11, r=(idler_size/2)+8);
+        translate(v = [8,8,4]) {
+            %translate([0,0,1]) cylinder(h = 9, r=(idler_size/2)+2*single_wall_width);
+            cylinder(h = 11, r=(idler_size/2)+8);
+        }
     }
     if (support) {
         translate([0,-2,15]) cube([16,16,0.4]);
index 5cd9067..9318460 100644 (file)
@@ -10,14 +10,14 @@ module zmotorholder(thickness=10){
                 union(){
                     zrodholder(thickness=thickness, xlen=45, ylen=45);
                     translate([board_to_xz_distance, board_to_xz_distance, 0]) {
-                        nema(places=[0,1,1,1]);
+                        nema17(places=[0,1,1,1]);
                     }
                 }
 
                 // motor screw holes
                 translate([board_to_xz_distance, board_to_xz_distance, thickness]) {
                     mirror([0,0,1]) 
-                    nema(places=[0,1,1,1], holes=true);
+                    nema17(places=[0,1,1,1], holes=true);
                 }
             }
         }