summaryrefslogtreecommitdiff
path: root/mech/assembly.scad
blob: 51338f71651ed5bb1c90d45115aa6aaf03e81c94 (plain)
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
include <parameters.scad>

use <pcb_case/pcb.scad>
use <pcb_case/shell.scad>
use <pcb_case/panel.scad>

module assembly() {
	base_drilling = [3.5, 3.5];
	dx = [23, 0];
	dy = [0, 58];
	pcb(
		dim=[30, 65, 1.4],
		drillings=[
			base_drilling,
			base_drilling + dx,
			base_drilling + dy,
			base_drilling + dx + dy
		],
		margins=[
			[1, 1],
			[3.6, 1.7],
			[3.5, 27]
		],
		t=2
	);

	pcb_case_shell_bottom(
		dim, t, h, [
			base_socket,
			base_socket + dx,
			base_socket + dy,
			base_socket + dx + dy
		]
	);
//	pcb_case_shell_top(dim, t);
	pcb_case_panel_back(dim, t);
//	pcb_case_panel_front(dim, t);
}

assembly();