Parameterized tolerances for the gears

pull/40/head
Carlos Garcia Saura 2014-12-29 03:27:54 +01:00
parent 2b54546e0a
commit e98007cfdb
5 changed files with 17 additions and 15 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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();
}

View File

@ -238,4 +238,4 @@
alt_XZ_carriage = false;

View File

@ -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);
}
}