author | Michael Krelin <hacker@klever.net> | 2018-07-27 16:37:37 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-07-27 16:37:37 (UTC) |
commit | 5752d03e9b6750447faaa5174bab1e797e4e3f2f (patch) (unidiff) | |
tree | cfef35d053984934896e1d66e27daf5b7a6a2f08 /another.scad | |
parent | 86fca7bf690279eadea33252e75227cd494cc34c (diff) | |
download | extrudery-5752d03e9b6750447faaa5174bab1e797e4e3f2f.zip extrudery-5752d03e9b6750447faaa5174bab1e797e4e3f2f.tar.gz extrudery-5752d03e9b6750447faaa5174bab1e797e4e3f2f.tar.bz2 |
another: switch to pushfittery
(without extra customization yet)
-rw-r--r-- | another.scad | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/another.scad b/another.scad index 9f42f46..b7b6e3a 100644 --- a/another.scad +++ b/another.scad | |||
@@ -1,21 +1,15 @@ | |||
1 | draft=true; | 1 | draft=true; |
2 | layer_height=0.2; extrusion_width=0.4; | 2 | layer_height=0.2; extrusion_width=0.4; |
3 | epsilon=0.01; | 3 | epsilon=0.01; |
4 | $fs=0.0125; | 4 | $fs=0.0125; |
5 | 5 | ||
6 | use <threads.scad>; | 6 | use <pushfittery.scad>; |
7 | module pushfit_thread(h=10) { | 7 | include <pushfit_data.scad>; |
8 | thr = 3/8 + .5/25.4; | ||
9 | slit = 25.4*thr/2 + 0.4; | ||
10 | if(draft) cylinder(d=thr*25.4,h=h); | ||
11 | else english_thread(diameter=thr,threads_per_inch=28,length=h/25.4,internal=true); | ||
12 | translate([-2,-slit,0]) cube([4,2*slit,h]); | ||
13 | } | ||
14 | 8 | ||
15 | module the_extruder( | 9 | module the_extruder( |
16 | // motor properties | 10 | // motor properties |
17 | gearbox_d = 36, | 11 | gearbox_d = 36, |
18 | mount_d = 28, // the distance between opposite mounting holes | 12 | mount_d = 28, // the distance between opposite mounting holes |
19 | mounthole_depth = 5, | 13 | mounthole_depth = 5, |
20 | protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox | 14 | protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox |
21 | bore_d = 8, bore_l = 17.6, | 15 | bore_d = 8, bore_l = 17.6, |
@@ -108,17 +102,17 @@ module the_extruder( | |||
108 | cylinder(d=idler_d,h=idler_h,center=true,$fn=30); | 102 | cylinder(d=idler_d,h=idler_h,center=true,$fn=30); |
109 | cylinder(d=idler_id,h=lever_thickness+2,center=true,$fn=30); | 103 | cylinder(d=idler_id,h=lever_thickness+2,center=true,$fn=30); |
110 | }//place idler | 104 | }//place idler |
111 | // filament path | 105 | // filament path |
112 | rotate([0,0,45]) translate([(pulley_d-filament_path_d)/2,0,0]) { | 106 | rotate([0,0,45]) translate([(pulley_d-filament_path_d)/2,0,0]) { |
113 | rotate([90,0,0]) cylinder(d=filament_d,h=gearbox_d*2,center=true,$fn=15); | 107 | rotate([90,0,0]) cylinder(d=filament_d,h=gearbox_d*2,center=true,$fn=15); |
114 | rotate([-90,0,0]) | 108 | rotate([-90,0,0]) |
115 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d]) | 109 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d]) |
116 | pushfit_thread(); | 110 | pushfit(pushfit_threaded); |
117 | } | 111 | } |
118 | }//translate teeth | 112 | }//translate teeth |
119 | }//translate pulley | 113 | }//translate pulley |
120 | }//translate protrusion | 114 | }//translate protrusion |
121 | }//vitamins | 115 | }//vitamins |
122 | 116 | ||
123 | module lever() { | 117 | module lever() { |
124 | translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) { | 118 | translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) { |
@@ -226,17 +220,17 @@ module the_extruder( | |||
226 | cylinder(d=mount_screwhead_d,h=body_h+1,$fn=2*PI*mount_screwhead_d); | 220 | cylinder(d=mount_screwhead_d,h=body_h+1,$fn=2*PI*mount_screwhead_d); |
227 | }//for | 221 | }//for |
228 | // pushfit threads | 222 | // pushfit threads |
229 | translate([0,0,filament_elevation]) | 223 | translate([0,0,filament_elevation]) |
230 | rotate([0,0,45]) translate([pulley_d/2,0,0]) | 224 | rotate([0,0,45]) translate([pulley_d/2,0,0]) |
231 | rotate([-90,0,0]) | 225 | rotate([-90,0,0]) |
232 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d+epsilon]) | 226 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d+epsilon]) |
233 | rotate([0,0,180]) { | 227 | rotate([0,0,180]) { |
234 | pushfit_thread(h=10); | 228 | pushfit(pushfit_threaded); |
235 | cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=2*PI*filament_guide_d); | 229 | cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=2*PI*filament_guide_d); |
236 | translate([0,-filament_guide_d/2/sqrt(2),0]) | 230 | translate([0,-filament_guide_d/2/sqrt(2),0]) |
237 | rotate([0,0,45]) | 231 | rotate([0,0,45]) |
238 | cube(size=[filament_guide_d/2,filament_guide_d/2,gearbox_d],center=true); | 232 | cube(size=[filament_guide_d/2,filament_guide_d/2,gearbox_d],center=true); |
239 | } | 233 | } |
240 | // pulley | 234 | // pulley |
241 | cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); | 235 | cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); |
242 | // leverspace | 236 | // leverspace |