summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-26 19:25:56 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-26 19:25:56 (UTC)
commitd19aafaa5b0def955a82f3952a3dc9e96dbca954 (patch) (side-by-side diff)
tree71d6670906dcca8ffb552be38ddccd4e94e80286
parent1274626a6b611b2ba4d056ad402316d23d3b0b4c (diff)
downloadextrudery-d19aafaa5b0def955a82f3952a3dc9e96dbca954.zip
extrudery-d19aafaa5b0def955a82f3952a3dc9e96dbca954.tar.gz
extrudery-d19aafaa5b0def955a82f3952a3dc9e96dbca954.tar.bz2
don't support configuration without tensioning screw
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad49
1 files changed, 19 insertions, 30 deletions
diff --git a/another.scad b/another.scad
index 9ff7f6a..e6d9ca3 100644
--- a/another.scad
+++ b/another.scad
@@ -63,25 +63,24 @@ module the_extruder(
st_nut_h_tolerance=.2,
st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
st_screw_d_tolerance=.5,
st_split_w_tolerance = .3,
min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
min_xy_shell = 2*extrusion_width,
what="lever", // lever|body|knob|springpad|*
left=false,
vitamins = true,
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; // the diameter of lever thingie
longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell;
shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2))
sqrt(c*c+pow(a-c,2));
longwing_travel = idler_travel*longwing/shortwing;
@@ -339,54 +338,44 @@ module the_extruder(
a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ );
a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2));
translate([0,0,ls_z]) difference() {
rotate([0,0,-180+a0])
rotate_extrude(angle=a1-a0)
translate([0,-ls_h/2])
square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1,
ls_h]);
translate([-mount_d/2,0,0])
cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d));
}//difference translate
- //translate([-mount_d/2,-longwing,filament_elevation])
- if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */
- translate([mount_d/2,-longwing,filament_elevation])
- rotate([0,-90,0]) difference() {
- cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance));
- translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
- }
-
// spring tensioner
translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) {
- if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else {
- mirror([0,0,1]) {
- translate([0,0,st_thickshell])
- hull() for(o=[0,spring_d]) translate([0,-o,0])
- rotate([0,0,30])
- cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6);
- translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance));
- bigd = spring_d+spring_d_clearance;
- hf = (bigd-st_screw_d-st_screw_d_tolerance)/2;
- translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) {
- cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd,
- h=hf+epsilon, $fn=fnd*bigd);
- translate([0,-(st_thinshell+st_split_w_tolerance)/2,0])
- cube(size=[body_h-ls_z+1,st_thinshell+st_split_w_tolerance,fsw+1]);
- }
- translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon])
- cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
- }
- }
- }
+ mirror([0,0,1]) {
+ translate([0,0,st_thickshell])
+ hull() for(o=[0,spring_d]) translate([0,-o,0])
+ rotate([0,0,30])
+ cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6);
+ translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance));
+ bigd = spring_d+spring_d_clearance;
+ hf = (bigd-st_screw_d-st_screw_d_tolerance)/2;
+ translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) {
+ cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd,
+ h=hf+epsilon, $fn=fnd*bigd);
+ translate([0,-(st_thinshell+st_split_w_tolerance)/2,0])
+ cube(size=[body_h-ls_z+1,st_thinshell+st_split_w_tolerance,fsw+1]);
+ }//translate
+ translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon])
+ cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
+ }//mirror
+ }//translate
}//difference
}//body module
module springpad() {
smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell;
bigd = spring_d+spring_d_clearance/2;
hf = (bigd-smalld)/2;
h = hf*3.5;
translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation])
rotate([0,90,0]) difference() {
@@ -433,25 +422,25 @@ module the_extruder(
for(a=[0:360/knob_indents:359]) rotate([0,0,a])
translate([0,gearbox_d/2,-1])
cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d);
}
}
}//knob module
module debug() {
difference() {
children();
if(debug) {
// spring tensioner debug cutout
- if(tensioner) // TODO: collapse copypasted transformations
+ // TODO: collapse copypasted transformations
translate([-gearbox_d/2,0,0])
translate([0,-longwing,ls_z]) rotate([0,-90,0])
translate([0,-lever_thickness/2-1,-gearbox_d])
cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]);
// lever axis debug cutout
translate([mount_d/2,0,-1])
rotate([0,0,-45])
cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]);
// idler debug cutout
translate([0,0,ls_z])
place_idler()
rotate([0,0,-45])