summaryrefslogtreecommitdiff
path: root/another.scad
Unidiff
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad8
1 files changed, 6 insertions, 2 deletions
diff --git a/another.scad b/another.scad
index 8334b11..1811584 100644
--- a/another.scad
+++ b/another.scad
@@ -5,65 +5,65 @@ $fs=0.0125;
5 5
6use <pushfittery.scad>; 6use <pushfittery.scad>;
7include <pushfit_data.scad>; 7include <pushfit_data.scad>;
8include <pulley_data.scad>; 8include <pulley_data.scad>;
9 9
10module the_extruder( 10module the_extruder(
11 // motor properties 11 // motor properties
12 gearbox_d = 36, 12 gearbox_d = 36,
13 mount_d = 28, // the distance between opposite mounting holes 13 mount_d = 28, // the distance between opposite mounting holes
14 mounthole_depth = 5, 14 mounthole_depth = 5,
15 mounthole_min_depth = 3, mounthole_max_depth = 4, 15 mounthole_min_depth = 3, mounthole_max_depth = 4,
16 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
17 bore_d = 8, bore_l = 17.6, 17 bore_d = 8, bore_l = 17.6,
18 bore_dd = 7, 18 bore_dd = 7,
19 // pulley properties 19 // pulley properties
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_indent_d = 4, 32 knob_indent_d = 4,
33 knob_indents = 12, 33 knob_indents = 12,
34 knob_v_clearance = 1, 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, st_screw_l = 16,
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
47 pf = pushfit_metal, 47 pf = pushfit_metal,
48 pf_shell = max(3*layer_height,3*extrusion_width), 48 pf_shell = max(3*layer_height,3*extrusion_width),
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=.5, 52 idler_clearance=.5,
53 pulley_small_d_clearance=.5, 53 pulley_small_d_clearance=.5,
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=.8, 60 knob_bore_d_tolerance=.8,
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 st_split_w_tolerance = .3, 64 st_split_w_tolerance = .3,
65 65
66 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis. 66 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
67 min_xy_shell = 2*extrusion_width, 67 min_xy_shell = 2*extrusion_width,
68 68
69 body_label = "another", body_label_thickness = layer_height, 69 body_label = "another", body_label_thickness = layer_height,
@@ -140,65 +140,69 @@ module the_extruder(
140 % if(vitamins) mirrorleft() { 140 % if(vitamins) mirrorleft() {
141 translate([0,0,-epsilon]) mirror([0,0,1]) cylinder(d=gearbox_d,h=1,$fn=60); 141 translate([0,0,-epsilon]) mirror([0,0,1]) cylinder(d=gearbox_d,h=1,$fn=60);
142 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) 142 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0])
143 cylinder(d=mount_screw_d,h=20,$fn=30); 143 cylinder(d=mount_screw_d,h=20,$fn=30);
144 translate([0,0,-epsilon]) cylinder(d=protrusion_d,h=protrusion_h,$fn=30); 144 translate([0,0,-epsilon]) cylinder(d=protrusion_d,h=protrusion_h,$fn=30);
145 translate([0,0,protrusion_h]) { 145 translate([0,0,protrusion_h]) {
146 difference() { 146 difference() {
147 cylinder(d=bore_d,h=bore_l,$fn=30); 147 cylinder(d=bore_d,h=bore_l,$fn=30);
148 translate([-bore_d/2-1,bore_dd-bore_d/2,-1]) 148 translate([-bore_d/2-1,bore_dd-bore_d/2,-1])
149 cube([bore_d+2,bore_d/2,bore_l+2]); 149 cube([bore_d+2,bore_d/2,bore_l+2]);
150 } 150 }
151 translate([0,0,pulley_elevation]) { 151 translate([0,0,pulley_elevation]) {
152 cylinder(d=pulley_d,h=pulley_h,$fn=30); 152 cylinder(d=pulley_d,h=pulley_h,$fn=30);
153 translate([0,0,teeth_elevation]) { 153 translate([0,0,teeth_elevation]) {
154 place_idler() { 154 place_idler() {
155 cylinder(d=idler_d,h=idler_h,center=true,$fn=30); 155 cylinder(d=idler_d,h=idler_h,center=true,$fn=30);
156 cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30); 156 cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30);
157 }//place idler 157 }//place idler
158 // filament path 158 // filament path
159 rotate([0,0,45]) { 159 rotate([0,0,45]) {
160 translate([pulley_d/2-idler_filament_offset,0,0]) rotate([90,0,0]) { 160 translate([pulley_d/2-idler_filament_offset,0,0]) rotate([90,0,0]) {
161 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15); 161 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
162 }//rotate translate 162 }//rotate translate
163 translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) { 163 translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) {
164 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15); 164 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
165 translate([0,0,pf_offset]) 165 translate([0,0,pf_offset])
166 pushfit(pf); 166 pushfit(pf);
167 }//rotate translate 167 }//rotate translate
168 }//rotate 168 }//rotate
169 }//translate teeth 169 }//translate teeth
170 }//translate pulley 170 }//translate pulley
171 }//translate protrusion 171 }//translate protrusion
172 }//vitamins 172 // spring tensioner screw
173 translate([-gearbox_d/2,-longwing,ls_z])
174 rotate([0,90,0])
175 cylinder(d=st_screw_d,h=st_screw_l);
176 }//mirrorleft if(vitamins)
173 177
174 module lever() { 178 module lever() {
175 translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) { 179 translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) {
176 difference() { 180 difference() {
177 union() { 181 union() {
178 hull() { 182 hull() {
179 place_idler() 183 place_idler()
180 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); 184 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
181 translate([mount_d/2,0,0]) 185 translate([mount_d/2,0,0])
182 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); 186 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
183 }//hull 187 }//hull
184 hull() { 188 hull() {
185 translate([mount_d/2,0,0]) 189 translate([mount_d/2,0,0])
186 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); 190 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
187 translate([mount_d/2,-longwing,0]) rotate([0,90,0]) 191 translate([mount_d/2,-longwing,0]) rotate([0,90,0])
188 cylinder(d=lever_thickness,h=lsd,center=true,$fn=60); 192 cylinder(d=lever_thickness,h=lsd,center=true,$fn=60);
189 }//hull 193 }//hull
190 }//union 194 }//union
191 195
192 // filament path 196 // filament path
193 place_idler() 197 place_idler()
194 translate([-idler_d/2-idler_filament_offset,0,0]) 198 translate([-idler_d/2-idler_filament_offset,0,0])
195 rotate([90,0,0]) { 199 rotate([90,0,0]) {
196 mirror([0,1,0]) 200 mirror([0,1,0])
197 teardrop(d=filament_path_d,h=3*gearbox_d,center=true); 201 teardrop(d=filament_path_d,h=3*gearbox_d,center=true);
198 translate([0,0, 202 translate([0,0,
199 sqrt(2)*(mount_d-pulley_d+lsd)/2 203 sqrt(2)*(mount_d-pulley_d+lsd)/2
200 ]) { 204 ]) {
201 cylinder(d1=filament_path_d,d2=2*filament_path_d, 205 cylinder(d1=filament_path_d,d2=2*filament_path_d,
202 h=filament_path_d,$fn=2*filament_path_d*fnd); 206 h=filament_path_d,$fn=2*filament_path_d*fnd);
203 translate([0,0,filament_path_d-epsilon]) 207 translate([0,0,filament_path_d-epsilon])
204 cylinder(d=2*filament_path_d,h=lsd*sqrt(2),$fn=2*filament_path_d*fnd); 208 cylinder(d=2*filament_path_d,h=lsd*sqrt(2),$fn=2*filament_path_d*fnd);