Welcome to mirror list, hosted at ThFree Co, Russian Federation.

effector.scad - github.com/haydnhuntley/kumu-3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: da80c7169a163924250670b78d77263f52f12c21 (plain)
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
// Effector for Kumu-3D printer.
//
// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
// International License.
// Visit:  http://creativecommons.org/licenses/by-sa/4.0/
//
// Haydn Huntley
// haydn.huntley@gmail.com

// Note: assumes a layer height of 0.1mm.

$fn = 360/4;

include <configuration.scad>;

// All measurements in mm.
insideBaseRadius        = 46.0 / 2;
centerBaseHeight        = 2.0;
baseHeight              = 6;
totalMountHeight        = 9.7;
mountHeight             = 6.0;  // The height of the mount for an E3D.

mountHeightExt			= totalMountHeight - mountHeight;  // The height of the next part of the mount.
minMountHoleRadius      = (12.15+0.5) / 2;
maxMountHoleRadius      = (16.15+0.2) / 2;
maxMountHoleLooseRadius = (maxMountHoleRadius + 0.5);
maxMountHoleOffset      = (minMountHoleRadius + maxMountHoleRadius) / 2;
edgeRadius              = baseHeight/2;
sides                   = 3;
ballStudBaseOffset		= 43.0 / 2;
sideLength              = ballJointSeparation + 3 * edgeRadius;
secureScrewX			= 15.0;
secureScrewY			= 4.0;
secureScrewZ			= (totalMountHeight-2)/2+centerBaseHeight;
keyX					= 38.0;
keyY					=  3.0;
lightRingOutsideDiameter= 60;
lightRingInsideDiameter = 51;
lightRingAverageRadius  = (lightRingOutsideDiameter+lightRingInsideDiameter)/4;
fanThickness            = 15.3+2*smidge;
fanLugThickness			=  3.25;
fanLugRadiusInner		=  5.2/2;
fanLugRadiusOuter		=  7.0/2;
fanLugOffset		    = 35.0;
attachmentRadius        = 19;


module m3x8BallStud()
{
	len = 8.0;

	// The screw shaft.
	translate([0, 0, 2-0.6*m3NylockNutHeight])
	cylinder(r=m3LooseRadius, h=len+3, $fn=16);
	
	// The nylock nut trap.
	translate([0, 0, -1.4])
	rotate([0, 0, 30])
	cylinder(r1=m3NutRadius-1*smidge,
			 r2=m3NutRadius-3*smidge,
			 h=2+m3NylockNutHeight, $fn=6);
}


module m3x8Base()
{
	translate([0, 0, -3])
	cylinder(r1=(10+2)/2, r2=10/2, h=13.3);
}


module fanAttachment(positiveShape=true)
{
	if (positiveShape)
	{
		// The part to be added to the body.
		difference()
		{
			// Fan attachment to body.
			hull()
			{
				cylinder(r=fanLugRadiusOuter, h=fanThickness+2*fanLugThickness,
					     center=true);
				translate([0, -9, 0])
				cylinder(r=fanLugRadiusInner, h=fanThickness+2*fanLugThickness,
					     center=true);
			}
			hull()
			{
				// Gap for fan to fit in.
				cylinder(r=fanLugRadiusOuter+5*smidge, h=fanThickness,
						 center=true);
				translate([0, -9, 0])
				cylinder(r=fanLugRadiusInner+5*smidge, h=fanThickness,
						 center=true);
			}
			// Screw hole.
			translate([-abs(fanLugRadiusInner-fanLugRadiusOuter)/2, 0, 0])
			cylinder(r=m3LooseRadius, h=fanThickness+2*fanLugThickness+smidge,
				     center=true);
		}
	}
	else
	{
		// The part to be subtracted from the body.
		// Gap for fan to fit in.
		translate([-abs(fanLugRadiusInner-fanLugRadiusOuter)/2, 0, 0])
		cylinder(r=fanLugRadiusOuter+5*smidge, h=fanThickness, center=true);
	}
}


module effectorOutside()
{
	difference()
	{
		union()
		{
			// The body.
			rotate_extrude(convexity=10)
			translate([lightRingAverageRadius, 0, 0])
			circle(r=2.5+(lightRingOutsideDiameter+10*smidge -
					  (lightRingInsideDiameter-10*smidge))/4);

			// Add a base for each M3x8 ball stud to sit on.
			for (i = [0:sides])
			{
				angle = i * 360/sides;
				rotate([0, 0, angle])
				{
					translate([ballJointSeparation/2, 0, 0])
					translate([0, ballStudBaseOffset, 0])
					rotate([-30, 0, 0])
					m3x8Base();

					translate([-ballJointSeparation/2, 0, 0])
					translate([0, ballStudBaseOffset, 0])
					rotate([-30, 0, 0])
					m3x8Base();
				}
			}

			// Add a fan attachment in the middle of each side.
			for (i = [0:sides])
			{
				angle = i * 360/sides;
				rotate([0, 0, angle])
				translate([0, fanLugOffset,
							  min(fanLugRadiusInner, fanLugRadiusOuter)])
				rotate([0, 90, 0])
				fanAttachment(true);
			}
		}

		// Cut-away.
//		cube([100, 100, 100]);

		// Remove everything below the base.
		translate([0, 0, -10])
		cylinder(r=2*lightRingAverageRadius, h=10);

		// Center hole.
		translate([0, 0, -smidge/2])
		cylinder(r=insideBaseRadius,
				 h=baseHeight+smidge);

		// M3 holes for attaching ball studs.
		for (i = [0:sides])
		{
			angle = i * 360/sides;
			rotate([0, 0, angle])
			{
				translate([ballJointSeparation/2, 0, 0])
				translate([0, ballStudBaseOffset, 0])
				rotate([-30, 0, 0])
				m3x8BallStud();

				translate([-ballJointSeparation/2, 0, 0])
				translate([0, ballStudBaseOffset, 0])
				rotate([-30, 0, 0])
				m3x8BallStud();
			}
		}

		// Hollow out fan attachments in the middle of each side.
		for (i = [0:sides])
		{
			angle = i * 360/sides;
			rotate([0, 0, angle])
			translate([0, fanLugOffset, 
					   min(fanLugRadiusInner, fanLugRadiusOuter)])
			rotate([0, 90, 0])
			fanAttachment(false);
		}

		// For adding an LED light ring underneath.
		scale([1, 1, 1.3])
		rotate_extrude(convexity=10)
		translate([lightRingAverageRadius, 0, 0])
		circle(r=(lightRingOutsideDiameter+10*smidge -
				  (lightRingInsideDiameter-10*smidge))/4);

		// For the leads to the LED light ring.
		for (i = [-1, 1])
			rotate([0, 0, 90+i*9])
			translate([lightRingOutsideDiameter/2, 0, 1])
			rotate([0, -25, 0])
			cylinder(r=1.5/2+4*smidge, h=2*baseHeight+2, $fn=16);
	}
}


module effectorInside()
{
	difference()
	{
		union()
		{
			// Center area.
			cylinder(r=insideBaseRadius, h=centerBaseHeight);

			// Raised area to hold the hot end's mount.
			difference()
			{
				cylinder(r=maxMountHoleRadius+3, h=totalMountHeight);
				cylinder(r=minMountHoleRadius,   h=totalMountHeight);
				translate([0, 0, mountHeight])
				cylinder(r=maxMountHoleRadius, h=mountHeightExt+smidge);
			}

			// Wings for securing screws.
			translate([-keyX/2, 2.5-smidge-keyY/2, 0])
			cube([keyX, keyY, totalMountHeight]);
		}
	
		// Oblong hole for the mount.
		hull()
		{
			translate([0, 0, -smidge/2])
			cylinder(r=minMountHoleRadius, h=mountHeight+smidge);

			translate([0, maxMountHoleOffset+8, -smidge/2])
			cylinder(r=minMountHoleRadius, h=mountHeight+smidge);
		}

		// Oblong hole for the top of the groove mount.
		translate([0, 0, mountHeight])
		hull()
		{
			translate([0, 0, -smidge/2])
			cylinder(r=maxMountHoleRadius, h=mountHeightExt+smidge);

			translate([0, maxMountHoleOffset, -smidge/2])
			cylinder(r=maxMountHoleRadius, h=mountHeightExt+smidge);
		}

		// Hole for inserting the mount.
		translate([0, 2+maxMountHoleOffset, -smidge/2])
		cylinder(r=maxMountHoleLooseRadius, h=mountHeight+smidge);

		// Two holes for securing the mount key.
		translate([secureScrewX, secureScrewY, secureScrewZ])
		rotate([-90, 0, 0])
		cylinder(r=m3LooseRadius, 10+smidge, center=true, $fn=16);

		translate([-secureScrewX, secureScrewY, secureScrewZ])
		rotate([-90, 0, 0])
		cylinder(r=m3LooseRadius, h=10+smidge, center=true, $fn=16);

		// Six M3 holes for attaching a probe, etc.
		for (i = [0:6])
			rotate([0, 0, 30+i*60])
			translate([attachmentRadius, 0, -smidge/2])
			cylinder(r=m3LooseRadius, h=mountHeight+smidge);
	}	
}


module mountKey()
{
	h = totalMountHeight - centerBaseHeight;
	offset = 3 * smidge;
	
	difference()
	{
		union()
		{
			// The wings on the side of the mount key for securing it.
			translate([-keyX/2, keyY+offset, centerBaseHeight])
			cube([keyX, keyY, h]);

			// The cylindrical body.
			translate([0, 0, centerBaseHeight])
			cylinder(r=maxMountHoleRadius+3, h=h);
		}

		// The box which clips off the flat edge against the mount.
		translate([-keyX/2,
		           keyY-2*maxMountHoleRadius+offset,
		           centerBaseHeight-smidge/2])
		cube([keyX, 2*maxMountHoleRadius, h+smidge]);

		// Hole for the mount.
		translate([0, 0, -smidge/2])
		cylinder(r=minMountHoleRadius, h=mountHeight+smidge);

		// Hole for the top of the groove mount.			
		translate([0, 0, mountHeight-smidge/2])
		cylinder(r=maxMountHoleRadius, h=mountHeightExt+smidge);

		// Two holes for securing the mount key.
		translate([secureScrewX, secureScrewY, secureScrewZ])
		rotate([-90, 0, 0])
		cylinder(r=m3LooseRadius, 10+smidge, center=true, $fn=16);

		translate([-secureScrewX, secureScrewY, secureScrewZ])
		rotate([-90, 0, 0])
		cylinder(r=m3LooseRadius, 10+smidge, center=true, $fn=16);
	}
}


module fanArm()
{
/*
	// The M3x20 bolt which will attach the fan.
	translate([0, -m3LooseRadius/2-1, fanLugRadiusOuter])
	rotate([90, 0, 0])
	%cylinder(r=m3LooseRadius, h=20);
/*
	// The hole through the fan.
	translate([0, -6.5, fanLugRadiusOuter])
	rotate([90, 0, 0])
	%cylinder(r=5, h=fanThickness);
*/	
	difference()
	{
		// The body.
		hull()
		{
			translate([0, 0, fanLugRadiusOuter])
			rotate([0, 90, 0])
			cylinder(r=fanLugRadiusOuter,
					 h=fanThickness-5*smidge, center=true);

			translate([0, -5, fanLugRadiusOuter])
			rotate([90, 0, 0])
			scale([1.2, 1, 1])
			cylinder(r=fanLugRadiusOuter, h=20-fanThickness);
		}

		// A hole for the M3x25 bolt to hold it to the effector.
		translate([0, 0, fanLugRadiusOuter])
		rotate([0, 90, 0])
		cylinder(r=m3LooseRadius, h=fanThickness+smidge, center=true);

		// A hole for the M3x20 bolt which will attach the fan.
		translate([0, -m3LooseRadius/2-1, fanLugRadiusOuter])
		rotate([90, 0, 0])
		translate([0, 0, -1])
		cylinder(r=m3LooseRadius, h=21);

		// A hole to capture an M3 nut, for the M3x20 fan bolt.
		translate([0, -(m3LooseRadius+4), (2*fanLugRadiusOuter+smidge)/2])
		cube([5.5+3*smidge,
			  m3NutHeight+3*smidge,
			  2*fanLugRadiusOuter+smidge],
			 center=true);
	}
}


// Draw the effector.
union()
{
	effectorOutside();

	difference()
	{
		effectorInside();

		// The box which clips off the flat edge against the mount key.
		// The extra smidge in the -Y direction helps hold it tight.
		translate([-keyX/2,
		           keyY-smidge,
		           centerBaseHeight])
		cube([keyX,
		      maxMountHoleRadius,
		      totalMountHeight - centerBaseHeight+smidge]);
	}

	%mountKey();

	translate([0, 55, -centerBaseHeight])
	mountKey();
}


// Add the fan arms.
for (i = [0:3])
	rotate([0, 0, 60+i*120])
	translate([0, -43, 0])
	fanArm();