author | Michael Krelin <hacker@klever.net> | 2018-09-01 15:16:59 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-09-01 15:16:59 (UTC) |
commit | bcd075fbc4d1413999bf9870b5ed39b3d8f1c190 (patch) (unidiff) | |
tree | 931d6dbb45529b4d1fe1bd97103edd52d29d8208 /another.scad | |
parent | 71ca7ec20a34702892f89ced88baa898d066e316 (diff) | |
download | extrudery-bcd075fbc4d1413999bf9870b5ed39b3d8f1c190.zip extrudery-bcd075fbc4d1413999bf9870b5ed39b3d8f1c190.tar.gz extrudery-bcd075fbc4d1413999bf9870b5ed39b3d8f1c190.tar.bz2 |
adjust lever thingie diameter
-rw-r--r-- | another.scad | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/another.scad b/another.scad index ee7a0ff..2825c07 100644 --- a/another.scad +++ b/another.scad | |||
@@ -68,49 +68,49 @@ module the_extruder( | |||
68 | 68 | ||
69 | body_label = "another", body_label_thickness = layer_height, | 69 | body_label = "another", body_label_thickness = layer_height, |
70 | knob_label = "another", knob_label_thickness = 2*layer_height, knob_label_size=undef, | 70 | knob_label = "another", knob_label_thickness = 2*layer_height, knob_label_size=undef, |
71 | 71 | ||
72 | what="lever", // lever|body|knob|springpad|* | 72 | what="lever", // lever|body|knob|springpad|* |
73 | left=false, | 73 | left=false, |
74 | vitamins = true, | 74 | vitamins = true, |
75 | bridges = true, | 75 | bridges = true, |
76 | debug = false, | 76 | debug = false, |
77 | ) { | 77 | ) { |
78 | fnd = 2*PI; fnr = 2*fnd; | 78 | fnd = 2*PI; fnr = 2*fnd; |
79 | function lu(m,k) = m[search([k],m)[0]][1]; | 79 | function lu(m,k) = m[search([k],m)[0]][1]; |
80 | 80 | ||
81 | pulley_d = lu(pulley,"d"); | 81 | pulley_d = lu(pulley,"d"); |
82 | pulley_h = lu(pulley,"h"); | 82 | pulley_h = lu(pulley,"h"); |
83 | teeth_elevation = lu(pulley,"fe"); | 83 | teeth_elevation = lu(pulley,"fe"); |
84 | filament_offset = lu(pulley,"g")+filament_d/2; | 84 | filament_offset = lu(pulley,"g")+filament_d/2; |
85 | pulley_d_clearance = lu(pulley,"ssrc")*2; | 85 | pulley_d_clearance = lu(pulley,"ssrc")*2; |
86 | 86 | ||
87 | sp_ch = st_split_w; | 87 | sp_ch = st_split_w; |
88 | 88 | ||
89 | idler_filament_offset = filament_path_d/2; | 89 | idler_filament_offset = filament_path_d/2; |
90 | lever_shell = mount_screwhead_h+0.5; | 90 | lever_shell = mount_screwhead_h+0.5; |
91 | lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); | 91 | lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); |
92 | lsd = idler_d-idler_clearance*2; // the diameter of lever thingie | 92 | lsd = min(gearbox_d-mount_d,idler_d-idler_clearance*2); // the diameter of lever thingie |
93 | longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell; | 93 | longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell; |
94 | shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) | 94 | shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) |
95 | sqrt(c*c+pow(a-c,2)); | 95 | sqrt(c*c+pow(a-c,2)); |
96 | longwing_travel = idler_travel*longwing/shortwing; | 96 | longwing_travel = idler_travel*longwing/shortwing; |
97 | h_ = (pulley_d+idler_d)/(2*sqrt(2)); | 97 | h_ = (pulley_d+idler_d)/(2*sqrt(2)); |
98 | ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); | 98 | ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); |
99 | spring_dl = idler_travel*longwing/ri; | 99 | spring_dl = idler_travel*longwing/ri; |
100 | // finger and spring support width | 100 | // finger and spring support width |
101 | fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); | 101 | fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); |
102 | 102 | ||
103 | mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1; | 103 | mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1; |
104 | mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1; | 104 | mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1; |
105 | filament_elevation=protrusion_h+pulley_elevation+teeth_elevation; | 105 | filament_elevation=protrusion_h+pulley_elevation+teeth_elevation; |
106 | ls_z = filament_elevation; // leverspace mid-z | 106 | ls_z = filament_elevation; // leverspace mid-z |
107 | ls_h = lever_thickness+lever_v_clearance; // leverspace height | 107 | ls_h = lever_thickness+lever_v_clearance; // leverspace height |
108 | mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell); | 108 | mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell); |
109 | body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2); | 109 | body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2); |
110 | echo("mount depth",mount_depth); | 110 | echo("mount depth",mount_depth); |
111 | 111 | ||
112 | pf_offset = mount_d/sqrt(2)/2+mount_screw_d/2+min_xy_shell; | 112 | pf_offset = mount_d/sqrt(2)/2+mount_screw_d/2+min_xy_shell; |
113 | 113 | ||
114 | module teardrop(r,d,h,center=false,angle=45) { | 114 | module teardrop(r,d,h,center=false,angle=45) { |
115 | dd = d ? d : (2*r); | 115 | dd = d ? d : (2*r); |
116 | $fn = dd*fnd; | 116 | $fn = dd*fnd; |