summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-31 20:19:28 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-31 20:19:28 (UTC)
commitcb33c94fe8264c3f689268b80e7bd767b31f72dc (patch) (unidiff)
treea603f4eb9301b18dd6ef0557e6e9eb019dcb52de
parent2d21a45f6f486469cf0d48aea6c5384419c597e3 (diff)
downloadextrudery-cb33c94fe8264c3f689268b80e7bd767b31f72dc.zip
extrudery-cb33c94fe8264c3f689268b80e7bd767b31f72dc.tar.gz
extrudery-cb33c94fe8264c3f689268b80e7bd767b31f72dc.tar.bz2
another: lookup-driven filament drive puley specification
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad12
-rw-r--r--pulley_data.scad8
2 files changed, 16 insertions, 4 deletions
diff --git a/another.scad b/another.scad
index ed18874..51358ee 100644
--- a/another.scad
+++ b/another.scad
@@ -1,34 +1,33 @@
1draft=true; 1draft=true;
2layer_height=0.2; extrusion_width=0.4; 2layer_height=0.2; extrusion_width=0.4;
3epsilon=0.01; 3epsilon=0.01;
4$fs=0.0125; 4$fs=0.0125;
5 5
6use <pushfittery.scad>; 6use <pushfittery.scad>;
7include <pushfit_data.scad>; 7include <pushfit_data.scad>;
8include <pulley_data.scad>;
8 9
9module the_extruder( 10module the_extruder(
10 // motor properties 11 // motor properties
11 gearbox_d = 36, 12 gearbox_d = 36,
12 mount_d = 28, // the distance between opposite mounting holes 13 mount_d = 28, // the distance between opposite mounting holes
13 mounthole_depth = 5, 14 mounthole_depth = 5,
14 mounthole_min_depth = 3, mounthole_max_depth = 4, 15 mounthole_min_depth = 3, mounthole_max_depth = 4,
15 protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox 16 protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox
16 bore_d = 8, bore_l = 17.6, 17 bore_d = 8, bore_l = 17.6,
17 bore_dd = 7, 18 bore_dd = 7,
18 // pulley properties 19 // pulley properties
19 pulley_d = 11.5, pulley_h=10, 20 pulley = pulley_e3d,
20 pulley_elevation = 1, // pulley elevation above the protrusion 21 pulley_elevation = 1, // pulley elevation above the protrusion
21 teeth_elevation = 7.5, // distance from the bottom of the pulley to its teeth
22 filament_offset = (8.25-(3.0+3.5)/2) - 11.5/2 + 1.75/2,
23 // idler properties 22 // idler properties
24 idler_d = 9.5, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height 23 idler_d = 9.5, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height
25 // spring properties 24 // spring properties
26 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
27 // filament path properties 26 // filament path properties
28 filament_d = 1.75, 27 filament_d = 1.75,
29 filament_path_d = 2, 28 filament_path_d = 2,
30 filament_guide_d = 4, // PTFE filament guide diameter 29 filament_guide_d = 4, // PTFE filament guide diameter
31 // knob properties 30 // knob properties
32 knob_h = 10, 31 knob_h = 10,
33 knob_bore_l = 4, 32 knob_bore_l = 4,
34 knob_indent_d = 4, 33 knob_indent_d = 4,
@@ -43,50 +42,55 @@ module the_extruder(
43 mount_screw_d = 3.1, mount_screw_l = 20, 42 mount_screw_d = 3.1, mount_screw_l = 20,
44 mount_screwhead_d=6, mount_screwhead_h=3, 43 mount_screwhead_d=6, mount_screwhead_h=3,
45 idler_screw_d = 3, 44 idler_screw_d = 3,
46 idler_screwhead_d=6, idler_screwhead_h=3, 45 idler_screwhead_d=6, idler_screwhead_h=3,
47 46
48 pf = pushfit_embeddest, 47 pf = pushfit_embeddest,
49 pf_shell = max(3*layer_height,3*extrusion_width), 48 pf_shell = max(3*layer_height,3*extrusion_width),
50 pf_smooth = true, 49 pf_smooth = true,
51 50
52 // empty spaces 51 // empty spaces
53 idler_travel = 3, // how far should idler travel when pressed 52 idler_travel = 3, // how far should idler travel when pressed
54 idler_clearance=1, 53 idler_clearance=1,
55 pulley_d_clearance=2,
56 pulley_small_d_clearance=0.5, 54 pulley_small_d_clearance=0.5,
57 lever_v_clearance=.7, // vertical clearance for the lever 55 lever_v_clearance=.7, // vertical clearance for the lever
58 spring_d_clearance=1, 56 spring_d_clearance=1,
59 protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion 57 protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion
60 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion 58 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion
61 mount_screw_d_tolerance=.4, 59 mount_screw_d_tolerance=.4,
62 idler_v_tolerance=.5, 60 idler_v_tolerance=.5,
63 knob_bore_d_tolerance=.6, 61 knob_bore_d_tolerance=.6,
64 st_nut_h_tolerance=.2, 62 st_nut_h_tolerance=.2,
65 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */ 63 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
66 st_screw_d_tolerance=.5, 64 st_screw_d_tolerance=.5,
67 st_split_w_tolerance = .3, 65 st_split_w_tolerance = .3,
68 66
69 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis. 67 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
70 min_xy_shell = 2*extrusion_width, 68 min_xy_shell = 2*extrusion_width,
71 69
72 what="lever", // lever|body|knob|springpad|* 70 what="lever", // lever|body|knob|springpad|*
73 left=false, 71 left=false,
74 vitamins = true, 72 vitamins = true,
75 bridges = true, 73 bridges = true,
76 debug = false, 74 debug = false,
77 label = "another" 75 label = "another"
78) { 76) {
79 fnd = 2*PI; fnr = 2*fnd; 77 fnd = 2*PI; fnr = 2*fnd;
78 function lu(m,k) = m[search([k],m)[0]][1];
80 79
80 pulley_d = lu(pulley,"d");
81 pulley_h = lu(pulley,"h");
82 teeth_elevation = lu(pulley,"fe");
83 filament_offset = lu(pulley,"g")+filament_d/2;
84 pulley_d_clearance = lu(pulley,"ssrc")*2;
81 idler_filament_offset = filament_path_d/2; // -filament_offset; 85 idler_filament_offset = filament_path_d/2; // -filament_offset;
82 lever_shell = mount_screwhead_h+0.5; 86 lever_shell = mount_screwhead_h+0.5;
83 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); 87 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell);
84 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie 88 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie
85 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell; 89 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell;
86 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) 90 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2))
87 sqrt(c*c+pow(a-c,2)); 91 sqrt(c*c+pow(a-c,2));
88 longwing_travel = idler_travel*longwing/shortwing; 92 longwing_travel = idler_travel*longwing/shortwing;
89 h_ = (pulley_d+idler_d)/(2*sqrt(2)); 93 h_ = (pulley_d+idler_d)/(2*sqrt(2));
90 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); 94 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) );
91 spring_dl = idler_travel*longwing/ri; 95 spring_dl = idler_travel*longwing/ri;
92 // finger and spring support 96 // finger and spring support
diff --git a/pulley_data.scad b/pulley_data.scad
new file mode 100644
index 0000000..a1523de
--- a/dev/null
+++ b/pulley_data.scad
@@ -0,0 +1,8 @@
1pulley_e3d = [
2 ["d", 11.5 ], // outer diameter
3 ["h", 11 ], // pulley height
4 ["g", 8.25-3 - 11.5/2 ],// depth of U-groove, filament offset from the surface
5 ["fe", 7.5 ], // filament elevation from the bottom
6 ["ssrc", 2 ], // set screw radial clearance
7];
8