Use belt_tooth_distance from configuration.scad
authorAlessandro Ranellucci <aar@cpan.org>
Tue, 25 Sep 2012 17:51:01 +0000 (19:51 +0200)
committerAlessandro Ranellucci <aar@cpan.org>
Tue, 25 Sep 2012 17:51:01 +0000 (19:51 +0200)
configuration.scad-dist
src/x-carriage.scad
src/y-belt-holder.scad

index 40e12c5..cf268a8 100644 (file)
@@ -1 +1,19 @@
 x_rod_distance = 45;
+
+// Select your belt type ******************************************************
+
+//T2.5
+belt_tooth_distance = 2.5;
+belt_tooth_ratio = 0.5;
+
+//T5 (strongly discouraged)
+//belt_tooth_distance = 5;
+//belt_tooth_ratio = 0.75;
+
+//HTD3
+//belt_tooth_distance = 3;
+//belt_tooth_ratio = 0.75;
+
+//MXL
+//belt_tooth_distance = 2.032;
+//belt_tooth_ratio = 0.64;
index d391b0e..de42ca1 100644 (file)
@@ -30,7 +30,7 @@ module x_carriage_beltcut(){
  translate([-66,21.5+10,14]) rotate([45,0,0]) cube([67,15,15]);
  // Teeth cuts
  for ( i = [0 : 23] ){
-  translate([0-i*3,21.5+8,6]) cube([1.7,3,15]);
+  translate([0-i*belt_tooth_distance,21.5+8,6]) cube([1.7,3,15]);
  }
 }
 
index 4f723cc..673ee56 100644 (file)
@@ -5,6 +5,7 @@
 // http://www.reprap.org/wiki/Prusa_Mendel
 // http://prusamendel.org
 
+include <../configuration.scad>
 
 module belt_holder_base(){
  translate([-33-8.5,0,-1]) cube([33,15,16]); 
@@ -15,12 +16,12 @@ module belt_holder_base(){
 module belt_holder_beltcut(){
  position_tweak=-0.2;
  // Belt slit
- translate([-66,-0.5+10,3]) cube([67,1,15]);
+ translate([-66,-0.5+10,belt_tooth_distance]) cube([67,1,15]);
  // Smooth insert cutout
  translate([-66,-0.5+10,12]) rotate([45,0,0]) cube([67,15,15]);
  // Individual teeth
  for ( i = [0 : 23] ){
-  translate([0-i*3+position_tweak,-0.5+8,3]) cube([1.7,3,15]);
+  translate([0-i*belt_tooth_distance+position_tweak,-0.5+8,3]) cube([1.7,3,15]);
  }
  // Middle opening
  translate([-2-25,-1,3]) cube([4,11,15]);