-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.scad
61 lines (47 loc) · 1.16 KB
/
functions.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
barwidth = 20;
width_ridge=4;
widthNema17=43;
rodYOffset = 50;
pulleygt2InclBeltDia = 13.5;
timingbeltthickness=1;
beltoffset = 20;
b624zzdia = 13;
module drawHoles(holes) {
for(i = holes) {
translate([ i[0],i[1],-0.1])
cylinder(h=100,r=i[2]/2, center = false, $fs=1);
}
}
module nema17(x,y,thickness) {
nema17holeOffset =6;
nema17innerHole=25/2;
nema17Shaft=8/2;
nema17HoleDistance =31;
/* large NEMA17 circle */
translate([x,y,-10])
cylinder(h=thickness,r=nema17innerHole, center = false, $fs=1);
translate([x-nema17HoleDistance/2
, y-nema17HoleDistance/2
, -1
])
rotate([0,0,-45])
cube([3,6,thickness],true);
translate([x+nema17HoleDistance/2
,y+nema17HoleDistance/2
, -1
])
rotate([0,0,-45])
cube([3,6,thickness],true);
translate([x-nema17HoleDistance/2
,y+nema17HoleDistance/2
, -1
])
rotate([0,0,45])
cube([3,6,thickness],true);
translate([x+nema17HoleDistance/2
,y-nema17HoleDistance/2
, -1
])
rotate([0,0,45])
cube([3,6,thickness],true);
}