-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNemaMounts.scad
91 lines (73 loc) · 1.72 KB
/
NemaMounts.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
m3Diam=3.5;
module nema17Mount (depth) {
union() {
translate([-33.1/2, -33.1/2, 0])
cylinder (h=depth,d=m3Diam);
translate([33.1/2, -33.1/2, 0])
cylinder (h=depth,d=m3Diam);
translate([-33.1/2, 33.1/2, 0])
cylinder (h=depth,d=m3Diam);
translate([33.1/2, 33.1/2, 0])
cylinder (h=depth,d=m3Diam);
cylinder(h= depth / 2, d=23);
cylinder(h=depth, d=6);
}
}
module slideyMount (length=10) {
for (i=[0:$children-1]) {
hull() {
translate([-length/2,0,0]) children(i);
translate([length/2,0,0]) children(i);
}
}
}
module slideyNema17Mount(length, depth) {
slideyMount(length) {
translate([-33.1/2, -33.1/2, 0])
cylinder (h=depth,d=m3Diam);
translate([33.1/2, -33.1/2, 0])
cylinder (h=depth,d=m3Diam);
translate([-33.1/2, 33.1/2, 0])
cylinder (h=depth,d=m3Diam);
translate([33.1/2, 33.1/2, 0])
cylinder (h=depth,d=m3Diam);
cylinder(h=3, d=23);
cylinder(h=depth, d=6);
}
}
module flatNema17Mount(){
union() {
translate([-33.1/2, -33.1/2])
circle (d=m3Diam);
translate([33.1/2, -33.1/2])
circle (d=m3Diam);
translate([-33.1/2, 33.1/2])
circle (d=m3Diam);
translate([33.1/2, 33.1/2])
circle (d=m3Diam);
circle (d = 23);
}
}
module flatSlideyMount (length = 10) {
for (i=[0:$children-1]) {
hull() {
translate([-length/2,0]) children(i);
translate([length/2,0]) children(i);
}
}
}
module flatSlideyNema17Mount(length) {
slideyMount(length) {
translate([-33.1/2, -33.1/2])
circle(d=m3Diam);
translate([33.1/2, -33.1/2])
circle(d=m3Diam);
translate([-33.1/2, 33.1/2])
circle(d=m3Diam);
translate([33.1/2, 33.1/2, 0])
circle(d=m3Diam);
circle (d = 23);
}
}
slideyNema17Mount(10,10);
translate([50,0,0]) nema17Mount(10,10);