forked from josefprusa/PrusaMendel
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgregs-coupling.scad
152 lines (138 loc) · 3.28 KB
/
gregs-coupling.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// PRUSA Mendel
// motor/leadscrew coupling
// Used for connecting motor to leadscrew
// GNU GPL v2
// Josef Průša
// josefprusa@me.com
// prusadjs.cz
// http://www.reprap.org/wiki/Prusa_Mendel
// http://github.com/prusajr/PrusaMendel
include <configuration.scad>
/**
* @name Coupling
* @category Printed
* @using 1 m3x25
* @using 1 m3nut
* @using 2 m3washer
*/
module coupling()
{
difference()
{
render()
intersection ()
{
union()
{
cylinder(h = 30, r=7);
translate(v = [0, 6, 15]) cube(size = [14,12,30], center = true);
}
translate([0,0,-1])
cylinder(r=12.3,h=32);
}
// inside diameter
translate(v = [0, 0, -1])cylinder(h = 16, r=motor_shaft/2, $fn=16);
translate(v = [0, 0, 14.5])cylinder(h = 16, r=m8_diameter/2, $fn=16);
// screw holes
for (hole=[-1,1])
{
rotate ([0,0,90]) translate(v = [6.5, 15, 15+7.5*hole]) rotate ([90,0,0])
cylinder(h = 30, r=m3_diameter/2, $fn=16);
rotate ([0,0,90]) translate(v = [6.5, 12-2, 15+7.5*hole]) rotate ([90,0,0])
cylinder(h = 5, r=m3_nut_diameter/2, $fn=6);
rotate ([0,0,90]) translate(v = [6.5, 12-14-5+2, 15+7.5*hole]) rotate ([90,0,0])
cylinder(h = 5, r=m3_nut_diameter/2+0.1, $fn=16);
}
//main cut
translate(v = [0, 10, 14]) cube(size = [2,20,35], center = true);
//difference cut
intersection ()
{
translate(v = [0, 7, 15]) cube(size = [20,8,1], center = true);
translate([0,0,14])
cylinder(r=11.5,h=3);
}
}
}
//coupling();
coupling2();
/**
* @name Coupling
* @category Printed
* @using 1 m3x25
* @using 1 m3nut
* @using 2 m3washer
*/
module coupling2()
{
difference()
{
union()
{
// render()
difference ()
{
intersection()
{
cylinder($fn=80,r=m8_nut_diameter/2+6.7,h=15);
cylinder($fn=6,r=m8_nut_diameter/2+8,h=15);
}
translate([0,0,-1])
cylinder(r=m8_nut_diameter/2+1,$fn=6,h=12);
for (chamfer=[0:5])
rotate(chamfer*60)
translate([-10,(m8_nut_diameter/2+8)*cos(30)-5,15-5])
difference()
{
cube([20,6,6]);
rotate([0,90,0])
translate([0,0,-1])
cylinder(r=5,h=22);
}
}
translate([0,0,15])
# render()
intersection ()
{
translate([0,0,-3])
union()
{
cylinder(h = 18, r=7);
translate(v = [0, 6, 7.5]) cube(size = [14,12,21], center = true);
}
translate([0,0,-1])
cylinder(r=11.8,h=32);
}
}
// inside diameter
translate(v = [0, 0, 15])cylinder(h = 16, r=motor_shaft/2, $fn=16);
// screw holes
rotate ([0,0,90]) translate(v = [6, 15, 7.5+15]) rotate ([90,0,0])
rotate(360/16)
cylinder(h = 30, r=m3_diameter/2, $fn=8);
rotate ([0,0,90]) translate(v = [6, 12-2, 7.5+15]) rotate ([90,0,0])
cylinder(h = 5, r=m3_nut_diameter/2, $fn=6);
rotate ([0,0,90]) translate(v = [6, 12-14-5+2, 7.5+15]) rotate ([90,0,0])
cylinder(h = 5, r=m3_nut_diameter/2+0.1, $fn=16);
//setscrews.
for (hole=[0:2])
translate([0,0,6])
rotate(hole*120)
rotate([90,0,0])
translate([0,0,m8_nut_diameter/2*cos(30)])
{
rotate(360/16)
cylinder(r=m3_diameter/2,h=14,$fn=8);
cylinder(r=m3_nut_diameter/2,h=4,$fn=6);
}
//main cut
translate(v = [0, 10, 8+15]) cube(size = [2,20,16], center = true);
//difference cut
render()intersection ()
{
translate(v = [0, 7, 15.5]) cube(size = [20,8,1], center = true);
translate([0,0,14.5])
cylinder(r=11,h=3);
}
}
}