summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--another.scad17
1 files changed, 11 insertions, 6 deletions
diff --git a/another.scad b/another.scad
index a93d21a..50b3a84 100644
--- a/another.scad
+++ b/another.scad
@@ -58,32 +58,33 @@ module the_extruder(
mount_screw_d_tolerance=.4,
idler_v_tolerance=.5,
knob_bore_d_tolerance=.6,
st_nut_h_tolerance=.2,
st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
st_screw_d_tolerance=.5,
what="lever", // lever|body|knob|springpad|*
left=false,
vitamins = true,
supports = false, bridges = true,
tensioner = true,
debug = false
) {
fnd = 2*PI; fnr = 2*fnd;
+ idler_filament_offset = filament_path_d/2; // -filament_offset;
lever_shell = mount_screwhead_h+0.5;
lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell);
lsd = idler_d-idler_clearance*2;
longwing=gearbox_d/2+spring_d/2+lsd/2;
h_ = (pulley_d+idler_d)/(2*sqrt(2));
ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) );
spring_dl = idler_travel*longwing/ri;
filament_elevation=protrusion_h+pulley_elevation+teeth_elevation;
ls_z = filament_elevation; // leverspace mid-z
body_h = max(protrusion_h+bore_l,mount_screw_l-mounthole_depth/2+mount_screwhead_h,ls_z*2);
ls_h = lever_thickness+lever_v_clearance; // leverspace height
module mirrorleft() {
mirror([left?0:1,0,0]) children();
}
@@ -109,69 +110,73 @@ module the_extruder(
cylinder(d=mount_screw_d,h=20,$fn=30);
translate([0,0,-epsilon]) cylinder(d=protrusion_d,h=protrusion_h,$fn=30);
translate([0,0,protrusion_h]) {
difference() {
cylinder(d=bore_d,h=bore_l,$fn=30);
translate([-bore_d/2-1,bore_dd-bore_d/2,-1])
cube([bore_d+2,bore_d/2,bore_l+2]);
}
translate([0,0,pulley_elevation]) {
cylinder(d=pulley_d,h=pulley_h,$fn=30);
translate([0,0,teeth_elevation]) {
place_idler() {
cylinder(d=idler_d,h=idler_h,center=true,$fn=30);
cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30);
}//place idler
// filament path
- rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) {
- rotate([90,0,0]) cylinder(d=filament_d,h=gearbox_d*2,center=true,$fn=15);
- rotate([-90,0,0])
+ rotate([0,0,45]) {
+ translate([pulley_d/2-idler_filament_offset,0,0]) rotate([90,0,0]) {
+ cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
+ }//rotate translate
+ translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) {
+ cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
translate([0,0,mount_d/sqrt(2)/2+mount_screw_d])
pushfit(pf);
- }
+ }//rotate translate
+ }//rotate
}//translate teeth
}//translate pulley
}//translate protrusion
}//vitamins
module lever() {
translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) {
difference() {
union() {
hull() {
place_idler()
cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
translate([mount_d/2,0,0])
cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
}//hull
hull() {
translate([mount_d/2,0,0])
cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
translate([mount_d/2,-longwing,0]) rotate([0,90,0])
cylinder(d=lever_thickness,h=lsd,center=true,$fn=60);
}//hull
}//union
// filament path
place_idler() {
- translate([-idler_d/2+filament_offset,0,0]) rotate([90,0,0]) {
+ translate([-idler_d/2-idler_filament_offset,0,0]) rotate([90,0,0]) {
cylinder(d=filament_path_d,h=3*gearbox_d,center=true,$fn=30);
translate([0,-filament_path_d/2/sqrt(2),0]) rotate([0,0,45])
cube(size=[filament_path_d/2,filament_path_d/2,3*gearbox_d],center=true);
}//rotate translate
- translate([-idler_d/2+filament_offset,0,0])
+ translate([-idler_d/2-idler_filament_offset,0,0])
rotate([90,0,0])
translate([0,0,
sqrt(2)*(mount_d-pulley_d+lsd)/2
]) {
cylinder(d1=filament_path_d,d2=2*filament_path_d,
h=filament_path_d,$fn=2*filament_path_d*fnd);
translate([0,0,filament_path_d-epsilon])
cylinder(d=2*filament_path_d,h=lsd,$fn=2*filament_path_d*fnd);
}
}//place_idler
// idler space and mounting hole
place_idler() {
difference() {
cylinder(d=idler_d+idler_clearance*2,h=idler_h+idler_v_tolerance,center=true,$fn=60);
if(supports) for(y=[-lsd/2+extrusion_width:(lsd-2*extrusion_width)/3:lsd/2-extrusion_width])