summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2017-02-06 21:19:20 (UTC)
committer Michael Krelin <hacker@klever.net>2017-02-06 21:19:20 (UTC)
commitd481811cad040ab887ffb9dca6b41616e842e0ca (patch) (unidiff)
tree133c43736e214ede19cfa01e4d8b9a2900249ab4
parent25836f14f59bdeb216a6fb189b6c4720db518c0d (diff)
downloadextrudery-d481811cad040ab887ffb9dca6b41616e842e0ca.zip
extrudery-d481811cad040ab887ffb9dca6b41616e842e0ca.tar.gz
extrudery-d481811cad040ab887ffb9dca6b41616e842e0ca.tar.bz2
bore shape as it is
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad10
1 files changed, 7 insertions, 3 deletions
diff --git a/another.scad b/another.scad
index f78d1b0..d4a3f90 100644
--- a/another.scad
+++ b/another.scad
@@ -16,12 +16,13 @@ module the_extruder(
16 // motor properties 16 // motor properties
17 gearbox_d = 36, 17 gearbox_d = 36,
18 mount_d = 28, // the distance between opposite mounting holes 18 mount_d = 28, // the distance between opposite mounting holes
19 mounthole_depth = 5, 19 mounthole_depth = 5,
20 protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox 20 protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox
21 bore_d = 8, bore_l = 17.6, 21 bore_d = 8, bore_l = 17.6,
22 bore_dd = 7,
22 // pulley properties 23 // pulley properties
23 pulley_d = 11.5, pulley_h=10, 24 pulley_d = 11.5, pulley_h=10,
24 pulley_elevation = 1, // pulley elevation above the protrusion 25 pulley_elevation = 1, // pulley elevation above the protrusion
25 teeth_elevation = 7.5, // distance from the bottom of the pulley to its teeth 26 teeth_elevation = 7.5, // distance from the bottom of the pulley to its teeth
26 // idler properties 27 // idler properties
27 idler_d = 9.5, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height 28 idler_d = 9.5, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height
@@ -75,20 +76,23 @@ module the_extruder(
75 }else if(r) { 76 }else if(r) {
76 hh=sqrt(pow(r,2)-pow(d,2)/4); 77 hh=sqrt(pow(r,2)-pow(d,2)/4);
77 translate([0,0,hh]) sphere(r=r,$fn=2*PI*r); 78 translate([0,0,hh]) sphere(r=r,$fn=2*PI*r);
78 } 79 }
79 } 80 }
80 81
81 // vitamins
82 % if(vitamins) mirrorleft() { 82 % if(vitamins) mirrorleft() {
83 translate([0,0,-epsilon]) mirror([0,0,1]) cylinder(d=gearbox_d,h=1,$fn=60); 83 translate([0,0,-epsilon]) mirror([0,0,1]) cylinder(d=gearbox_d,h=1,$fn=60);
84 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) 84 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0])
85 cylinder(d=mount_screw_d,h=20,$fn=30); 85 cylinder(d=mount_screw_d,h=20,$fn=30);
86 translate([0,0,-epsilon]) cylinder(d=protrusion_d,h=protrusion_h,$fn=30); 86 translate([0,0,-epsilon]) cylinder(d=protrusion_d,h=protrusion_h,$fn=30);
87 translate([0,0,protrusion_h]) { 87 translate([0,0,protrusion_h]) {
88 cylinder(d=bore_d,h=bore_l,$fn=30); 88 difference() {
89 cylinder(d=bore_d,h=bore_l,$fn=30);
90 translate([-bore_d/2-1,bore_dd-bore_d/2,-1])
91 cube([bore_d+2,bore_d/2,bore_l+2]);
92 }
89 translate([0,0,pulley_elevation]) { 93 translate([0,0,pulley_elevation]) {
90 cylinder(d=pulley_d,h=pulley_h,$fn=30); 94 cylinder(d=pulley_d,h=pulley_h,$fn=30);
91 translate([0,0,teeth_elevation]) { 95 translate([0,0,teeth_elevation]) {
92 place_idler() { 96 place_idler() {
93 cylinder(d=idler_d,h=idler_h,center=true,$fn=30); 97 cylinder(d=idler_d,h=idler_h,center=true,$fn=30);
94 cylinder(d=idler_id,h=lever_thickness+2,center=true,$fn=30); 98 cylinder(d=idler_id,h=lever_thickness+2,center=true,$fn=30);
@@ -100,13 +104,13 @@ module the_extruder(
100 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d]) 104 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d])
101 pushfit_thread(); 105 pushfit_thread();
102 } 106 }
103 }//translate teeth 107 }//translate teeth
104 }//translate pulley 108 }//translate pulley
105 }//translate protrusion 109 }//translate protrusion
106 }// vitamins to let 110 }//vitamins
107 111
108 module lever() { 112 module lever() {
109 translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) { 113 translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) {
110 difference() { 114 difference() {
111 union() { 115 union() {
112 hull() { 116 hull() {