summaryrefslogtreecommitdiff
path: root/another.scad
authorMichael Krelin <hacker@klever.net>2018-08-26 19:14:23 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-26 19:14:23 (UTC)
commit3855bfa499f674b41fa5edf3506e41238520d2da (patch) (unidiff)
treeb5db5ec8bb73bf72cae6f6326d7c883df9566cfe /another.scad
parentc36f7b9afffdf4fd363ed5abb5a8bd2b4644aec8 (diff)
downloadextrudery-3855bfa499f674b41fa5edf3506e41238520d2da.zip
extrudery-3855bfa499f674b41fa5edf3506e41238520d2da.tar.gz
extrudery-3855bfa499f674b41fa5edf3506e41238520d2da.tar.bz2
the comment
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad2
1 files changed, 1 insertions, 1 deletions
diff --git a/another.scad b/another.scad
index b752f30..2383276 100644
--- a/another.scad
+++ b/another.scad
@@ -59,49 +59,49 @@ module the_extruder(
59 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion 59 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion
60 mount_screw_d_tolerance=.4, 60 mount_screw_d_tolerance=.4,
61 idler_v_tolerance=.5, 61 idler_v_tolerance=.5,
62 knob_bore_d_tolerance=.6, 62 knob_bore_d_tolerance=.6,
63 st_nut_h_tolerance=.2, 63 st_nut_h_tolerance=.2,
64 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */ 64 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
65 st_screw_d_tolerance=.5, 65 st_screw_d_tolerance=.5,
66 st_split_w_tolerance = .3, 66 st_split_w_tolerance = .3,
67 67
68 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis. 68 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
69 min_xy_shell = 2*extrusion_width, 69 min_xy_shell = 2*extrusion_width,
70 70
71 what="lever", // lever|body|knob|springpad|* 71 what="lever", // lever|body|knob|springpad|*
72 left=false, 72 left=false,
73 vitamins = true, 73 vitamins = true,
74 supports = false, bridges = true, 74 supports = false, bridges = true,
75 tensioner = true, 75 tensioner = true,
76 debug = false 76 debug = false
77) { 77) {
78 fnd = 2*PI; fnr = 2*fnd; 78 fnd = 2*PI; fnr = 2*fnd;
79 79
80 idler_filament_offset = filament_path_d/2; // -filament_offset; 80 idler_filament_offset = filament_path_d/2; // -filament_offset;
81 lever_shell = mount_screwhead_h+0.5; 81 lever_shell = mount_screwhead_h+0.5;
82 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); 82 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell);
83 lsd = idler_d-idler_clearance*2; 83 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie
84 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+extrusion_width; 84 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+extrusion_width;
85 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) 85 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2))
86 sqrt(c*c+pow(a-c,2)); 86 sqrt(c*c+pow(a-c,2));
87 longwing_travel = idler_travel*longwing/shortwing; 87 longwing_travel = idler_travel*longwing/shortwing;
88 h_ = (pulley_d+idler_d)/(2*sqrt(2)); 88 h_ = (pulley_d+idler_d)/(2*sqrt(2));
89 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); 89 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) );
90 spring_dl = idler_travel*longwing/ri; 90 spring_dl = idler_travel*longwing/ri;
91 // finger and spring support 91 // finger and spring support
92 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); 92 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2);
93 93
94 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1; 94 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1;
95 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1; 95 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1;
96 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation; 96 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation;
97 ls_z = filament_elevation; // leverspace mid-z 97 ls_z = filament_elevation; // leverspace mid-z
98 ls_h = lever_thickness+lever_v_clearance; // leverspace height 98 ls_h = lever_thickness+lever_v_clearance; // leverspace height
99 mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell); 99 mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell);
100 body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2); 100 body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2);
101 echo("mount depth",mount_depth); 101 echo("mount depth",mount_depth);
102 102
103 module teardrop(r,d,h,center=false,angle=45) { 103 module teardrop(r,d,h,center=false,angle=45) {
104 dd = d ? d : (2*r); 104 dd = d ? d : (2*r);
105 $fn = dd*fnd; 105 $fn = dd*fnd;
106 cylinder(d=dd,h=h,center=center); 106 cylinder(d=dd,h=h,center=center);
107 if(angle>0) translate([0,0,center?-h/2:0]) 107 if(angle>0) translate([0,0,center?-h/2:0])