forked from indieflow/Prusa3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
x-end.scad
119 lines (97 loc) · 4.1 KB
/
x-end.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
// PRUSA iteration3
// X ends
// GNU GPL v3
// Josef Průša <[email protected]>
// Václav 'ax' Hůla <[email protected]>
// http://www.reprap.org/wiki/Prusa_Mendel
// http://github.com/prusajr/PrusaMendel
include <configuration.scad>
use <bushing.scad>
xaxis_rod_distance = 45;
module x_end_motor(){
mirror([0,1,0]) {
x_end_base([3,3,0,0], thru=false);
/// motor dummy
//%translate([21-5,-21-11,25]) cube([42,42,42], center = true);
difference(){
union(){
translate([-13.75,-15,26]) cube_fillet([17.5,12,52], center = true, vertical=[0,0,3,1.5], top=[0,3,6,3]);
translate([-10,-34,9]) intersection(){
cube_fillet([10,37,18], center = true, vertical=[0,0,0,0], top=[0,3,5,3]);
translate([-10/2,10,-26]) rotate([45,0,0]) cube_fillet([10,60,60], radius=2);
}
translate([-15, -32, 30.25]) rotate([90, 0, 0]) rotate([0, 90, 0]) nema17(places=[1,0,1,1], h=10);
}
// motor screw holes
translate([21-5,-21-11,30.25]){
// belt hole
translate([-30,11,0]) cube([10,26,20], center = true);
//motor mounting holes
translate([-29, 0, 0]) rotate([0, 0, 0]) rotate([0, 90, 0]) nema17(places=[1,1,0,1], holes=true, shadow=5, $fn=7, h=8);
}
}
//smooth rod caps
translate([-22, -10, 0]) cube([17, 2, 15]);
translate([-22, -10, 45]) cube([17, 2, 10]);
}
}
module x_end_base(vfillet=[3,3,3,3], thru=true, len=40){
difference(){
union(){
difference(){
#translate([-13.75-0.5,-10+len/2,30]) cube_fillet([18.5,len,60], center = true, vertical=vfillet, top=[5,3,5,3]);
bushing_negative(60);
}
//rotate([0,0,0]) translate([0,-9.5,0])
if (bearing_choice == 1) {
linear_bushing(60);
} else {
linear_bearing(60);
}
// Nut trap
difference(){
if ((bearing_choice != 1) || (bushing_type == 2)) {
translate([-2,17.5,4]) cube_fillet([16,18,8], center = true, vertical=[3,0,0,0]);
} else {
translate([-2,17.5,4]) cube_fillet([16,18,8], center = true, vertical=[3,0,0,3]);
}
//bottom hole
translate([0,17,-1]) cylinder(h = 4, r=2.75);
//nut slid in
translate([5,17,4]) cube([9.2*2,9.2*sqrt(3/4),4.1], center = true);
translate([0,17,6.5]) cylinder(h = 4, r=2.75);
}
}
// belt hole
translate([-5.5-10+1.5,22-9,30]) cube([10,55,32], center = true);
if(thru == true){
translate([-14,-11,6]) rotate([-90,0,0]) pushfit_rod(8.2,50);
translate([-14,-11,xaxis_rod_distance+6]) rotate([-90,0,0]) pushfit_rod(8.2,50);
} else {
translate([-14,-7,6]) rotate([-90,0,0]) pushfit_rod(8.25,50);
translate([-14,-7,xaxis_rod_distance+6]) rotate([-90,0,0]) pushfit_rod(8.25,50);
}
}
//threaded rod
#translate([0,17,0]) %cylinder(h = 70, r=2.5+0.2);
}
module x_end_idler(){
difference() {
x_end_base(len=42+idler_size_inner_r);
// idler hole
translate([0,17+6+idler_size_inner_r,30.25-((bearing_type==0)? 3 : 0)]) rotate([0,-90,0]) cylinder(h = 80, r=idler_size_inner_r-0.2, $fn=30);
if (bearing_type == 0)
translate([-9,17+6+idler_size_inner_r,30.25-3]) {
rotate([0,-90,0]) cylinder(h = 10, r=idler_size/2+4, $fn=30);
translate([-5,10,0]) cube([10,20,idler_size+8], center=true);
}
}
}
mirror([0,0,0]) x_end_idler(thru=true);
// translate([40,40,0]) x_end_idler(thru=false);
translate([40,0,0]) x_end_motor();
module pushfit_rod(diameter,length){
cylinder(h = length, r=diameter/2, $fn=30);
translate([0,-diameter/4,length/2]) cube([diameter,diameter/2,length], center = true);
translate([0,-diameter/2-1.2,length/2]) cube([diameter,1,length], center = true);
}