-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsmall-wall-bracket.scad
76 lines (66 loc) · 2.22 KB
/
small-wall-bracket.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
/*
* Copyright ©2015 Laurence Gonsalves <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to:
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301
* USA
*/
$fn = 72;
epsilon = 0.001;
depth = 56;
height = 30;
phi = (1 + sqrt(5)) / 2;
width = height * phi;
zip_tie_width = 6;
zip_tie_thickness = 1.5;
bottom_thickness = 3; // must be > zip_tie_thickness
zip_tie_offset = 15.5;
screw_head_r=7/2;
screw_shaft_r=3.7/2;
module main() {
// The device bracket will rest on.
%translate([width,0,0]) cube([12*254, depth, height]);
difference() {
union() {
// "Side" bracket
cube([width, depth, height]);
// "Bottom" with zip tie slot
translate([0,0,-bottom_thickness])
difference(){
cube([width + zip_tie_offset + 2*zip_tie_width, depth, bottom_thickness]);
translate([width + zip_tie_offset,0,0])
cube([zip_tie_width, depth, zip_tie_thickness]);
}
}
union() {
// Arc cut-out
translate([0,0,height])
scale([width - 1, depth + epsilon, height])
rotate([270,0,0])
cylinder(r=1,h=1);
// Screw holes
for(i=[1,3]){
translate([width/2, depth/4 * i, 0]) {
// screw head
cylinder(r=screw_head_r, h=height);
// screw shaft
translate([0,0,-bottom_thickness]) cylinder(r=screw_shaft_r, h=height);
}
}
}
}
}
rotate([90,0,0]) main();