-
Notifications
You must be signed in to change notification settings - Fork 13
/
as5601solderaid.scad
executable file
·61 lines (50 loc) · 1.47 KB
/
as5601solderaid.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
pcbSizeX = 11.94;
pcbSizeY = 11.58;
icSizeX = 4.9;
icSizeY = 3.9;
icHeight = 1.5;
hole = 2;
wall = 1.25;
baseThickness = 0.75;
snapLength = 4;
wallHeight = 1.75;
pcbTolerance = 0.05;
icTolerance = 0.02;
module dummy() {}
icSizeX1 = icSizeX + 2*icTolerance;
icSizeY1 = icSizeY; // + 2*tolerance;
pcbSizeX1 = pcbSizeX + 2*pcbTolerance;
pcbSizeY1 = pcbSizeY + 2*pcbTolerance;
nudge = 0.01;
module mirrored() {
children();
rotate([0,0,180]) children();
}
module base() {
module side() {
polygon([[-pcbSizeX1/2,-pcbSizeY1/2],
[-icSizeX1/2,-icSizeY/2],
[icSizeX1/2,-icSizeY/2],
[pcbSizeX1/2,-pcbSizeY1/2]]);
}
difference() {
union() {
linear_extrude(height=baseThickness+icHeight)
difference() {
square([pcbSizeX1+2*wall,pcbSizeY1+2*wall],center=true);
mirrored() side();
}
}
translate([-icSizeX1/2,-icSizeY/2-nudge,baseThickness])
cube([icSizeX1,icSizeY+2*nudge,icHeight+nudge]);
translate([0,0,-1]) cylinder(h=baseThickness+icHeight+2,d=hole,$fn=30);
}
}
module edge() {
difference() {
square([pcbSizeX1+2*wall,pcbSizeY1+2*wall],center=true);
square([pcbSizeX1,pcbSizeY1],center=true);
}
}
base();
linear_extrude(height=wallHeight+baseThickness+icHeight) edge();