-rw-r--r-- | another.scad | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/another.scad b/another.scad index 0f696cc..05bfab3 100644 --- a/another.scad +++ b/another.scad | |||
@@ -376,102 +376,100 @@ module the_extruder( | |||
376 | linear_extrude(height=label_thickness+epsilon,convexity=64) | 376 | linear_extrude(height=label_thickness+epsilon,convexity=64) |
377 | translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2]) | 377 | translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2]) |
378 | mirror([left?0:1,0]) | 378 | mirror([left?0:1,0]) |
379 | text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); | 379 | text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); |
380 | }//if(body_label) | 380 | }//if(body_label) |
381 | } | 381 | } |
382 | 382 | ||
383 | module springpad() { | 383 | module springpad() { |
384 | smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell; | 384 | smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell; |
385 | bigd = spring_d+spring_d_clearance/2; | 385 | bigd = spring_d+spring_d_clearance/2; |
386 | hf = (bigd-smalld)/2; | 386 | hf = (bigd-smalld)/2; |
387 | h = hf*3.5; | 387 | h = hf*3.5; |
388 | translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) | 388 | translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) |
389 | rotate([0,90,0]) difference() { | 389 | rotate([0,90,0]) difference() { |
390 | union() { | 390 | union() { |
391 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); | 391 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); |
392 | translate([0,0,hf-epsilon]) | 392 | translate([0,0,hf-epsilon]) |
393 | cylinder(d=bigd,h=h-hf,$fn=fnd*bigd); | 393 | cylinder(d=bigd,h=h-hf,$fn=fnd*bigd); |
394 | translate([0,0,h]) | 394 | translate([0,0,h]) |
395 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); | 395 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); |
396 | l = body_h-ls_z; | 396 | l = body_h-ls_z; |
397 | w = st_split_w; | 397 | w = st_split_w; |
398 | hull() translate([0,-st_split_w/2,0]) mirror([1,0,0]) { | 398 | hull() translate([0,-st_split_w/2,0]) mirror([1,0,0]) { |
399 | translate([0,0,w]) | 399 | translate([0,0,w]) |
400 | cube(size=[l,st_split_w,w]); | 400 | cube(size=[l,st_split_w,w]); |
401 | cube(size=[l-w,st_split_w,2*w]); | 401 | cube(size=[l-w,st_split_w,2*w]); |
402 | } | 402 | } |
403 | } | 403 | } |
404 | translate([0,0,-epsilon]) | 404 | translate([0,0,-epsilon]) |
405 | cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); | 405 | cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); |
406 | } | 406 | } |
407 | } | 407 | } |
408 | 408 | ||
409 | module knob() { | 409 | module knob() { |
410 | ch = knob_indent_d/2; | 410 | ch = knob_indent_d/2; |
411 | knob_bore_l = body_h-protrusion_h-pulley_elevation-pulley_h-knob_v_clearance; | 411 | knob_bore_l = body_h-protrusion_h-pulley_elevation-pulley_h-knob_v_clearance; |
412 | translate([0,0,body_h+epsilon]) { | 412 | translate([0,0,body_h+epsilon]) { |
413 | mirror([0,0,1]) translate([0,0,-epsilon]) { | 413 | mirror([0,0,1]) translate([0,0,-epsilon]) { |
414 | difference() { | 414 | difference() { |
415 | cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); | 415 | cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); |
416 | translate([0,0,-1]) difference() { | 416 | translate([0,0,-1]) difference() { |
417 | cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); | 417 | cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); |
418 | translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) | 418 | translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) |
419 | cube([bore_d+2,bore_d/2,knob_bore_l+4]); | 419 | cube([bore_d+2,bore_d/2,knob_bore_l+4]); |
420 | } | 420 | } |
421 | } | 421 | } |
422 | } | 422 | } |
423 | difference() { | 423 | difference() { |
424 | union() { | 424 | hull() { |
425 | cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); | 425 | cylinder(d=gearbox_d-2*ch,h=knob_h,$fn=fnd*gearbox_d); |
426 | translate([0,0,ch]) | 426 | translate([0,0,ch]) |
427 | cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); | 427 | cylinder(d=gearbox_d,h=knob_h-2*ch,$fn=fnd*gearbox_d); |
428 | translate([0,0,knob_h-ch]) | ||
429 | cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d); | ||
430 | } | 428 | } |
431 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) | 429 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) |
432 | translate([0,gearbox_d/2,-1]) | 430 | translate([0,gearbox_d/2,-1]) |
433 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); | 431 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); |
434 | } | 432 | } |
435 | } | 433 | } |
436 | }//knob module | 434 | }//knob module |
437 | 435 | ||
438 | module debug() { | 436 | module debug() { |
439 | difference() { | 437 | difference() { |
440 | children(); | 438 | children(); |
441 | if(debug) { | 439 | if(debug) { |
442 | // spring tensioner debug cutout | 440 | // spring tensioner debug cutout |
443 | translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) | 441 | translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) |
444 | translate([0,-lever_thickness/2-1,-gearbox_d]) | 442 | translate([0,-lever_thickness/2-1,-gearbox_d]) |
445 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); | 443 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); |
446 | // lever axis debug cutout | 444 | // lever axis debug cutout |
447 | translate([mount_d/2,0,-1]) | 445 | translate([mount_d/2,0,-1]) |
448 | rotate([0,0,-45]) | 446 | rotate([0,0,-45]) |
449 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); | 447 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); |
450 | // idler debug cutout | 448 | // idler debug cutout |
451 | translate([0,0,ls_z]) | 449 | translate([0,0,ls_z]) |
452 | place_idler() | 450 | place_idler() |
453 | rotate([0,0,-45]) | 451 | rotate([0,0,-45]) |
454 | translate([0,0,-lever_thickness/2-epsilon]) | 452 | translate([0,0,-lever_thickness/2-epsilon]) |
455 | cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1, | 453 | cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1, |
456 | lever_thickness+2*epsilon]); | 454 | lever_thickness+2*epsilon]); |
457 | // pushfit debug cutout | 455 | // pushfit debug cutout |
458 | place_idler() | 456 | place_idler() |
459 | translate([-idler_d/2+filament_offset,0,ls_z]) | 457 | translate([-idler_d/2+filament_offset,0,ls_z]) |
460 | cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]); | 458 | cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]); |
461 | }//if debug | 459 | }//if debug |
462 | }//difference | 460 | }//difference |
463 | } | 461 | } |
464 | 462 | ||
465 | mirrorleft() | 463 | mirrorleft() |
466 | debug() | 464 | debug() |
467 | if(what=="lever") color("green",0.7) lever(); | 465 | if(what=="lever") color("green",0.7) lever(); |
468 | else if(what=="body") color("yellow",0.7) body(); | 466 | else if(what=="body") color("yellow",0.7) body(); |
469 | else if(what=="body.label") color("brown",0.7) body_label(); | 467 | else if(what=="body.label") color("brown",0.7) body_label(); |
470 | else if(what=="knob") color("red",0.7) knob(); | 468 | else if(what=="knob") color("red",0.7) knob(); |
471 | else if(what=="springpad") color("blue",0.7) springpad(); | 469 | else if(what=="springpad") color("blue",0.7) springpad(); |
472 | else if(what=="both") { | 470 | else if(what=="both") { |
473 | color("green",0.7) lever(); | 471 | color("green",0.7) lever(); |
474 | color("yellow",0.7) body(); | 472 | color("yellow",0.7) body(); |
475 | color("brown",0.7) body_label(); | 473 | color("brown",0.7) body_label(); |
476 | }else{ | 474 | }else{ |
477 | color("green",0.7) lever(); | 475 | color("green",0.7) lever(); |