summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-26 18:49:25 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-26 18:49:25 (UTC)
commitc36f7b9afffdf4fd363ed5abb5a8bd2b4644aec8 (patch) (unidiff)
tree7607114fc62e54b6fdf92669b089e6aab01f3b78
parentcbb2f15a5f71251ef01d3b7c87a672d36c62570e (diff)
downloadextrudery-c36f7b9afffdf4fd363ed5abb5a8bd2b4644aec8.zip
extrudery-c36f7b9afffdf4fd363ed5abb5a8bd2b4644aec8.tar.gz
extrudery-c36f7b9afffdf4fd363ed5abb5a8bd2b4644aec8.tar.bz2
move spring closer
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad73
1 files changed, 36 insertions, 37 deletions
diff --git a/another.scad b/another.scad
index 78d4320..b752f30 100644
--- a/another.scad
+++ b/another.scad
@@ -78,13 +78,13 @@ module the_extruder(
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;
84 longwing=gearbox_d/2+spring_d/2+lsd/2; 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;
@@ -232,48 +232,24 @@ module the_extruder(
232 }//lever module 232 }//lever module
233 233
234 module body() { 234 module body() {
235 difference() { 235 difference() {
236 union() { 236 union() {
237 cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d); 237 cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d);
238 translate([-gearbox_d/2,0,0]) difference() { 238 // spring tensioner part
239 union() { 239 translate([-gearbox_d/2,0,0]) hull() {
240 hull() { 240 translate([0,-longwing,ls_z])
241 translate([0,-longwing,ls_z]) 241 rotate([0,90,0])
242 rotate([0,90,0]) 242 cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness);
243 cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness); 243 hh=body_h-ls_z;
244 hh=body_h-ls_z; 244 translate([0,0,ls_z])
245 translate([0,0,ls_z]) 245 mirror([0,1,0]) cube(size=[fsw,longwing+(st_thinshell+st_split_w_tolerance)/2+st_thickshell,body_h-ls_z]);
246 mirror([0,1,0]) cube(size=[fsw,longwing+(st_thinshell+st_split_w_tolerance)/2+st_thickshell,body_h-ls_z]); 246 hhh=ls_z;
247 hhh=ls_z; 247 translate([0,0,0])
248 translate([0,0,0]) 248 mirror([0,1,0]) cube(size=[fsw,longwing-hhh+lever_thickness/sqrt(2),hhh+lever_thickness/2]);
249 mirror([0,1,0]) cube(size=[fsw,longwing-hhh+lever_thickness/sqrt(2),hhh+lever_thickness/2]); 249 }//hull translate
250 }
251 }
252 translate([0,-longwing,ls_z]) rotate([0,-90,0]) {
253 if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else {
254 mirror([0,0,1]) {
255 translate([0,0,st_thickshell])
256 hull() for(o=[0,spring_d]) translate([0,-o,0])
257 rotate([0,0,30])
258 cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6);
259 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));
260 bigd = spring_d+spring_d_clearance;
261 hf = (bigd-st_screw_d-st_screw_d_tolerance)/2;
262 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) {
263 cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd,
264 h=hf+epsilon, $fn=fnd*bigd);
265 translate([0,-(st_thinshell+st_split_w_tolerance)/2,0])
266 cube(size=[body_h-ls_z+1,st_thinshell+st_split_w_tolerance,fsw+1]);
267 }
268 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon])
269 cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
270 }
271 }
272 }
273 } // translate
274 250
275 // pushfit bracket 251 // pushfit bracket
276 translate([0,0,filament_elevation]) 252 translate([0,0,filament_elevation])
277 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) 253 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
278 rotate([-90,0,0]) 254 rotate([-90,0,0])
279 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) { 255 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) {
@@ -383,12 +359,35 @@ module the_extruder(
383 translate([mount_d/2,-longwing,filament_elevation]) 359 translate([mount_d/2,-longwing,filament_elevation])
384 rotate([0,-90,0]) difference() { 360 rotate([0,-90,0]) difference() {
385 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); 361 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance));
386 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 362 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
387 } 363 }
388 364
365 // spring tensioner
366 translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) {
367 if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else {
368 mirror([0,0,1]) {
369 translate([0,0,st_thickshell])
370 hull() for(o=[0,spring_d]) translate([0,-o,0])
371 rotate([0,0,30])
372 cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6);
373 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));
374 bigd = spring_d+spring_d_clearance;
375 hf = (bigd-st_screw_d-st_screw_d_tolerance)/2;
376 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) {
377 cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd,
378 h=hf+epsilon, $fn=fnd*bigd);
379 translate([0,-(st_thinshell+st_split_w_tolerance)/2,0])
380 cube(size=[body_h-ls_z+1,st_thinshell+st_split_w_tolerance,fsw+1]);
381 }
382 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon])
383 cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
384 }
385 }
386 }
387
389 }//difference 388 }//difference
390 389
391 if(supports) intersection() { 390 if(supports) intersection() {
392 difference() { 391 difference() {
393 translate([0,0,ls_z-ls_h/2-epsilon]) 392 translate([0,0,ls_z-ls_h/2-epsilon])
394 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d); 393 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d);