summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile4
-rw-r--r--another.scad38
2 files changed, 40 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9444a03..31135cb 100644
--- a/Makefile
+++ b/Makefile
@@ -13,3 +13,3 @@ clean:
13stl-another-%: 13stl-another-%:
14 $(MAKE) another-$*-{body,lever}.stl 14 $(MAKE) another-$*-{body,lever,knob}.stl
15 15
@@ -19,2 +19,4 @@ another-%-lever.stl: another-%.scad another.scad
19 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" 19 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<"
20another-%-knob.stl: another-%.scad another.scad
21 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<"
20 22
diff --git a/another.scad b/another.scad
index fa60676..9f42f46 100644
--- a/another.scad
+++ b/another.scad
@@ -34,2 +34,7 @@ module the_extruder(
34 filament_guide_d = 4, // PTFE filament guide diameter 34 filament_guide_d = 4, // PTFE filament guide diameter
35 // knob properties
36 knob_h = 10,
37 knob_bore_l = 4,
38 knob_indent_d = 4,
39 knob_indents = 12,
35 40
@@ -49,2 +54,3 @@ module the_extruder(
49 idler_v_tolerance=.5, 54 idler_v_tolerance=.5,
55 knob_bore_d_tolerance=.6,
50 56
@@ -294,2 +300,30 @@ module the_extruder(
294 }//body module 300 }//body module
301
302 module knob() {
303 ch = knob_indent_d/2;
304 translate([0,0,body_h+epsilon]) {
305 mirror([0,0,1]) translate([0,0,-epsilon]) {
306 difference() {
307 cylinder(d=pulley_d,h=knob_bore_l,$fn=pulley_d*PI*2);
308 translate([0,0,-1]) difference() {
309 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2);
310 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1])
311 cube([bore_d+2,bore_d/2,knob_bore_l+4]);
312 }
313 }
314 }
315 difference() {
316 union() {
317 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=PI*gearbox_d*2);
318 translate([0,0,ch])
319 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=PI*gearbox_d*2);
320 translate([0,0,knob_h-ch])
321 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=PI*gearbox_d*2);
322 }
323 for(a=[0:360/knob_indents:359]) rotate([0,0,a])
324 translate([0,gearbox_d/2,-1])
325 cylinder(d=knob_indent_d,h=knob_h+2,$fn=knob_indent_d*PI*2);
326 }
327 }
328 }//knob module
295 329
@@ -298,5 +332,7 @@ module the_extruder(
298 else if(what=="body") color("yellow",0.7) body(); 332 else if(what=="body") color("yellow",0.7) body();
299 else if(what=="both") { 333 else if(what=="knob") color("red",0.7) knob();
334 else if(what=="both" || what=="*") {
300 color("green",0.7) lever(); 335 color("green",0.7) lever();
301 color("yellow",0.7) body(); 336 color("yellow",0.7) body();
337 color("red",0.7) knob();
302 } 338 }