-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front.scad
115 lines (102 loc) · 3.33 KB
/
front.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
module front() {
translate([-WIDTH/3, 0, DEPTH / 2])
front_left(WIDTH/3, HEIGHT, DEPTH/2);
translate([0, 0, DEPTH / 2])
front_middle(WIDTH/3, HEIGHT, DEPTH/2);
translate([0, 0, DEPTH / 2])
screen_fix(WIDTH/3, HEIGHT, DEPTH/2);
translate([WIDTH/3, 0, DEPTH / 2])
front_right(WIDTH/3, HEIGHT, DEPTH/2);
}
module front_left(width, height, depth) {
difference() {
part(width, height, depth);
translate([width / 2 - 37.5, height - 60, -24 + THICKNESS])
variable_alim();
translate([width / 2 - 50, height - 120, -26 + THICKNESS])
fixed_alim();
};
translate([0, height - 30, -27])
rotate([180, 0, 180])
support_banana();
translate([0, height - 30, -63])
rotate([180, 0, 180])
support_banana();
if (DISPLAY_BLOCKS) {
color("red") {
translate([width / 2 - 37.5, height - 60, -24 + THICKNESS])
variable_alim();
translate([width / 2 - 50, height - 120, -26 + THICKNESS])
fixed_alim();
}
}
}
module front_middle(width, height, depth) {
difference() {
union() {
middle_part(width, height, depth);
translate([THICKNESS, 0, -THICKNESS])
cube([width - THICKNESS, height, THICKNESS * 2]);
};
translate([-THICKNESS + 6, height - SCREEN_HEIGHT - 6, 0])
screen_in();
translate([0, height - SCREEN_HEIGHT - 12, -THICKNESS])
screen_out();
screen_fix_screw(width, height);
translate([17, 15, -38 + THICKNESS])
bnc();
};
if (DISPLAY_BLOCKS) {
color("red") {
translate([0, height - SCREEN_HEIGHT - 12, -THICKNESS])
screen();
screen_fix_screw(width, height);
translate([17, 15, -38 + THICKNESS])
bnc();
}
}
}
module screen_fix(width, height, depth) {
difference() {
translate([23, height - SCREEN_HEIGHT - THICKNESS - 18, -THICKNESS * 2])
cube([180, SCREEN_HEIGHT + 18, THICKNESS]);
translate([157, height - THICKNESS - 12, -THICKNESS * 2])
cube([20, 12, THICKNESS * 2]);
screen_fix_screw(width, height);
}
}
module screen_fix_screw(width, height) {
translate([32, height - 8, THICKNESS])
screw();
translate([200 - 2, height - 8, THICKNESS])
screw();
translate([32, height - SCREEN_HEIGHT - 16, THICKNESS])
screw();
translate([200 - 2, height - SCREEN_HEIGHT - 16, THICKNESS])
screw();
}
module front_right(width, height, depth) {
difference() {
rotate([0, 0, 180])
translate([-width, -height, 0])
part(width, height, depth);
translate([-width, height - SCREEN_HEIGHT - 6, 0])
screen_in();
translate([width - 30, THICKNESS + 3, 0])
power_button();
translate([10, 8, -15 + THICKNESS])
usb();
};
translate([width, height - 30, -3])
support_sonde();
translate([width, height - 30, -39])
support_sonde();
if (DISPLAY_BLOCKS) {
color("red") {
translate([width - 30, THICKNESS + 3, -17 + THICKNESS])
power_button();
translate([10, 8, -15 + THICKNESS])
usb();
}
}
}