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>
module cornerdrills() {
translate([2.4,0.8,0]) {
cylinder(d=1.2,h=4, $fn=10);
translate([24,8,0]) {
cylinder(d=12,h=40, $fn=10);
}
translate([2.4,0.8,0]) {
translate([24,8,0]) {
hull() {
cylinder(d=0.6,h=50, $fn=10);
translate([1.5,0,0])
cylinder(d=0.6,h=50, $fn=10);
cylinder(d=6,h=500, $fn=10);
translate([15,0,0])
cylinder(d=6,h=500, $fn=10);
}
}
translate([0.8,2.4,0]) {
translate([8,24,0]) {
hull() {
cylinder(d=0.6,h=40, $fn=10);
translate([0,1.5,0]) cylinder(d=0.6,h=40, $fn=10);
cylinder(d=6,h=400, $fn=10);
translate([0,15,0]) cylinder(d=6,h=400, $fn=10);
}
}
translate([0.8,2.4,10]) {
cylinder(d=1.2,h=20, $fn=10);
translate([8,24,100]) {
cylinder(d=12,h=200, $fn=10);
}
}
......@@ -27,10 +27,10 @@ module draindrills(x,y) {
/* #cylinder(d=1,h=10); */
/* } */
minX = gratesize+strength+0.6;
minY = gratesize+strength+0.6;
maxX = x-gratesize-strength-0.6;
maxY = y-gratesize-strength-0.6;
minX = gratesize+strength+6;
minY = gratesize+strength+6;
maxX = x-gratesize-strength-6;
maxY = y-gratesize-strength-6;
/* echo(minX); */
/* echo(maxX); */
......@@ -38,13 +38,13 @@ module draindrills(x,y) {
for (mmy =[minY,maxY])
translate([ mmx
, mmy
, -5
]) cylinder(d=0.6,h=10, $fn=10);
, -50
]) cylinder(d=6,h=100, $fn=10);
for (xx =[1:5])
for (yy =[1: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]) { */
......@@ -57,15 +57,15 @@ module draindrills(x,y) {
module gx12drill(z) {
translate([gxXPos,gxYPos,0])
cylinder(d=1.2,h=3, $fn=10);
translate([gxXPos,gxYPos,z-2])
cylinder(d=1.2,h=3, $fn=10);
translate([gxXPos,gxYPos,z-4])
cylinder(d=0.6,h=3, $fn=10);
cylinder(d=12,h=30, $fn=10);
translate([gxXPos,gxYPos,z-20])
cylinder(d=12,h=30, $fn=10);
translate([gxXPos,gxYPos,z-40])
cylinder(d=6,h=30, $fn=10);
}
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) {
......@@ -75,6 +75,6 @@ module drills(x,y,z) {
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,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();
}
......@@ -4,28 +4,7 @@ include<modules.scad>
include<cuts.scad>
include<screws.scad>
include<pipes.scad>
include<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);
}
}
}
use<handles.scad>
module innerWall(x,y,z) {
difference() {
......@@ -33,12 +12,13 @@ module innerWall(x,y,z) {
volume(x,y,z,0);
}
}
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) {
translate([7,0,0]) cube([strength,y/2,z]);
translate([innergrateYxpos,0,0]) cube([strength,y/2,z]);
}
module grateXY(x,y,z) {
......@@ -95,10 +75,10 @@ module eurobox(x,y,z,handle,handlecaps,pipes,drilled,screws,locked,exploded) {
mirroredgrates(x,y,z);
grateZ(x,y,base);
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) {
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);
}
}
......@@ -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 */
......
......@@ -27,14 +27,14 @@ include<lid.scad>
/* translate([0,0,-7]) */
/* eurobox(30,40,7,handle=false); */
translate([0,0,5.31])
eurobox(30,40,22,
translate([0,0,53.1])
eurobox(300,400,220,
handle=true,
handlecaps=true,
pipes=true,
drilled=true,
screws=true,
locked=true,
handlecaps=false,
pipes=false,
drilled=false,
screws=false,
locked=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) {
roundness = roundness >= height/2 ? height/2-0.000001 : roundness;
translate([0,0, roundness]) minkowski() {
linear_extrude( height = height-roundness*2
, convexity = 10
, convexity = 100
, twist = 0 )
circle( r=radius-roundness);
sphere(r=roundness);
......@@ -12,7 +12,7 @@ module materialDot(radius, height, roundness) {
}
module shapeZ(x,y,z) {
translate([0,0,-25]) minkowski() {
translate([0,0,-250]) minkowski() {
cube([
x-(offset)*2,
y-(offset)*2,
......@@ -20,36 +20,68 @@ module shapeZ(x,y,z) {
]);
cylinder(
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){
union() {
if(bool==true) volume(x,y,z,0);
translate([
x/2 - handleWidth/2 - offset,
-( offset+1 ),
z-(2.06+roundborderInner+strength*3)
-( offset+10 ),
z-(20.6+roundborderInner+strength*3)
]) {
hull() {
translate([-extra,0,-1])cube([handleWidth+extra*2,5,1]);
translate([handleCorner,0,handleCorner-handleHeight]) rotate([-90,0,0]) union() {
cylinder(r=handleCorner+extra,h=5);
translate([handleWidth-handleCorner*2,0,0]) cylinder(r=handleCorner+extra,h=5);
if(bool==true && borders!=false){
translate([-strength*2,0,0]) rotate([90,0,90]) linear_extrude(height = 140, center = false, convexity = 10)
polygon(points=[[-10,-50]
,[25.7-2,-50]
,[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])
cube([handleWidth+strength*4,2,6]);
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]);
translate([handleCorner,0,handleCorner-handleHeight]) rotate([-90,0,0]) union() {
cylinder(r=handleCorner+extra,h=50);
translate([handleWidth-handleCorner*2,0,0]) cylinder(r=handleCorner+extra,h=50);
}
}
}
/* 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;
strength = 0.25;strength = 0.25;
gratesize = 1.68;
roundborderInner = 0.5;
recess = 0.787;
lidrecess = 0.57;
handleWidth = 12.63;
handleHeight = 3;
handleCorner = 0.8;
strength = 2.5;
gratesize = 16.8;
innergrateXypos = 80;
innergrateYxpos = 70;
gxXPos = 5.8;
gxYPos = 0.7;
roundborderInner = 5;
recess = 7.87;
lidrecess = 5.7;
handleWidth = 126.3;
handleHeight = 30;
handleCorner = 8;
gxXPos = 58;
gxYPos = 7;
offset = gratesize+roundborderInner;
base = recess-(roundborderInner+strength);
screwhead = 0.4;
nutheight = 0.5;
shimblockHeight = 1;
shimheight = 0.14;
shimdiameter = 1.2;
screwhead = 4;
nutheight = 5;
shimblockHeight = 10;
shimheight = 1.4;
shimdiameter = 12;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!