-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshiftlight-box.scad
More file actions
39 lines (34 loc) · 842 Bytes
/
Copy pathshiftlight-box.scad
File metadata and controls
39 lines (34 loc) · 842 Bytes
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
// Quick and dirty enclosure for the arduino shift light
module board() {
cube([49, 29, 1.6]);
for(i=[0:4]) {
translate([10.2 + i*7.62, 0, 2]) rotate([90, 0, 0]) hull() {
cylinder(r=2.6, h=8.7-2.5, $fn=20);
translate([0,0,8.7-2.6]) sphere(2.6, $fn=20);
}
}
translate([1, 7, 0]) cube([42, 18, 16]);
}
module box() {
difference() {
cube([51, 36, 22]);
translate([2, 2, 1]) cube([47, 36, 20]);
translate([1, 6, 4]) union() {
board();
translate([0, -2, 0]) cube([49, 40, 1.6]);
}
}
}
module lid() {
translate([0, 37, -10]) rotate([180, 0, 0])
difference() {
translate([0.01, 35, 0.01]) cube([50.98, 2, 21.98]);
box();
translate([5.5, 38, 1]) rotate([90, 0, 0]) cylinder(r=3, h=10, $fn=20);
}
}
rotate([90, 0, 0]) union() {
box();
lid();
%translate([1, 6, 4]) board();
}