Rev 4014 Rev 4017
1 x_size = 20; // horizontal outer size of the aquarium pedestal. 1 x_size = 20; // horizontal outer size of the aquarium pedestal.
2 y_size = 20; // 2 y_size = 20; //
3 thickness = 10; // thickness of the pad bellow aquarium. hairs lenght is 12mm. 3 thickness = 10; // thickness of the pad bellow aquarium. hairs lenght is 12mm.
4 rim_height = 7; // height of upper rim for fixing the aquarium in position. 4 rim_height = 7; // height of upper rim for fixing the aquarium in position.
5   5  
6 mount_hole = 3.5; 6 mount_hole = 3.6;
7 clear = 0.175; 7 clear = 0.175;
8   8  
9   9  
10 // aquarium pad 10 // aquarium pad
11   11  
12 difference () { 12 difference () {
13 intersection() { 13 intersection() {
14 union(){ // bottom part with rim/fixing pin 14 union(){ // bottom part with rim/fixing pin
15 rotate([0,0,45]) 15 rotate([0,0,45])
16 cube([x_size, y_size ,thickness], center = true); 16 cube([x_size, y_size ,thickness], center = true);
17 translate ([sqrt(pow(x_size,2) + pow(x_size,2))/4, sqrt(pow(x_size,2) + pow(x_size,2))/4, thickness/2 + rim_height/2]) 17 translate ([sqrt(pow(x_size,2) + pow(x_size,2))/4, sqrt(pow(x_size,2) + pow(x_size,2))/4, thickness/2 + rim_height/2])
18 cube([sqrt(pow(x_size,2) + pow(x_size,2))/2, sqrt(pow(x_size,2) + pow(x_size,2))/2, rim_height], center = true); 18 cube([sqrt(pow(x_size,2) + pow(x_size,2))/2, sqrt(pow(x_size,2) + pow(x_size,2))/2, rim_height], center = true);
19   19  
20 }; 20 };
21   21  
22 rotate([0,0,45]) 22 rotate([0,0,45])
23 cube([x_size, y_size ,4*thickness], center = true); 23 cube([x_size, y_size ,4*thickness], center = true); // cut out half of top tip
24 } 24 }
25 cylinder (h = thickness + rim_height, r= mount_hole, $fn=20); // hole for screw head 25 cylinder (h = thickness + rim_height, r= mount_hole, $fn=20); // hole for screw head
26 -  
27 translate ([0, 0, -thickness]) // hole for the screw 26 translate ([0, 0, -thickness]) // hole for the screw
28 cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10); 27 cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10);
29 28
-   29
30 rotate([0,0,-45]) // hole for top part mounting nut 30 rotate([0,0,-45]) // hole for top part mounting nut
31 translate ([ 0, -x_size/3, thickness/3]) 31 translate ([ 0, -x_size/3, thickness/3])
32 cube([5.5, 2.5, thickness], center = true); 32 cube([6, 3, thickness], center = true);
33   33  
34 rotate([90,0,-45]) // hole for top part mounting screw. 34 rotate([90,0,-45]) // hole for top part mounting screw.
35 translate ([ 0, thickness/4, 0]) 35 translate ([ 0, 1.8, 0])
36 cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10); 36 cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10);
37   37  
38 } 38 }
39   39  
40   40  
-   41 /*
-   42  
41 translate ([0, 0, 3*thickness]) // separate two parts 43 translate ([0, 0, 3*thickness]) // separate two parts
42   44  
-   45 rotate([180,0,0]) // hole for top part mounting nut
-   46  
43   47  
44 //Top part 48 //Top part
45   49  
46 difference () { 50 difference () {
47   51  
48 rotate([0,0,-45]) 52 rotate([0,0,-45])
49 translate ([0, -3, rim_height/3]) 53 translate ([0, -3, rim_height/3])
50 cube([x_size, y_size ,thickness + rim_height/4 ], center = true); 54 cube([x_size, y_size ,thickness + rim_height/4 ], center = true);
51   55  
52 rotate([90,0,-45]) 56 rotate([90,0,-45])
53 translate ([0, 0, rim_height/3]) 57 translate ([0, 0, rim_height/3])
54 minkowski() { 58 minkowski() {
55 cube([0.5,3,10]); 59 cube([0.5,3,10]);
56 cylinder(r=1.5,h=1,$fn=50); 60 cylinder(r=1.5,h=1,$fn=50);
57 } 61 }
58   62  
59 wall_thickness = 2; 63 wall_thickness = 2;
60 64
61 union(){ // copy of bottom part 65 union(){ // copy of bottom part
62 rotate([0,0,45]) 66 rotate([0,0,45])
63 cube([x_size, y_size ,thickness], center = true); 67 cube([x_size, y_size ,thickness], center = true);
64 translate ([sqrt(pow(x_size,2) + pow(x_size,2))/4 -wall_thickness, sqrt(pow(x_size,2) + pow(x_size,2))/4 -wall_thickness, thickness/2 + rim_height/2]) 68 translate ([sqrt(pow(x_size,2) + pow(x_size,2))/4 -wall_thickness, sqrt(pow(x_size,2) + pow(x_size,2))/4 -wall_thickness, thickness/2 + rim_height/2])
65 cube([sqrt(pow(x_size,2) + pow(x_size,2))/2, sqrt(pow(x_size,2) + pow(x_size,2))/2, rim_height], center = true); 69 cube([sqrt(pow(x_size,2) + pow(x_size,2))/2, sqrt(pow(x_size,2) + pow(x_size,2))/2, rim_height], center = true);
66   70  
67 }; 71 };
68 } 72 }
69   73  
70   74