Commit 1952f3fa by Hubert

first handle version printed

1 parent 91d69dca
This diff could not be displayed because it is too large.
include<vars.scad> include<vars.scad>
module cornerdrills() { module cornerdrills() {
translate([2.4,0.8,0]) { translate([24,8,0]) {
cylinder(d=1.2,h=4, $fn=10); cylinder(d=12,h=40, $fn=10);
} }
translate([2.4,0.8,0]) { translate([24,8,0]) {
hull() { hull() {
cylinder(d=0.6,h=50, $fn=10); cylinder(d=6,h=500, $fn=10);
translate([1.5,0,0]) translate([15,0,0])
cylinder(d=0.6,h=50, $fn=10); cylinder(d=6,h=500, $fn=10);
} }
} }
translate([0.8,2.4,0]) { translate([8,24,0]) {
hull() { hull() {
cylinder(d=0.6,h=40, $fn=10); cylinder(d=6,h=400, $fn=10);
translate([0,1.5,0]) cylinder(d=0.6,h=40, $fn=10); translate([0,15,0]) cylinder(d=6,h=400, $fn=10);
} }
} }
translate([0.8,2.4,10]) { translate([8,24,100]) {
cylinder(d=1.2,h=20, $fn=10); cylinder(d=12,h=200, $fn=10);
} }
} }
...@@ -27,10 +27,10 @@ module draindrills(x,y) { ...@@ -27,10 +27,10 @@ module draindrills(x,y) {
/* #cylinder(d=1,h=10); */ /* #cylinder(d=1,h=10); */
/* } */ /* } */
minX = gratesize+strength+0.6; minX = gratesize+strength+6;
minY = gratesize+strength+0.6; minY = gratesize+strength+6;
maxX = x-gratesize-strength-0.6; maxX = x-gratesize-strength-6;
maxY = y-gratesize-strength-0.6; maxY = y-gratesize-strength-6;
/* echo(minX); */ /* echo(minX); */
/* echo(maxX); */ /* echo(maxX); */
...@@ -38,13 +38,13 @@ module draindrills(x,y) { ...@@ -38,13 +38,13 @@ module draindrills(x,y) {
for (mmy =[minY,maxY]) for (mmy =[minY,maxY])
translate([ mmx translate([ mmx
, mmy , mmy
, -5 , -50
]) cylinder(d=0.6,h=10, $fn=10); ]) cylinder(d=6,h=100, $fn=10);
for (xx =[1:5]) for (xx =[1:5])
for (yy =[1:5]) for (yy =[1:5])
translate([x/6*xx,y/6*yy,-5]) translate([x/6*xx,y/6*yy,-5])
cylinder(d=1,h=10, $fn=10); cylinder(d=10,h=100, $fn=10);
/* translate([x/2,y/4,-5]) { */ /* translate([x/2,y/4,-5]) { */
...@@ -57,15 +57,15 @@ module draindrills(x,y) { ...@@ -57,15 +57,15 @@ module draindrills(x,y) {
module gx12drill(z) { module gx12drill(z) {
translate([gxXPos,gxYPos,0]) translate([gxXPos,gxYPos,0])
cylinder(d=1.2,h=3, $fn=10); cylinder(d=12,h=30, $fn=10);
translate([gxXPos,gxYPos,z-2]) translate([gxXPos,gxYPos,z-20])
cylinder(d=1.2,h=3, $fn=10); cylinder(d=12,h=30, $fn=10);
translate([gxXPos,gxYPos,z-4]) translate([gxXPos,gxYPos,z-40])
cylinder(d=0.6,h=3, $fn=10); cylinder(d=6,h=30, $fn=10);
} }
module pipedrill() { module pipedrill() {
translate([1,6,0]) cylinder(d=0.6,h=50, $fn=10); translate([10,60,0]) cylinder(d=6,h=500, $fn=10);
} }
module drills(x,y,z) { module drills(x,y,z) {
...@@ -75,6 +75,6 @@ module drills(x,y,z) { ...@@ -75,6 +75,6 @@ module drills(x,y,z) {
mirror([1,0,0]) translate([-x,0,0]) cornerdrills(); mirror([1,0,0]) translate([-x,0,0]) cornerdrills();
mirror([1,0,0]) translate([-x,y,0]) mirror([0,1,0]) cornerdrills(); mirror([1,0,0]) translate([-x,y,0]) mirror([0,1,0]) cornerdrills();
mirror([1,0,0]) translate([-x,0,0]) gx12drill(z); mirror([1,0,0]) translate([-x,0,0]) gx12drill(z);
mirror([1,0,0]) translate([-x,0,0]) rotate([0,0,90]) translate([0,-1.4,0]) gx12drill(z); mirror([1,0,0]) translate([-x,0,0]) rotate([0,0,90]) translate([0,-14,0]) gx12drill(z);
pipedrill(); pipedrill();
} }
...@@ -4,28 +4,7 @@ include<modules.scad> ...@@ -4,28 +4,7 @@ include<modules.scad>
include<cuts.scad> include<cuts.scad>
include<screws.scad> include<screws.scad>
include<pipes.scad> include<pipes.scad>
include<handles.scad> use<handles.scad>
module volume(x,y,z,extra) {
hull() {minkowski() {
translate([strength*1.5,strength*1.5,0]) cube([
x-(offset)*2-strength*3,
y-(offset)*2-strength*3,
1
]);
sphere(r=roundborderInner+extra);
}
minkowski() {
translate([0,0,z]) cube([
x-(offset)*2,
y-(offset)*2,
1
]);
sphere(r=roundborderInner+extra);
}
}
}
module innerWall(x,y,z) { module innerWall(x,y,z) {
difference() { difference() {
...@@ -33,12 +12,13 @@ module innerWall(x,y,z) { ...@@ -33,12 +12,13 @@ module innerWall(x,y,z) {
volume(x,y,z,0); volume(x,y,z,0);
} }
} }
module grateX(x,y,z) { module grateX(x,y,z) {
translate([0,8,0]) cube([x/2,strength,z]); translate([0,innergrateXypos,0]) cube([x/2,strength,z]);
} }
module grateY(x,y,z) { module grateY(x,y,z) {
translate([7,0,0]) cube([strength,y/2,z]); translate([innergrateYxpos,0,0]) cube([strength,y/2,z]);
} }
module grateXY(x,y,z) { module grateXY(x,y,z) {
...@@ -95,10 +75,10 @@ module eurobox(x,y,z,handle,handlecaps,pipes,drilled,screws,locked,exploded) { ...@@ -95,10 +75,10 @@ module eurobox(x,y,z,handle,handlecaps,pipes,drilled,screws,locked,exploded) {
mirroredgrates(x,y,z); mirroredgrates(x,y,z);
grateZ(x,y,base); grateZ(x,y,base);
grateZ(x,y,z-(roundborderInner+strength*2)); grateZ(x,y,z-(roundborderInner+strength*2));
grateZ(x,y,z-(2.06+roundborderInner+strength*3)); grateZ(x,y,z-(20.6+roundborderInner+strength*3));
if (handle==true) { if (handle==true) {
handleShape(x,y,z,strength,bool=false); handleShape(x,y,z,strength,bool=false);
translate([0,y-4,0])mirror([0,1,0]){ translate([0,y-30,0])mirror([0,1,0]){
handleShape(x,y,z,strength,bool=false); handleShape(x,y,z,strength,bool=false);
} }
} }
...@@ -124,7 +104,7 @@ module eurobox(x,y,z,handle,handlecaps,pipes,drilled,screws,locked,exploded) { ...@@ -124,7 +104,7 @@ module eurobox(x,y,z,handle,handlecaps,pipes,drilled,screws,locked,exploded) {
} }
} }
/* eurobox(30,40,22,true); */ eurobox(300,400,220,true);
/* testprobes */ /* testprobes */
......
...@@ -27,14 +27,14 @@ include<lid.scad> ...@@ -27,14 +27,14 @@ include<lid.scad>
/* translate([0,0,-7]) */ /* translate([0,0,-7]) */
/* eurobox(30,40,7,handle=false); */ /* eurobox(30,40,7,handle=false); */
translate([0,0,5.31]) translate([0,0,53.1])
eurobox(30,40,22, eurobox(300,400,220,
handle=true, handle=true,
handlecaps=true, handlecaps=false,
pipes=true, pipes=false,
drilled=true, drilled=false,
screws=true, screws=false,
locked=true, locked=false,
exploded=false exploded=false
); );
......
No preview for this file type
This diff could not be displayed because it is too large.
...@@ -4,7 +4,7 @@ module materialDot(radius, height, roundness) { ...@@ -4,7 +4,7 @@ module materialDot(radius, height, roundness) {
roundness = roundness >= height/2 ? height/2-0.000001 : roundness; roundness = roundness >= height/2 ? height/2-0.000001 : roundness;
translate([0,0, roundness]) minkowski() { translate([0,0, roundness]) minkowski() {
linear_extrude( height = height-roundness*2 linear_extrude( height = height-roundness*2
, convexity = 10 , convexity = 100
, twist = 0 ) , twist = 0 )
circle( r=radius-roundness); circle( r=radius-roundness);
sphere(r=roundness); sphere(r=roundness);
...@@ -12,7 +12,7 @@ module materialDot(radius, height, roundness) { ...@@ -12,7 +12,7 @@ module materialDot(radius, height, roundness) {
} }
module shapeZ(x,y,z) { module shapeZ(x,y,z) {
translate([0,0,-25]) minkowski() { translate([0,0,-250]) minkowski() {
cube([ cube([
x-(offset)*2, x-(offset)*2,
y-(offset)*2, y-(offset)*2,
...@@ -20,36 +20,68 @@ module shapeZ(x,y,z) { ...@@ -20,36 +20,68 @@ module shapeZ(x,y,z) {
]); ]);
cylinder( cylinder(
r=offset, r=offset,
h=50 h=500
); );
} }
} }
module volume(x,y,z,extra) {
hull() {minkowski() {
translate([strength*1.5,strength*1.5,0]) cube([
x-(offset)*2-strength*3,
y-(offset)*2-strength*3,
1
]);
sphere(r=roundborderInner+extra);
}
minkowski() {
translate([0,0,z]) cube([
x-(offset)*2,
y-(offset)*2,
1
]);
sphere(r=roundborderInner+extra);
}
}
}
module handleShape(x,y,z,extra,bool,borders){ module handleShape(x,y,z,extra,bool,borders){
union() {
if(bool==true) volume(x,y,z,0);
translate([ translate([
x/2 - handleWidth/2 - offset, x/2 - handleWidth/2 - offset,
-( offset+1 ), -( offset+10 ),
z-(2.06+roundborderInner+strength*3) z-(20.6+roundborderInner+strength*3)
]) { ]) {
hull() { if(bool==true && borders!=false){
translate([-extra,0,-1])cube([handleWidth+extra*2,5,1]); translate([-strength*2,0,0]) rotate([90,0,90]) linear_extrude(height = 140, center = false, convexity = 10)
translate([handleCorner,0,handleCorner-handleHeight]) rotate([-90,0,0]) union() { polygon(points=[[-10,-50]
cylinder(r=handleCorner+extra,h=5); ,[25.7-2,-50]
translate([handleWidth-handleCorner*2,0,0]) cylinder(r=handleCorner+extra,h=5); ,[25.4-2,-32.5]
,[18.5,-32.5]
,[10,-5]
,[10,strength]
,[20,strength]
,[20,10]
,[-10,10]
]);
} }
hull(){
/* #translate([-extra,0,-10])cube([handleWidth+extra*2,50,10]); */
rotate([-90,0,0]) union() {
translate([2.5,2.5,0]) cylinder(r=2.5+extra,h=50);
translate([handleWidth-2.5,2.5,0]) cylinder(r=2.5+extra,h=50);
} }
if(borders==true) translate([-strength*2,0+gratesize+1,-4.5]) translate([handleCorner,0,handleCorner-handleHeight]) rotate([-90,0,0]) union() {
cube([handleWidth+strength*4,2,6]); cylinder(r=handleCorner+extra,h=50);
translate([handleWidth-handleCorner*2,0,0]) cylinder(r=handleCorner+extra,h=50);
if(bool==true) {
if(borders==true) translate([-strength*2,0,-0.5])
cube([handleWidth+strength*4,1,2]);
hull() {
translate([-strength*2,0,-1.5])
cube([handleWidth+strength*4,1,1]);
translate([-strength*2,0.85,-(1+handleHeight+strength)])
cube([handleWidth+strength*4,1,1]);
} }
} }
} }
/* shapeZ(x,y,z); */
/* translate([-strength*2,0+gratesize+10,-45]) */
/* cube([handleWidth+strength*4,60,60]); */
}
} }
module pcb() {
cube([86,22.5,1.5]);
translate([86,11.25,0])cylinder(d=22.5,h=1.5, $fn=4);
}
module connector() {
/* translate([-2.5,11.25-5,1.5]) cube([7,10,6]); */
translate([-2.5-5.5,11.25-5-0.5,1.5]) cube([12.5,11,6]);
}
module thsolder() {
translate([3,11.25-4.5,-1.7]) cube([3,9,1.7]);
}
module parts() {
/* translate([8,0.5,1.5]) cube([15,21.5,2.5]); */
translate([-8,0,1.5]) cube([27+4,22.5,2.5]);
}
module moisture_sensor() {
difference() {
union() {
pcb();
connector();
thsolder();
parts();
}
union() {
translate([20,0,-1]) cylinder(r=1.5,h=6,$fn=6);
translate([20,22.5,-1]) cylinder(r=1.5,h=6,$fn=6);
}
}
}
include<../handles.scad>
rotate([-90,0,0])
handle(30,40,22, false);
rotate([-90,0,0])
handle(30,40,22, true);
No preview for this file type
$fn=20; $fn=20;
strength = 0.25;strength = 0.25; strength = 2.5;
gratesize = 1.68; gratesize = 16.8;
roundborderInner = 0.5; innergrateXypos = 80;
recess = 0.787; innergrateYxpos = 70;
lidrecess = 0.57;
handleWidth = 12.63;
handleHeight = 3;
handleCorner = 0.8;
gxXPos = 5.8; roundborderInner = 5;
gxYPos = 0.7; recess = 7.87;
lidrecess = 5.7;
handleWidth = 126.3;
handleHeight = 30;
handleCorner = 8;
gxXPos = 58;
gxYPos = 7;
offset = gratesize+roundborderInner; offset = gratesize+roundborderInner;
base = recess-(roundborderInner+strength); base = recess-(roundborderInner+strength);
screwhead = 0.4; screwhead = 4;
nutheight = 0.5; nutheight = 5;
shimblockHeight = 1; shimblockHeight = 10;
shimheight = 0.14; shimheight = 1.4;
shimdiameter = 1.2; shimdiameter = 12;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!