summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-31 22:38:35 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-31 22:38:35 (UTC)
commitaae457de5558e166564bf50ed50c53acfa6b62cd (patch) (unidiff)
treecd61a573f4755cf9cb35d9e81604370c829034bf
parent558d255a01ee6ced090290c5b7f2f9b75cec1360 (diff)
downloadextrudery-aae457de5558e166564bf50ed50c53acfa6b62cd.zip
extrudery-aae457de5558e166564bf50ed50c53acfa6b62cd.tar.gz
extrudery-aae457de5558e166564bf50ed50c53acfa6b62cd.tar.bz2
automatically calculate knob bore length
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad3
1 files changed, 2 insertions, 1 deletions
diff --git a/another.scad b/another.scad
index e4d79f9..915b184 100644
--- a/another.scad
+++ b/another.scad
@@ -20,27 +20,27 @@ module the_extruder(
20 pulley = pulley_e3d, 20 pulley = pulley_e3d,
21 pulley_elevation = 1, // pulley elevation above the protrusion 21 pulley_elevation = 1, // pulley elevation above the protrusion
22 // idler properties 22 // idler properties
23 idler_d = 10, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height 23 idler_d = 10, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height
24 // spring properties 24 // spring properties
25 spring_d = 10, spring_lc = 9.6, // spring diameter and compressed length 25 spring_d = 10, spring_lc = 9.6, // spring diameter and compressed length
26 // filament path properties 26 // filament path properties
27 filament_d = 1.75, 27 filament_d = 1.75,
28 filament_path_d = 2, 28 filament_path_d = 2,
29 filament_guide_d = 4, // PTFE filament guide diameter 29 filament_guide_d = 4, // PTFE filament guide diameter
30 // knob properties 30 // knob properties
31 knob_h = 10, 31 knob_h = 10,
32 knob_bore_l = 4,
33 knob_indent_d = 4, 32 knob_indent_d = 4,
34 knob_indents = 12, 33 knob_indents = 12,
34 knob_v_clearance = 1,
35 // spring tensioner 35 // spring tensioner
36 st_nut_d = 9, st_nut_h = 4, 36 st_nut_d = 9, st_nut_h = 4,
37 st_screw_d = 5, 37 st_screw_d = 5,
38 st_thickshell = 8*extrusion_width, st_thinshell = 2*extrusion_width, 38 st_thickshell = 8*extrusion_width, st_thinshell = 2*extrusion_width,
39 st_split_w = 4*extrusion_width, 39 st_split_w = 4*extrusion_width,
40 40
41 // screw it 41 // screw it
42 mount_screw_d = 3.1, mount_screw_l = 20, 42 mount_screw_d = 3.1, mount_screw_l = 20,
43 mount_screwhead_d=6, mount_screwhead_h=3, 43 mount_screwhead_d=6, mount_screwhead_h=3,
44 idler_screw_d = 3, 44 idler_screw_d = 3,
45 idler_screwhead_d=6, idler_screwhead_h=3, 45 idler_screwhead_d=6, idler_screwhead_h=3,
46 46
@@ -399,24 +399,25 @@ module the_extruder(
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 translate([0,0,body_h+epsilon]) { 412 translate([0,0,body_h+epsilon]) {
412 mirror([0,0,1]) translate([0,0,-epsilon]) { 413 mirror([0,0,1]) translate([0,0,-epsilon]) {
413 difference() { 414 difference() {
414 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);
415 translate([0,0,-1]) difference() { 416 translate([0,0,-1]) difference() {
416 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);
417 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])
418 cube([bore_d+2,bore_d/2,knob_bore_l+4]); 419 cube([bore_d+2,bore_d/2,knob_bore_l+4]);
419 } 420 }
420 } 421 }
421 } 422 }
422 difference() { 423 difference() {