summaryrefslogtreecommitdiff
path: root/another.scad
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 /another.scad
parent2d21a45f6f486469cf0d48aea6c5384419c597e3 (diff)
downloadextrudery-cb33c94fe8264c3f689268b80e7bd767b31f72dc.zip
extrudery-cb33c94fe8264c3f689268b80e7bd767b31f72dc.tar.gz
extrudery-cb33c94fe8264c3f689268b80e7bd767b31f72dc.tar.bz2
another: lookup-driven filament drive puley specification
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad12
1 files changed, 8 insertions, 4 deletions
diff --git a/another.scad b/another.scad
index ed18874..51358ee 100644
--- a/another.scad
+++ b/another.scad
@@ -2,27 +2,26 @@ draft=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,
@@ -49,13 +48,12 @@ module the_extruder(
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,
@@ -74,13 +72,19 @@ module the_extruder(
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))