-rw-r--r-- | another.scad | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/another.scad b/another.scad index 87121d2..f4e8904 100644 --- a/another.scad +++ b/another.scad | |||
@@ -370,118 +370,122 @@ module the_extruder( | |||
370 | translate([mount_d/2,-longwing,filament_elevation]) | 370 | translate([mount_d/2,-longwing,filament_elevation]) |
371 | rotate([0,-90,0]) difference() { | 371 | rotate([0,-90,0]) difference() { |
372 | cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); | 372 | cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); |
373 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); | 373 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); |
374 | } | 374 | } |
375 | 375 | ||
376 | }//difference | 376 | }//difference |
377 | 377 | ||
378 | if(supports) intersection() { | 378 | if(supports) intersection() { |
379 | difference() { | 379 | difference() { |
380 | translate([0,0,ls_z-ls_h/2-epsilon]) | 380 | translate([0,0,ls_z-ls_h/2-epsilon]) |
381 | cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d); | 381 | cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d); |
382 | cylinder(d=pulley_d+pulley_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance)); | 382 | cylinder(d=pulley_d+pulley_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance)); |
383 | } | 383 | } |
384 | // supports | 384 | // supports |
385 | // TODO: hardcoded stuff below… | 385 | // TODO: hardcoded stuff below… |
386 | if(false) { // parallel | 386 | if(false) { // parallel |
387 | for(y=[-gearbox_d:4:gearbox_d]) | 387 | for(y=[-gearbox_d:4:gearbox_d]) |
388 | translate([0,y-extrusion_width/2,0]) | 388 | translate([0,y-extrusion_width/2,0]) |
389 | cube(size=[gearbox_d,extrusion_width,body_h]); | 389 | cube(size=[gearbox_d,extrusion_width,body_h]); |
390 | }else{ // radial | 390 | }else{ // radial |
391 | for(zr=[-65:(65+50)/7:50]) | 391 | for(zr=[-65:(65+50)/7:50]) |
392 | rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) | 392 | rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) |
393 | cube(size=[gearbox_d,extrusion_width,body_h]); | 393 | cube(size=[gearbox_d,extrusion_width,body_h]); |
394 | } | 394 | } |
395 | } | 395 | } |
396 | 396 | ||
397 | }//body module | 397 | }//body module |
398 | 398 | ||
399 | module springpad() { | 399 | module springpad() { |
400 | smalld=st_screw_d+st_screw_d_tolerance+2*extrusion_width; | 400 | smalld=st_screw_d+st_screw_d_tolerance+2*extrusion_width; |
401 | bigd = spring_d+spring_d_clearance/2; | 401 | bigd = spring_d+spring_d_clearance/2; |
402 | hf = (bigd-smalld)/2; | 402 | hf = (bigd-smalld)/2; |
403 | translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) | 403 | translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) |
404 | rotate([0,90,0]) difference() { | 404 | rotate([0,90,0]) difference() { |
405 | union() { | 405 | union() { |
406 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); | 406 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); |
407 | translate([0,0,hf-epsilon]) | 407 | translate([0,0,hf-epsilon]) |
408 | cylinder(d=bigd,h=hf*2,$fn=fnd*bigd); | 408 | cylinder(d=bigd,h=hf*2,$fn=fnd*bigd); |
409 | translate([0,0,3*hf]) | 409 | translate([0,0,3*hf]) |
410 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); | 410 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); |
411 | } | 411 | } |
412 | translate([0,0,-epsilon]) | 412 | translate([0,0,-epsilon]) |
413 | cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); | 413 | cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); |
414 | } | 414 | } |
415 | } | 415 | } |
416 | 416 | ||
417 | module knob() { | 417 | module knob() { |
418 | ch = knob_indent_d/2; | 418 | ch = knob_indent_d/2; |
419 | translate([0,0,body_h+epsilon]) { | 419 | translate([0,0,body_h+epsilon]) { |
420 | mirror([0,0,1]) translate([0,0,-epsilon]) { | 420 | mirror([0,0,1]) translate([0,0,-epsilon]) { |
421 | difference() { | 421 | difference() { |
422 | cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); | 422 | cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); |
423 | translate([0,0,-1]) difference() { | 423 | translate([0,0,-1]) difference() { |
424 | cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); | 424 | cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); |
425 | translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) | 425 | translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) |
426 | cube([bore_d+2,bore_d/2,knob_bore_l+4]); | 426 | cube([bore_d+2,bore_d/2,knob_bore_l+4]); |
427 | } | 427 | } |
428 | } | 428 | } |
429 | } | 429 | } |
430 | difference() { | 430 | difference() { |
431 | union() { | 431 | union() { |
432 | cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); | 432 | cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); |
433 | translate([0,0,ch]) | 433 | translate([0,0,ch]) |
434 | cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); | 434 | cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); |
435 | translate([0,0,knob_h-ch]) | 435 | translate([0,0,knob_h-ch]) |
436 | cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d); | 436 | cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d); |
437 | } | 437 | } |
438 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) | 438 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) |
439 | translate([0,gearbox_d/2,-1]) | 439 | translate([0,gearbox_d/2,-1]) |
440 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); | 440 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); |
441 | } | 441 | } |
442 | } | 442 | } |
443 | }//knob module | 443 | }//knob module |
444 | 444 | ||
445 | module debug() { | 445 | module debug() { |
446 | difference() { | 446 | difference() { |
447 | children(); | 447 | children(); |
448 | if(debug) { | 448 | if(debug) { |
449 | // spring tensioner debug cutout | 449 | // spring tensioner debug cutout |
450 | if(tensioner) // TODO: collapse copypasted transformations | 450 | if(tensioner) // TODO: collapse copypasted transformations |
451 | translate([-gearbox_d/2,0,0]) | 451 | translate([-gearbox_d/2,0,0]) |
452 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) | 452 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) |
453 | translate([0,-lever_thickness/2-1,-gearbox_d]) | 453 | translate([0,-lever_thickness/2-1,-gearbox_d]) |
454 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); | 454 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); |
455 | // lever axis debug cutout | 455 | // lever axis debug cutout |
456 | translate([mount_d/2,0,-1]) | 456 | translate([mount_d/2,0,-1]) |
457 | rotate([0,0,-45]) | 457 | rotate([0,0,-45]) |
458 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); | 458 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); |
459 | // idler debug cutout | 459 | // idler debug cutout |
460 | translate([0,0,ls_z]) | 460 | translate([0,0,ls_z]) |
461 | place_idler() | 461 | place_idler() |
462 | rotate([0,0,-45]) | 462 | rotate([0,0,-45]) |
463 | translate([0,0,-lever_thickness/2-epsilon]) | 463 | translate([0,0,-lever_thickness/2-epsilon]) |
464 | cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, | 464 | cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, |
465 | lever_thickness+2*epsilon]); | 465 | lever_thickness+2*epsilon]); |
466 | // pushfit debug cutout | ||
467 | place_idler() | ||
468 | translate([-idler_d/2+filament_offset,0,-1]) | ||
469 | cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h+2]); | ||
466 | }//if debug | 470 | }//if debug |
467 | }//difference | 471 | }//difference |
468 | } | 472 | } |
469 | 473 | ||
470 | mirrorleft() | 474 | mirrorleft() |
471 | debug() | 475 | debug() |
472 | if(what=="lever") color("green",0.7) lever(); | 476 | if(what=="lever") color("green",0.7) lever(); |
473 | else if(what=="body") color("yellow",0.7) body(); | 477 | else if(what=="body") color("yellow",0.7) body(); |
474 | else if(what=="knob") color("red",0.7) knob(); | 478 | else if(what=="knob") color("red",0.7) knob(); |
475 | else if(what=="springpad") color("blue",0.7) springpad(); | 479 | else if(what=="springpad") color("blue",0.7) springpad(); |
476 | else if(what=="both") { | 480 | else if(what=="both") { |
477 | color("green",0.7) lever(); | 481 | color("green",0.7) lever(); |
478 | color("yellow",0.7) body(); | 482 | color("yellow",0.7) body(); |
479 | }else{ | 483 | }else{ |
480 | color("green",0.7) lever(); | 484 | color("green",0.7) lever(); |
481 | color("yellow",0.7) body(); | 485 | color("yellow",0.7) body(); |
482 | color("red",0.7) knob(); | 486 | color("red",0.7) knob(); |
483 | color("blue",0.7) springpad(); | 487 | color("blue",0.7) springpad(); |
484 | } | 488 | } |
485 | } | 489 | } |
486 | 490 | ||
487 | the_extruder(what="*",left=false,debug=true); | 491 | the_extruder(what="*",left=false,debug=true); |