-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathX ends.scad
85 lines (74 loc) · 2.39 KB
/
X ends.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
include <thirdparty/prusa/Original-Prusa-i3/Printed-Parts/scad/x-end-idler.scad>
include <thirdparty/prusa/Original-Prusa-i3/Printed-Parts/scad/x-end-motor.scad>
include <Y carriage bearing retainer.scad>
include <Z axis motor mount.scad>
/* Render quality variables */
$fa = 1;
$fs = 0.1;
/* END Render quality variables */
// renderMotorMount();
renderIdlerMount();
module renderMotorMount()
{
bearingZoffset = (rj4jpLength - baseYDimension) + 5;
difference()
{
{
x_end_motor();
}
{
// RJ4JP bearing cutouts to replace LM8UU
union()
{
translate( [0, 0, bearingZoffset - 1] ) bearingCutout_xends();
translate( [0, 0, baseYDimension - 1] ) bearingCutout_xends();
}
}
}
}
module renderIdlerMount()
{
bearingZoffset = (rj4jpLength - baseYDimension) + 2.5;
difference()
{
{
union()
{
x_end_idler();
translate( [-9, -10.5, 0] )
{
rotate( [0, 0, 180] )
{
baseplate();
idlerFrontSupport( frontLength = true );
translate( [-1 * wallthickness, 0, 0] ) rotate( [0, 0, 90] ) idlerFrontSupport( frontLength = false );
}
}
}
}
{
// RJ4JP bearing cutouts to replace LM8UU
union()
{
translate( [0, 0, bearingZoffset + 1.5] ) bearingCutout_xends();
translate( [0, 0, baseYDimension - 1] ) bearingCutout_xends();
}
}
}
}
// copied from "Y carriage bearing retainer.scad" Copied instead of 'included' to guarantee centering
module bearingCutout_xends()
{
// thinner inner cylinder to create the face of the retainer ring
cylinder( d = bearingOuterDiameter - (trapRingDepth * 2), h = baseYDimension + 2 );
// main bearing retainer area
translate( [0, 0, (baseYDimension/2) - (distanceBetweenTrapRings/2) + 1] )
{
cylinder( d = bearingOuterDiameter, h = distanceBetweenTrapRings );
}
cylinder( d = bearingOuterDiameter, h = cutoutDistanceToEnd );
translate( [0, 0, baseYDimension - cutoutDistanceToEnd + 2] )
{
cylinder( d = bearingOuterDiameter, h = cutoutDistanceToEnd );
}
}