From ac040094cf098a6972f73cf6666a9ba826180b28 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 25 Sep 2012 19:51:01 +0200 Subject: [PATCH] Use belt_tooth_distance from configuration.scad --- configuration.scad-dist | 18 ++++++++++++++++++ src/x-carriage.scad | 2 +- src/y-belt-holder.scad | 5 +++-- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/configuration.scad-dist b/configuration.scad-dist index 40e12c5..cf268a8 100644 --- a/configuration.scad-dist +++ b/configuration.scad-dist @@ -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; diff --git a/src/x-carriage.scad b/src/x-carriage.scad index d391b0e..de42ca1 100644 --- a/src/x-carriage.scad +++ b/src/x-carriage.scad @@ -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]); } } diff --git a/src/y-belt-holder.scad b/src/y-belt-holder.scad index 4f723cc..673ee56 100644 --- a/src/y-belt-holder.scad +++ b/src/y-belt-holder.scad @@ -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]); -- 2.20.1