Add support for rendering gears
Replaced the gear mock-ups with real gears and added the nuts on the X-rodpull/26/merge^2
parent
ce03fc1cde
commit
99690e2b1b
|
@ -8,8 +8,9 @@
|
||||||
Xmotor_sideLen = 42.20;
|
Xmotor_sideLen = 42.20;
|
||||||
|
|
||||||
axes_XgearSeparation = 37;
|
axes_XgearSeparation = 37;
|
||||||
axes_XgearRatio = 21/21; // Number of tooth (motor/rod)
|
X_rodGearRatio = 21; // Number of tooth
|
||||||
axes_XgearThickness = 10;
|
X_motorGearRatio = 21; // Number of tooth
|
||||||
|
axes_XgearRatio = X_motorGearRatio/X_rodGearRatio; // Number of tooth (motor/rod)
|
||||||
|
|
||||||
X_frames_additional_thickness = 5;
|
X_frames_additional_thickness = 5;
|
||||||
|
|
||||||
|
@ -38,6 +39,10 @@ module Cyclone_X_leftFrame(isLeft=true) {
|
||||||
footThickness = 10;
|
footThickness = 10;
|
||||||
footWidth = dimX+2*footSeparation;
|
footWidth = dimX+2*footSeparation;
|
||||||
|
|
||||||
|
rod_nut_len = 0.8*axes_Xthreaded_rodD;
|
||||||
|
gear_thickness = 10;
|
||||||
|
|
||||||
|
|
||||||
bearingDepth = 3;
|
bearingDepth = 3;
|
||||||
|
|
||||||
corner_radius = 10;
|
corner_radius = 10;
|
||||||
|
@ -290,15 +295,25 @@ module Cyclone_X_leftFrame(isLeft=true) {
|
||||||
translate([-bearingDepth,0,0]) rotate([0,90,0])
|
translate([-bearingDepth,0,0]) rotate([0,90,0])
|
||||||
radialBearing(echoPart=true);
|
radialBearing(echoPart=true);
|
||||||
if(isLeft) {
|
if(isLeft) {
|
||||||
translate([gearWallSeparation,0,0]) rotate([0,90,0]) color(color_movingPart)
|
translate([gear_thickness*2+axes_Xthreaded_rodD-7,0,0])
|
||||||
rodGear(r=axes_XgearSeparation/(1+1/axes_XgearRatio), h=axes_XgearThickness, echoPart=true);
|
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
|
// Translate to motor position
|
||||||
rotate([motorRotatedOffset,0,0]) {
|
rotate([motorRotatedOffset,0,0]) {
|
||||||
translate([0,axes_XgearSeparation,0])
|
translate([0,axes_XgearSeparation,0])
|
||||||
rotate([-motorRotatedOffset,0,0]) {
|
rotate([-motorRotatedOffset,0,0]) {
|
||||||
translate([-motorWallSeparation,0,0]) rotate([0,90,0]) stepperMotor(screwHeight=motorWallSeparation, echoPart=true);
|
translate([-motorWallSeparation,0,0]) rotate([0,90,0])
|
||||||
translate([gearWallSeparation,0,0]) rotate([0,90,0])
|
stepperMotor(screwHeight=motorWallSeparation, echoPart=true);
|
||||||
color(color_movingPart) motorGear(r=axes_XgearSeparation/(1+axes_XgearRatio), h=axes_XgearThickness, 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])
|
translate([0.1,0,0])
|
||||||
|
|
Loading…
Reference in New Issue