-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimplePot.scad
85 lines (67 loc) · 2.37 KB
/
simplePot.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
Project: 3D printed hydroponics system
Repositiry: https://github.com/telepath/v-hydro
File name: loop.scad
Requirements: none
Author: Benjamin Richter
Email: 3dp@itrichter.de
License: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
Version: 1.0
Release: 2015-2-18
*Changelog*
1.0 Initial Release
Modules:
pot()
creates one pot with drip nozzle and top and bottom hooks with predifines parameters
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include <lib/nozzle.scad>
include <lib/loop.scad>
$fn=32;
/* Pot */
r1 = 56/2;
r2 = 43/2;
r3 = 5/2;
h1 = 50;
h2 = 15;
wallThickness = 2;
// Nozzle
nozzleLength=7.5; //length of nozzle
nozzleInnerDiameter = 5; //inner diameter of nozzle
nozzleOuterDiameter = 7; //outer diameter of nozzle wihtout ridges
minWallThickness = 0.8; //minimum thickness of nozzle end
nozzleThinning = 0.5; //amount to taper top nozzle inwards
bNozzleThinning = -1; //amount to taper nozzle bottom inwards (outwards, in this case)
// Hook
hookInnerDiameter=7.5;
rotate(180,[1,0,0]) //printable
pot();
//%translate([0,0,h1+h2+50]) pot(); //second pot for demo
module pot(){
translate([0,0,h1-wallThickness])
cleanHHooks(d=r1*2+wallThickness*2, d2=r1*2, t=wallThickness, hi=hookInnerDiameter);
potHull(r1=r2,r2=r1,t=wallThickness,h=h1);
translate([0,0,-h2+0.01])
potHull(r1=r3,r2=r2,t=wallThickness,h=h2);
translate([0,0,0.01])
rotate(180, [1,0,0])
cleanVHooks(d=r2*2, t=wallThickness, hi=hookInnerDiameter);
translate([0,0,-h2-nozzleLength+0.01])
nozzle(l=nozzleLength,do=nozzleOuterDiameter,di=nozzleInnerDiameter,mw=minWallThickness,n1=nozzleThinning,n2=bNozzleThinning);
}
module potHull(r1=r1,r2=r2,t=wallThickness){
difference(){
cylinder(r1=r1+t,r2=r2+t,h=h);
translate([0,0,-0.01])
cylinder(r1=r1,r2=r2,h=h+0.02);
}
}