-
Notifications
You must be signed in to change notification settings - Fork 2
/
powersupply_brackets.scad
119 lines (95 loc) · 2.45 KB
/
powersupply_brackets.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
t=5;
separation=145;
side_holes = [[19.27, 22.25], [9.2, 139.2], [9.2+18.06, 139.2]];
hole_d = .12*25.4;
hole_clear=11/2+1;
hole_w=7.5;
hole_inset=.5;
ps_l=158;
module flathead4_40(l=10, over=10){
hh = .047*25.4;
hd = .212*25.4;
ha = 82;
sd = .112*25.4;
union(){
cylinder(r1=hd/2, r2=hd/2 - hh*tan(ha/2), h=hh, $fn=12);
cylinder(r=sd/2, h=l, $fn=12);
if (over)
translate([0,0,-over])
cylinder(r=hd/2, h=over+.1, $fn=12);
}
}
module power_supply_bracket1(){
difference(){
hull(){
translate([t,side_holes[0][1],side_holes[0][0]])
rotate([0,-90,0])
cylinder(r=hole_w+hole_d/2, h=t);
translate([0,-hole_clear,0]){
translate([0,0,10])
rotate([0,90,0])
cylinder(r=hole_w+5/2, h=t);
translate([0,0,10+50])
rotate([0,90,0])
cylinder(r=hole_w+5/2, h=t);
translate([0,15,10])//fake hole ust to put a flat spot on the bottom
rotate([0,90,0])
cylinder(r=hole_w+5/2, h=t);
}
}
translate([t-hole_inset,side_holes[0][1],side_holes[0][0]])
rotate([0,-90,0])
flathead4_40(l=t+1, over=hole_inset+1);
translate([0,-hole_clear,0]){
translate([0,0,10])
rotate([0,90,0])
cylinder(r=5/2, h=100, center=true);
translate([0,0,10+50])
rotate([0,90,0])
cylinder(r=5/2, h=100, center=true);
}
}
}
module power_supply_bracket2(){
difference(){
hull(){
translate([t,side_holes[1][1],side_holes[1][0]])
rotate([0,-90,0])
cylinder(r=hole_w+hole_d/2, h=t);
translate([t,side_holes[2][1],side_holes[2][0]])
rotate([0,-90,0])
cylinder(r=hole_w+hole_d/2, h=t);
translate([0,ps_l+hole_clear,0]){
translate([0,0,10])
rotate([0,90,0])
cylinder(r=hole_w+5/2, h=t);
translate([0,0,10+50])
rotate([0,90,0])
cylinder(r=hole_w+5/2, h=t);
translate([0,-20,10])//fake hole ust to put a flat spot on the bottom
rotate([0,90,0])
cylinder(r=hole_w+5/2, h=t);
}
}
translate([t-hole_inset,side_holes[1][1],side_holes[1][0]])
rotate([0,-90,0])
flathead4_40(l=t+1, over=hole_inset+1);
translate([t-hole_inset,side_holes[2][1],side_holes[2][0]])
rotate([0,-90,0])
flathead4_40(l=t+1, over=hole_inset+1);
translate([0,ps_l+hole_clear,0]){
translate([0,0,10])
rotate([0,90,0])
cylinder(r=5/2, h=100, center=true);
translate([0,0,10+50])
rotate([0,90,0])
cylinder(r=5/2, h=100, center=true);
}
}
}
translate([0,-130,0])
rotate([0,-90,0])
power_supply_bracket2();
translate([-65,0,0])
rotate([145,-90,0])
power_supply_bracket1();