-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathY belt tensioner.scad
233 lines (207 loc) · 4.99 KB
/
Y belt tensioner.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
/**
* A custom Y axis idler tensioner for my 3D printer build.
* This is based on an excellent design (as far as Y axis belt tensioners go). It fits on any 20x<whatever> (2020, 2040, 2060...) V-Slot or T-Slot profile.
*
* Based on this design: https://www.thingiverse.com/thing:2140441
* But completely constructed from scratch in OpenSCAD for my purposes.
* This was made to use the Y Belt Idler from the URL above.
* I Made the tensioner independent from the Y axis linear motion rod holders so that it's not specific to a Prusa printer - or a clone
* with exactly 140mm between its Y axis linear motion rails. This also makes the idler position adjustable, unlike the origingal piece. This
* will work for those specific printers too, but also for every other printer that has a 2020/2040/2060... rail hanging out at the end of the
* printer.
*
*/
// Render quality: Minimum angle
$fa = 1;
// Render quality: Minimu size
$fs = 0.1;
bodyWidth = 58;
bodyDepth = 20;
bodyHeight = 17;
cutoutPerimeter = 10.5;
cutoutDepth = 16;
throughHoleDiameter = 3.45;
retainerBoltXOffset = 18;
cornerHeight = 11;
cornerLength = 5;
rearShapeOffset = 4;
// Construct the unit
// mainUnit();
// Construct the custom idler pulley arm
// idlerPulleyArm();
module mainUnit()
{
difference()
{
{
body();
}
{
union()
{
cutout();
translate( [retainerBoltXOffset, (bodyDepth/2), 0] )
{
m5Cutout();
}
translate( [(-1 * retainerBoltXOffset), (bodyDepth/2), 0] )
{
m5Cutout();
}
}
}
}
}
// This is a funky mash-up of the original model to make it work with a 6mm pulley
// The end-result should look like it was intended to be this size
module idlerPulleyArm()
{
idlerPulleyArmRear();
idlerPulleyArmMiddle();
translate( [0, 4, 0] )
{
idlerPulleyArmMiddle();
idlerPulleyArmFront();
}
}
module idlerPulleyArmMiddle()
{
difference()
{
{
import( "thirdparty/Prusa_Y_Belt_Idler.stl" );
}
{
union()
{
{
idlerPulleyArmFrontCutout();
}
{
idlerPulleyArmRearCutout();
}
}
}
}
}
module idlerPulleyArmRear()
{
difference()
{
{
import( "thirdparty/Prusa_Y_Belt_Idler.stl" );
}
{
union()
{
{
idlerPulleyArmFrontCutout();
}
{
idlerPulleyArmMiddleCutout();
}
}
}
}
}
module idlerPulleyArmFront()
{
difference()
{
{
import( "thirdparty/Prusa_Y_Belt_Idler.stl" );
}
{
union()
{
{
idlerPulleyArmRearCutout();
}
{
idlerPulleyArmMiddleCutout();
}
}
}
}
}
module idlerPulleyArmMiddleCutout()
{
translate( [-25.7, -152.2, 21] )
{
cube( [20, 4, 10] );
}
}
module idlerPulleyArmRearCutout()
{
translate( [-25.7, -173.8, 21] )
{
cube( [20, 21.6, 10] );
}
}
module idlerPulleyArmFrontCutout()
{
translate( [-25.7, -148.2, 21] )
{
cube( [20, 10, 10] );
}
}
module cutout()
{
union()
{
{
translate( [(-1 * (cutoutPerimeter/2)), -0.1, 1] )
{
cube( [cutoutPerimeter, cutoutDepth + 0.1, cutoutPerimeter] );
}
}
{
translate( [0, cutoutDepth + 10 - 0.1, 1 + (cutoutPerimeter/2)] )
{
rotate( [90, 0, 0] )
{
cylinder( d=throughHoleDiameter, h=10 );
}
}
}
}
}
module body()
{
hull()
{
{
translate( [(-1 * ((bodyWidth/2) - (cornerLength))), 0, 0] )
{
cube( [(bodyWidth - (cornerLength*2)), bodyDepth - rearShapeOffset, bodyHeight] );
}
}
{
union()
{
translate( [((bodyWidth/2) - cornerLength), 0, 0] )
{
cube( [cornerLength, bodyDepth, cornerHeight] );
}
translate( [(-1 * (bodyWidth/2)), 0, 0] )
{
cube( [cornerLength, bodyDepth, cornerHeight] );
}
}
}
}
}
module m5Cutout()
{
m5ThroughHoleDiameter = 5.5;
m5ThroughHoleHeight = 4.5;
m5HeadDiameter = 9;
translate( [0, 0, -0.1] )
{
cylinder( d=m5ThroughHoleDiameter, h=(m5ThroughHoleHeight + 0.2) );
}
translate( [0, 0, m5ThroughHoleHeight] )
{
cylinder( d=m5HeadDiameter, h=(bodyHeight - m5ThroughHoleHeight + 0.1));
}
}