-
Notifications
You must be signed in to change notification settings - Fork 2
/
card_mount.scad
124 lines (107 loc) · 2.55 KB
/
card_mount.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
119
120
121
122
123
124
module rc522_channel() {
difference() {
cube([45,8,8]);
translate([0,3,4]) {
cube([45,5,1.75]);
translate([0,2.5,1.75]) {
cube([45,5,2.5]);
}
}
}
}
module rc522_holder() {
rc522_channel();
translate([0,45.5,0]) {
mirror([0,1,0]) {
rc522_channel();
}
}
translate([-15,0,0]) {
difference() {
cube([15,45.5,8]);
rotate([0,-35,0]) {
cube([15,45.5,8]);
}
}
}
}
module card_slot() {
difference() {
cube([78,100,3.5]);
translate([10,20,0]) {
cube([68,60,2]);
}
translate([65,10,0]) {
cylinder(r=1.6, h = 5, $fn = 32);
translate([0,80,0]) {
cylinder(r=1.6, h = 5, $fn = 32);
}
}
translate([3,10,0]) {
cylinder(r=1.6, h = 5, $fn = 32);
translate([0,80,0]) {
cylinder(r=1.6, h = 5, $fn = 32);
}
}
}
}
difference() {
card_slot();
translate([20,65.5,2]) {
cube([24,7,1.5]);
}
}
// switch mount
translate([0,72.5,3.5]) {
difference() {
cube([44,3,20]);
//holes
translate([28.5,4,8.5]) {
rotate([90,0,0]) {
hull() {
cylinder(r=1.55, h=5, $fn=32);
translate([0,6,0]) {
cylinder(r=1.55, h=5, $fn=32);
}
}
}
translate([9.50,0,0]) {
rotate([90,0,0]) {
hull() {
cylinder(r=1.55, h=5, $fn=32);
translate([0,6,0]) {
cylinder(r=1.55, h=5, $fn=32);
}
}
}
}
}
// taper
rotate([0,-35,0]) {
cube([35,3,20]);
}
}
}
translate([15,20,3.5]) {
rc522_holder();
}
// LCD
translate([-20,0,0]) {
difference() {
cube([20,100,3.5]);
// LCD holes
translate([8,12.5,-0.75]) {
cylinder(r=1.5, h = 5, $fn = 32);
translate([0,75,0]) {
cylinder(r=1.5, h = 5, $fn = 32);
}
}
// screen
translate([-5,14.5,0]) {
cube([10,71,3.5]);
translate([10,1.5,0]) {
cube([5,68,3.5]);
}
}
}
}