Add support for rendering gears

Replaced the gear mock-ups with real gears and added the nuts on the X-rod
pull/26/merge^2
Arne Durr 2014-11-30 21:09:00 +01:00
parent ce03fc1cde
commit 99690e2b1b
1 changed files with 23 additions and 8 deletions

View File

@ -8,8 +8,9 @@
Xmotor_sideLen = 42.20;
axes_XgearSeparation = 37;
axes_XgearRatio = 21/21; // Number of tooth (motor/rod)
axes_XgearThickness = 10;
X_rodGearRatio = 21; // Number of tooth
X_motorGearRatio = 21; // Number of tooth
axes_XgearRatio = X_motorGearRatio/X_rodGearRatio; // Number of tooth (motor/rod)
X_frames_additional_thickness = 5;
@ -38,6 +39,10 @@ module Cyclone_X_leftFrame(isLeft=true) {
footThickness = 10;
footWidth = dimX+2*footSeparation;
rod_nut_len = 0.8*axes_Xthreaded_rodD;
gear_thickness = 10;
bearingDepth = 3;
corner_radius = 10;
@ -290,15 +295,25 @@ module Cyclone_X_leftFrame(isLeft=true) {
translate([-bearingDepth,0,0]) rotate([0,90,0])
radialBearing(echoPart=true);
if(isLeft) {
translate([gearWallSeparation,0,0]) rotate([0,90,0]) color(color_movingPart)
rodGear(r=axes_XgearSeparation/(1+1/axes_XgearRatio), h=axes_XgearThickness, echoPart=true);
translate([gear_thickness*2+axes_Xthreaded_rodD-7,0,0])
rotate([0,-90,0])
rotate([0,0,45]) nut(size=axes_Xthreaded_rodD, chamfer=true, echoPart=true);
translate([axes_Xthreaded_rodD,0,0]){
rotate([0,-90,0])
nut(size=axes_Xthreaded_rodD, echoPart=true);
translate([axes_Xthreaded_rodD-7,0,0])
rotate([0,-90,0]) color(color_movingPart)
cyclone_rod_gear(Gear_N_Teeth=X_rodGearRatio,gearHeight=gear_thickness,nutSize=8,tolerance=0);
}
// Translate to motor position
rotate([motorRotatedOffset,0,0]) {
rotate([motorRotatedOffset,0,0]) {
translate([0,axes_XgearSeparation,0])
rotate([-motorRotatedOffset,0,0]) {
translate([-motorWallSeparation,0,0]) rotate([0,90,0]) stepperMotor(screwHeight=motorWallSeparation, echoPart=true);
translate([gearWallSeparation,0,0]) rotate([0,90,0])
color(color_movingPart) motorGear(r=axes_XgearSeparation/(1+axes_XgearRatio), h=axes_XgearThickness, echoPart=true);
translate([-motorWallSeparation,0,0]) rotate([0,90,0])
stepperMotor(screwHeight=motorWallSeparation, echoPart=true);
translate([axes_Xthreaded_rodD+1.5,0,0])
rotate([0,-90,0]) color(color_movingPart)
cyclone_motor_gear(Gear_N_Teeth=X_motorGearRatio,gearHeight=gear_thickness,tolerance=0);
}
}
translate([0.1,0,0])