summaryrefslogtreecommitdiff
path: root/another.scad
authorMichael Krelin <hacker@klever.net>2018-08-13 10:20:13 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-13 10:20:13 (UTC)
commitfc213f6b29f62795ce33d0e0acdea1e6a6b0fffb (patch) (unidiff)
tree8d31638a3d7935017ea730ebf18d7413cedb422d /another.scad
parente33d88e915e10aa7c127a75482e1210313c29add (diff)
downloadextrudery-fc213f6b29f62795ce33d0e0acdea1e6a6b0fffb.zip
extrudery-fc213f6b29f62795ce33d0e0acdea1e6a6b0fffb.tar.gz
extrudery-fc213f6b29f62795ce33d0e0acdea1e6a6b0fffb.tar.bz2
be explicit about pulley clearance
I would've thought it's radial…
Diffstat (limited to 'another.scad') (more/less context) (show whitespace changes)
-rw-r--r--another.scad6
1 files changed, 3 insertions, 3 deletions
diff --git a/another.scad b/another.scad
index 50b3a84..6afa9ef 100644
--- a/another.scad
+++ b/another.scad
@@ -37,33 +37,33 @@ module the_extruder(
37 st_screw_d = 5, 37 st_screw_d = 5,
38 st_thickshell = 8*extrusion_width, st_thinshell = 4*extrusion_width, 38 st_thickshell = 8*extrusion_width, st_thinshell = 4*extrusion_width,
39 39
40 // screw it 40 // screw it
41 mount_screw_d = 3.1, mount_screw_l = 20, 41 mount_screw_d = 3.1, mount_screw_l = 20,
42 mount_screwhead_d=6, mount_screwhead_h=3, 42 mount_screwhead_d=6, mount_screwhead_h=3,
43 idler_screw_d = 3, 43 idler_screw_d = 3,
44 idler_screwhead_d=6, idler_screwhead_h=3, 44 idler_screwhead_d=6, idler_screwhead_h=3,
45 45
46 pf = pushfit_embeddest, 46 pf = pushfit_embeddest,
47 pf_shell = max(3*layer_height,3*extrusion_width), 47 pf_shell = max(3*layer_height,3*extrusion_width),
48 pf_smooth = true, 48 pf_smooth = true,
49 49
50 // empty spaces 50 // empty spaces
51 idler_travel = 3, // how far should idler travel when pressed 51 idler_travel = 3, // how far should idler travel when pressed
52 idler_clearance=1, 52 idler_clearance=1,
53 pulley_clearance=2, 53 pulley_d_clearance=2,
54 lever_v_clearance=.7, // vertical clearance for the lever 54 lever_v_clearance=.7, // vertical clearance for the lever
55 spring_d_clearance=1, 55 spring_d_clearance=1,
56 protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion 56 protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion
57 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion 57 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion
58 mount_screw_d_tolerance=.4, 58 mount_screw_d_tolerance=.4,
59 idler_v_tolerance=.5, 59 idler_v_tolerance=.5,
60 knob_bore_d_tolerance=.6, 60 knob_bore_d_tolerance=.6,
61 st_nut_h_tolerance=.2, 61 st_nut_h_tolerance=.2,
62 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */ 62 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
63 st_screw_d_tolerance=.5, 63 st_screw_d_tolerance=.5,
64 64
65 what="lever", // lever|body|knob|springpad|* 65 what="lever", // lever|body|knob|springpad|*
66 left=false, 66 left=false,
67 vitamins = true, 67 vitamins = true,
68 supports = false, bridges = true, 68 supports = false, bridges = true,
69 tensioner = true, 69 tensioner = true,
@@ -296,33 +296,33 @@ module the_extruder(
296 translate([0,0,mount_screw_l-mounthole_depth/2]) 296 translate([0,0,mount_screw_l-mounthole_depth/2])
297 cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d); 297 cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d);
298 }//for 298 }//for
299 // pushfit 299 // pushfit
300 translate([0,0,filament_elevation]) 300 translate([0,0,filament_elevation])
301 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) 301 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
302 rotate([-90,0,0]) 302 rotate([-90,0,0])
303 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d+epsilon]) 303 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d+epsilon])
304 rotate([0,0,180]) { 304 rotate([0,0,180]) {
305 pushfit(pf); 305 pushfit(pf);
306 cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=fnd*filament_guide_d); 306 cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=fnd*filament_guide_d);
307 translate([0,-filament_guide_d/2/sqrt(2),0]) 307 translate([0,-filament_guide_d/2/sqrt(2),0])
308 rotate([0,0,45]) 308 rotate([0,0,45])
309 cube(size=[filament_guide_d/2,filament_guide_d/2,gearbox_d],center=true); 309 cube(size=[filament_guide_d/2,filament_guide_d/2,gearbox_d],center=true);
310 }//rotate translate rotate translate rotate translate 310 }//rotate translate rotate translate rotate translate
311 // pulley 311 // pulley
312 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_clearance)); 312 cylinder(d=pulley_d+pulley_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance));
313 // leverspace 313 // leverspace
314 hull() for(x=[0,gearbox_d]) 314 hull() for(x=[0,gearbox_d])
315 rotate([0,0,45]) 315 rotate([0,0,45])
316 translate([x,0,ls_z-ls_h/2]) 316 translate([x,0,ls_z-ls_h/2])
317 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance)); 317 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance));
318 318
319 // idler clearance 319 // idler clearance
320 a=cos(45)*(pulley_d+idler_d)/2; 320 a=cos(45)*(pulley_d+idler_d)/2;
321 b=mount_d/2-a; 321 b=mount_d/2-a;
322 x=sqrt(pow(a,2)+pow(b,2)); 322 x=sqrt(pow(a,2)+pow(b,2));
323 translate([mount_d/2,0,ls_z]) 323 translate([mount_d/2,0,ls_z])
324 intersection() { 324 intersection() {
325 r = x+idler_d/2+idler_clearance; 325 r = x+idler_d/2+idler_clearance;
326 cylinder(r=r,h=ls_h,center=true); 326 cylinder(r=r,h=ls_h,center=true);
327 translate([-r-1,0,-ls_h/2-1]) cube(size=[2*r+2,r+1,ls_h+2]); 327 translate([-r-1,0,-ls_h/2-1]) cube(size=[2*r+2,r+1,ls_h+2]);
328 } 328 }
@@ -359,33 +359,33 @@ module the_extruder(
359 cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]); 359 cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]);
360 } 360 }
361 //translate([-mount_d/2,-longwing,filament_elevation]) 361 //translate([-mount_d/2,-longwing,filament_elevation])
362 if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */ 362 if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */
363 translate([mount_d/2,-longwing,filament_elevation]) 363 translate([mount_d/2,-longwing,filament_elevation])
364 rotate([0,-90,0]) difference() { 364 rotate([0,-90,0]) difference() {
365 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); 365 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance));
366 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 366 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
367 } 367 }
368 368
369 }//difference 369 }//difference
370 370
371 if(supports) intersection() { 371 if(supports) intersection() {
372 difference() { 372 difference() {
373 translate([0,0,ls_z-ls_h/2-epsilon]) 373 translate([0,0,ls_z-ls_h/2-epsilon])
374 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d); 374 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d);
375 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_clearance)); 375 cylinder(d=pulley_d+pulley_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance));
376 } 376 }
377 // supports 377 // supports
378 // TODO: hardcoded stuff below… 378 // TODO: hardcoded stuff below…
379 if(false) { // parallel 379 if(false) { // parallel
380 for(y=[-gearbox_d:4:gearbox_d]) 380 for(y=[-gearbox_d:4:gearbox_d])
381 translate([0,y-extrusion_width/2,0]) 381 translate([0,y-extrusion_width/2,0])
382 cube(size=[gearbox_d,extrusion_width,body_h]); 382 cube(size=[gearbox_d,extrusion_width,body_h]);
383 }else{ // radial 383 }else{ // radial
384 for(zr=[-65:(65+50)/7:50]) 384 for(zr=[-65:(65+50)/7:50])
385 rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) 385 rotate([0,0,zr]) translate([0,-extrusion_width/2,0])
386 cube(size=[gearbox_d,extrusion_width,body_h]); 386 cube(size=[gearbox_d,extrusion_width,body_h]);
387 } 387 }
388 } 388 }
389 389
390 }//body module 390 }//body module
391 391