-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHamegNanoCover.scad
More file actions
72 lines (64 loc) · 1.57 KB
/
Copy pathHamegNanoCover.scad
File metadata and controls
72 lines (64 loc) · 1.57 KB
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
/* Housing for the Arduino Nano Interface
* See readme.md for further details
*
* Print with PLA, perhaps support for USB socket hole. Use 40 % infill (screw domes).
*
* Copyright, 2023, Mathias Moog, Deutschland, CC-BY-NC-SA
*/
$fn=30;
// Wall Thickness
w = 1.2;
// Space arround Nano
s = 0.3;
// ISP heigt
h_isp = 8;
// Top of Nano PCB to top of matrix board
h_nm = 12.5;
// Diameter for the screw holes, arduino 1.8 mm
d = 1.4;
// You need 4 screws with 1.6 mm diameter and 20 mm length
// USB Heigt
u_h = 4;
// USB Width
u_w = 8;
// Space arround USB
u_s = 2;
// Arduino nano dimenisons from Datasheet
// length
n_l = 43.2;
// hole distance in length direction
n_hl = 40.64;
// width
n_w = 18;
n_hw = 15.24;
difference() {
// complet material
cube([n_w+2*(s+w),n_l+2*(s+w),h_isp+h_nm+s+w]);
// Below Arduino
translate([w,w,h_isp+s+w]) cube([n_w+2*s,n_l+2*s,h_nm+s]);
// Arduion, without area for mounting hole
// widht, a bit more for mountings
wm=3;
translate([w+wm+s,w,w])
cube([n_w-2*wm,n_l+2*s,h_isp+2*s]);
// length a bit less
wl=2.54;
translate([w,w+wl+s,w])
cube([n_w+2*s,n_l-2*wl,h_isp+2*s]);
// Screw holes
h_w = w+s+(n_w-n_hw)/2;
h_l = w+s+(n_l-n_hl)/2;
translate([h_w,h_l,w])
cylinder(d=d,h=h_isp+2*s);
translate([h_w+n_hw,h_l,w])
cylinder(d=d,h=h_isp+2*s);
translate([h_w,h_l+n_hl,w])
cylinder(d=d,h=h_isp+2*s);
translate([h_w+n_hw,h_l+n_hl,w])
cylinder(d=d,h=h_isp+2*s);
// USB Hole
u_W = w+s+(n_w-u_w)/2-u_s;
u_H = w+s+h_isp-u_h-u_s;
translate([u_W,-w,u_H])
cube([u_w+2*u_s,3*w,u_h+2*u_s]);
}