3905 |
kaklik |
1 |
|
|
|
2 |
pedestal_height = 13; // designed for use the MLAB standard 12mm screws. |
3907 |
kaklik |
3 |
x_size = 87; |
|
|
4 |
y_size = 58; |
3905 |
kaklik |
5 |
mount_hole = 3.5; |
3907 |
kaklik |
6 |
nut_size = 6.8; |
3966 |
kaklik |
7 |
nut_size25 = 6; |
3905 |
kaklik |
8 |
MLAB_grid = 10.16; |
|
|
9 |
|
3907 |
kaklik |
10 |
x_holes = floor(x_size / MLAB_grid); |
|
|
11 |
y_holes = floor(y_size / MLAB_grid); |
|
|
12 |
|
|
|
13 |
MLAB_grid_xoffset = (x_size - (x_holes * MLAB_grid))/2; |
|
|
14 |
MLAB_grid_yoffset = (y_size - (y_holes * MLAB_grid))/2; |
|
|
15 |
|
3905 |
kaklik |
16 |
difference () { |
3907 |
kaklik |
17 |
cube([x_size, y_size ,pedestal_height]); // base plastics brick |
3905 |
kaklik |
18 |
|
|
|
19 |
//mount holes for Raspberry Pi model A/B |
|
|
20 |
|
3907 |
kaklik |
21 |
translate ([26.5, 19, 0]) |
3966 |
kaklik |
22 |
rotate([0,0,90]) |
|
|
23 |
cylinder (h = 6, r= nut_size25/2, $fn=6); |
3907 |
kaklik |
24 |
translate ([26.5, 19, 6.2]) // one solid layer for slicer (the holes will be pierced on demand ) |
3966 |
kaklik |
25 |
cylinder (h = pedestal_height, r= 3.0/2, $fn=30); |
3905 |
kaklik |
26 |
|
3907 |
kaklik |
27 |
translate ([81, 44.5, 0]) |
3966 |
kaklik |
28 |
rotate([0,0,90]) |
|
|
29 |
cylinder (h = 6, r= nut_size25/2, $fn=6); |
3907 |
kaklik |
30 |
translate ([81, 44.5, 6.2]) // one solid layer for slicer (the holes will be pierced on demand ) |
3966 |
kaklik |
31 |
cylinder (h = pedestal_height, r= 3.0/2, $fn=30); |
3905 |
kaklik |
32 |
|
|
|
33 |
//////////////////////////////////////// |
|
|
34 |
|
|
|
35 |
// MLAB grid holes |
3907 |
kaklik |
36 |
grid_list = [for (j = [MLAB_grid_xoffset : MLAB_grid: 86], i = [MLAB_grid_yoffset :MLAB_grid: 55]) |
|
|
37 |
if (!(j>20 && i>10 && j<50 && i<50) && !(j>75 && i>40 && j<90 && i<50) ) // exception for Raspberry mount holes |
|
|
38 |
[j, i] ]; |
|
|
39 |
|
3905 |
kaklik |
40 |
for (j = grid_list) { |
|
|
41 |
translate (concat(j, [0])) |
3907 |
kaklik |
42 |
cylinder (h = 3, r= nut_size/2, $fn=6); |
3905 |
kaklik |
43 |
translate (concat(j, [3.2])) // one solid layer for slicer (the holes will be pierced on demand ) |
3907 |
kaklik |
44 |
cylinder (h = pedestal_height /3, r= mount_hole/2, $fn=30); |
3905 |
kaklik |
45 |
translate (concat(j, [6.0])) |
|
|
46 |
cylinder (h = 10, r= nut_size/2, $fn=6); |
3907 |
kaklik |
47 |
} |
|
|
48 |
|
|
|
49 |
///////////////////////////////////////// |
|
|
50 |
// holes for components at the bottom side of the PCB. |
|
|
51 |
|
|
|
52 |
difference () { |
|
|
53 |
translate ([2, 2 , pedestal_height - 3]) // |
|
|
54 |
cube([83, 54, 3]); |
|
|
55 |
|
|
|
56 |
translate ([26.5, 19, pedestal_height - 5]) // Raspberry screw mount pile |
|
|
57 |
cylinder (h = pedestal_height, r= 4, $fn=20); |
|
|
58 |
|
|
|
59 |
translate ([77, 40.5, pedestal_height - 5]) // Raspberry screw mount brick |
|
|
60 |
cube([20,8,5]); |
|
|
61 |
} |
|
|
62 |
translate ([0, 14 , pedestal_height - 4]) // SD Card |
|
|
63 |
cube([20,30.5,5]); |
|
|
64 |
|
3905 |
kaklik |
65 |
//// lightening central holes |
|
|
66 |
|
3907 |
kaklik |
67 |
translate ([8, 8, 0]) |
|
|
68 |
cube([14.5,y_size - 16,pedestal_height ]); |
3905 |
kaklik |
69 |
|
3907 |
kaklik |
70 |
translate ([30.5,8, 0]) |
|
|
71 |
cube([47, y_size - 16,pedestal_height ]); |
3905 |
kaklik |
72 |
} |
|
|
73 |
|
|
|
74 |
|