From e98007cfdbe06618820eb11f36853a875f00c929 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Saura Date: Mon, 29 Dec 2014 03:27:54 +0100 Subject: [PATCH] Parameterized tolerances for the gears --- Source_files/Cycl_X_frames.scad | 6 +++--- Source_files/Cycl_Y_frames.scad | 6 +++--- Source_files/Cyclone.scad | 2 +- Source_files/configs/Default_config.h | 2 +- Source_files/libs/standard_parts.scad | 16 +++++++++------- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/Source_files/Cycl_X_frames.scad b/Source_files/Cycl_X_frames.scad index 5e8a723..e3762a2 100644 --- a/Source_files/Cycl_X_frames.scad +++ b/Source_files/Cycl_X_frames.scad @@ -296,7 +296,7 @@ module Cyclone_X_rightFrame(isLeft=false) { rotate([0,0,45]) nut(size=rodNutSize, chamfer=true, echoPart=true); if(Render_X_rodGear) { rotate([0,-90,0]) color(color_movingPart) - cyclone_rod_gear(Gear_N_Teeth=X_rodGearRatio,gearHeight=X_gear_thickness,nutSize=8,tolerance=0); + cyclone_rod_gear(Gear_N_Teeth=X_rodGearRatio, gearHeight=X_gear_thickness, nutSize=8, tolerance=screwHoleTolerance); } } // Translate to motor position @@ -308,11 +308,11 @@ module Cyclone_X_rightFrame(isLeft=false) { if(Render_X_motorGear) { translate([X_threaded_rod_bearingDepth+(2*rod_nut_len)-(nut_separation/2)-2,0,0]) rotate([0,-90,0]) color(color_movingPart) - cyclone_motor_gear(Gear_N_Teeth=X_motorGearRatio,gearHeight=X_gear_thickness,tolerance=0); + cyclone_motor_gear(Gear_N_Teeth=X_motorGearRatio, gearHeight=X_gear_thickness, tolerance=screwHoleTolerance); } } } - if(Render_Y_gearCover) { + if(Render_X_gearCover) { // Draw the X gear cover translate([0.1,0,0]) color(color_stillPart) Cyclone_XsubPart_gearCover(); diff --git a/Source_files/Cycl_Y_frames.scad b/Source_files/Cycl_Y_frames.scad index dcde2ea..2b44a8d 100644 --- a/Source_files/Cycl_Y_frames.scad +++ b/Source_files/Cycl_Y_frames.scad @@ -232,8 +232,8 @@ module Cyclone_Y_frontFrame() { stepperMotor(screwHeight=motorWallSeparation, echoPart=true); if(Render_Y_motorGear) { translate([0,-(bearing_width-bearingDepth)-motorWallSeparation-nut_separation,0]) - rotate([-90,180,0]) color(color_movingPart) - cyclone_motor_gear(Gear_N_Teeth=Y_motorGearRatio,gearHeight=gear_thickness,tolerance=0); + rotate([-90,180,0]) color(color_movingPart) + cyclone_motor_gear(Gear_N_Teeth=Y_motorGearRatio, gearHeight=gear_thickness, tolerance=screwHoleTolerance); } } } @@ -251,7 +251,7 @@ module Cyclone_Y_frontFrame() { if(Render_Y_rodGear) { translate([0,2*rod_nut_len-(nut_separation/2),0]) rotate([-90,0,0]) color(color_movingPart) - cyclone_rod_gear(Gear_N_Teeth=Y_rodGearRatio,gearHeight=gear_thickness,nutSize=Y_threaded_rodNutSize,tolerance=0); + cyclone_rod_gear(Gear_N_Teeth=Y_rodGearRatio, gearHeight=gear_thickness, nutSize=Y_threaded_rodNutSize, tolerance=screwHoleTolerance); } translate([0,rod_nut_len+gear_thickness-nut_separation,0]) rotate([-90,0,0]) nut(size=rodNutSize, echoPart=true); diff --git a/Source_files/Cyclone.scad b/Source_files/Cyclone.scad index c12eba5..e1da918 100644 --- a/Source_files/Cyclone.scad +++ b/Source_files/Cyclone.scad @@ -116,7 +116,7 @@ render_2D_or_3D() { rotate([0,0,180]) standard_rod(diam=axes_Ysmooth_rodD, length=axes_Ysmooth_rodLen, threaded=false, echoPart=true); if(Render_X_rightFrame) - Cyclone_X_rightFrame(); + Cyclone_X_rightFrame(); } diff --git a/Source_files/configs/Default_config.h b/Source_files/configs/Default_config.h index a762005..861fa54 100644 --- a/Source_files/configs/Default_config.h +++ b/Source_files/configs/Default_config.h @@ -238,4 +238,4 @@ alt_XZ_carriage = false; - \ No newline at end of file + diff --git a/Source_files/libs/standard_parts.scad b/Source_files/libs/standard_parts.scad index 1799383..9fe82b6 100644 --- a/Source_files/libs/standard_parts.scad +++ b/Source_files/libs/standard_parts.scad @@ -187,20 +187,22 @@ module stepperMotor(screwHeight=10, renderPart=false, echoPart=false) { module cyclone_motor_gear(Gear_N_Teeth = 21, gearHeight=10, saveMaterial=false, tolerance=0) { motor_rod_diam = 5/2+tolerance; // Motor gear - union() difference() { + difference() { union() { - //gear herringbone_gear(teeth=Gear_N_Teeth,height=gearHeight); - translate( [0, 0, 12] ) mirror( [0, 0, 1] ) difference() { + translate( [0, 0, 12] ) mirror( [0, 0, 1] ) { //shaft cylinder( r=9, h=8); - //captive nut and grub holes - translate( [0, 13, 3.5] ) //rotate([90,0,0]) union() { - rotate([0,180,0]) hole_for_screw(size=3,length=14,nutDepth=4.5,nutAddedLen=0,captiveLen=10, rot=90); } } + + translate( [0, 0, 12] ) mirror( [0, 0, 1] ) { + //captive nut and grub holes + translate( [0, 13, 3.5] ) + rotate([0,180,0]) hole_for_screw(size=3,length=14,nutDepth=4.5,nutAddedLen=0,captiveLen=10, rot=90, tolerance=tolerance); + } if(saveMaterial) for(i=[0:nholes-1]) @@ -232,7 +234,7 @@ nut_separation = METRIC_NUT_THICKNESS[nutSize]/2+tolerance; cylinder( r=holes_diam/2, h=11, center=true); translate( [0, 0, (nut_separation/2)] ) - rotate([-90,0,0]) hole_for_nut(size=nutSize); + rotate([-90,0,0]) hole_for_nut(size=nutSize, tolerance=tolerance); } }