-
Notifications
You must be signed in to change notification settings - Fork 0
/
device_controller_small.scad
60 lines (52 loc) · 2.29 KB
/
device_controller_small.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
use <box.scad>;
use <lcd.scad>;
use <panel_mounts.scad>;
show = false;
thickness = 5;
size = [100, 60, 50];
// combined front panel and body
//color("green")
union() {
translate([0, 0, thickness])
rotate([0, 0, 180])
MicroUSB_port(thickness = thickness, location = [size[0]/2, 0, 25], rotation = [270, 0, 90], port_only = true, show = show)
box_body(size, length = size[2], vent_width = 3, vents = 0, attachments_bottom = false);
LCD(type = "16x2", location = [0, 0, 0])
box_lid(size, thickness = thickness, feet = 3, feet_params = [8, 0.3, true], adapters = false);
}
/*
// back panel with only DB9 serial port
translate([120, 00, 0])
color("gray")
photon_board(thickness = thickness, location = [9, 0, 0], with_RJ45 = false, show = show)
DB9_serial_port(thickness = thickness, location = [-32, 0, 0], rotation = [0, 0, 90], show = show)
box_lid(size, thickness = thickness, feet = 3, feet_params = [8, 0.3, true]);
// back panel with only RJ45/RJ50 port
translate([-120, 00, 0])
color("purple")
photon_board(thickness = thickness, location = [9, 0, 0], with_RJ45 = true, show = show)
box_lid(size, thickness = thickness, feet = 3, feet_params = [8, 0.3, true]);
// back panel with DB9 serial port and RJ45/RJ50 port
translate([240, 00, 0])
color("yellow")
photon_board(thickness = thickness, location = [9, 0, 0], with_RJ45 = true, show = show)
DB9_serial_port(thickness = thickness, location = [-32, 0, 0], rotation = [0, 0, 90], show = show)
box_lid(size, thickness = thickness, feet = 3, feet_params = [8, 0.3, true]);
// back panel with 6p4c RJ11 (telephone cable) port and RJ45/RJ50 port
translate([-240, 00, 0])
color("blue")
photon_board(thickness = thickness, location = [9, 0, 0], with_RJ45 = true, show = show)
RJ11_port(thickness = thickness, location = [-34.5, 0, 0], rotation = [0, 0, 90], show = show)
box_lid(size, thickness = thickness, feet = 3, feet_params = [8, 0.3, true]);
// body
translate([0, 0, 5])
color("green")
MicroUSB_port(thickness = thickness, location = [size[0]/2, 0, 25], rotation = [270, 0, 90], port_only = true, show = show)
box_body(size, length = size[2], vent_width = 3, vents = 0);
// front panel
translate([0, 0, 60])
mirror([0, 0, 1])
color("red")
LCD(type = "16x2", location = [0, 0, 0])
box_lid(size, thickness = thickness, feet = 3, feet_params = [8, 0.3, true]);
*/