Commit | Line | Data |
---|---|---|
2159eed1 VAH |
1 | // PRUSA iteration3 |
2 | // X ends | |
3 | // GNU GPL v3 | |
dba99e69 | 4 | // Josef Průša <josefprusa@me.com> |
3b7acad1 | 5 | // Václav 'ax' Hůla <axtheb@gmail.com> |
2159eed1 VAH |
6 | // http://www.reprap.org/wiki/Prusa_Mendel |
7 | // http://github.com/prusajr/PrusaMendel | |
8 | ||
2fc35ca2 | 9 | include <configuration.scad> |
d3618a65 | 10 | use <bushing.scad> |
eff6608e | 11 | use <inc/bearing-guide.scad> |
86c402d8 | 12 | |
d3618a65 NZ |
13 | |
14 | module x_end_motor(){ | |
15 | ||
690004c7 | 16 | mirror([0, 1, 0]) { |
c7eb29ba | 17 | |
690004c7 | 18 | x_end_base([3, 3, 0, 0], thru=false); |
c7eb29ba | 19 | |
690004c7 VAH |
20 | |
21 | translate([0, -z_delta - 2, 0]) difference(){ | |
79b4b60a | 22 | union(){ |
690004c7 VAH |
23 | translate([-13.75, -14 + z_delta / 2, 26 - z_delta / 4]) cube_fillet([17.5, 14 + z_delta, 52 + z_delta / 2], center = true, vertical=[0, 0, 3, 1.5], top=[0, 3, 6, 3], $fn=16); |
24 | translate([-10, -34, 9]) intersection(){ | |
25 | translate([0, 0, -z_delta / 4]) cube_fillet([10, 37, 18 + z_delta / 2], center = true, vertical=[0, 0, 0, 0], top=[0, 3, 5, 3]); | |
26 | translate([-10/2, 10, -26]) rotate([45, 0, 0]) cube_fillet([10, 60, 60], radius=2); | |
79b4b60a | 27 | } |
690004c7 | 28 | translate([-15, -32, 30.25]) rotate([90, 0, 0]) rotate([0, 90, 0]) nema17(places=[1, 0, 1, 1], h=10); |
82e9f136 | 29 | } |
c7eb29ba | 30 | |
79b4b60a | 31 | // motor screw holes |
690004c7 | 32 | translate([21-5, -21-11, 30.25]){ |
79b4b60a | 33 | // belt hole |
690004c7 | 34 | translate([-30, 11, 0]) cube([10, 36, 20], center = true); |
79b4b60a | 35 | //motor mounting holes |
690004c7 | 36 | 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); |
79b4b60a | 37 | } |
c7eb29ba | 38 | } |
79b4b60a | 39 | //smooth rod caps |
f7c38069 VAH |
40 | translate([-22, -10, 0]) cube([17, 2, 15]); |
41 | translate([-22, -10, 45]) cube([17, 2, 10]); | |
c7eb29ba | 42 | } |
d3618a65 NZ |
43 | } |
44 | ||
690004c7 VAH |
45 | module x_end_base(vfillet=[3, 3, 3, 3], thru=true, len=40){ |
46 | //height and width of the x blocks depend on x smooth rod radius | |
47 | x_box_height = 52 + 2 * bushing_xy[0]; | |
48 | x_box_width = (bushing_xy[0] <= 4) ? 17.5 : bushing_xy[0] * 2 + 9.5; | |
d3618a65 | 49 | |
c7eb29ba VAH |
50 | difference(){ |
51 | union(){ | |
690004c7 VAH |
52 | translate([-10 - bushing_xy[0], -10 + len / 2, 30]) cube_fillet([x_box_width, len, x_box_height], center=true, vertical=vfillet, top=[5, 3, 5, 3]); |
53 | ||
54 | translate([0, 0, 4 - bushing_xy[0]]) { | |
55 | //rotate([0, 0, 0]) translate([0, -9.5, 0]) | |
56 | translate([z_delta, 0, 0]) linear(bushing_z, x_box_height); | |
57 | // Nut trap | |
58 | //difference(){ | |
59 | translate([-2, 17, 4]) cube_fillet([20, 16, 8], center = true, vertical=[6, 0, 0, 0], $fn=4); | |
60 | //bottom hole | |
61 | //} | |
c7eb29ba VAH |
62 | } |
63 | } | |
690004c7 VAH |
64 | // here are bushings/bearings |
65 | translate([z_delta, 0, 4 - bushing_xy[0]]) linear_negative(bushing_z, x_box_height); | |
d3618a65 | 66 | |
c7eb29ba | 67 | // belt hole |
690004c7 VAH |
68 | translate([-5.5-10+1.5, 22-9, 30]) cube([idler_width + 1, 55, 27], center = true); |
69 | ||
70 | translate([-10 - bushing_xy[0], 0, 0]) { | |
71 | if(thru == true){ | |
72 | translate([0, -11, 6]) rotate([-90, 0, 0]) pushfit_rod(bushing_xy[0] * 2 + 0.2, 50); | |
73 | translate([0, -11, xaxis_rod_distance+6]) rotate([-90, 0, 0]) pushfit_rod(bushing_xy[0] * 2 + 0.2, 50); | |
74 | } else { | |
75 | translate([0, -7, 6]) rotate([-90, 0, 0]) pushfit_rod(bushing_xy[0] * 2 + 0.2, 50); | |
76 | translate([0, -7, xaxis_rod_distance+6]) rotate([-90, 0, 0]) pushfit_rod(bushing_xy[0] * 2 + 0.2, 50); | |
77 | } | |
78 | } | |
79 | translate([0, 0, 4 - bushing_xy[0]]) { // m5 nut insert | |
80 | translate([0, 17, -10]) rotate([0,0,45]){ | |
81 | cylinder(h = 40, r=2.75); | |
82 | //nut slid in | |
83 | translate([3, 0, 14]) cube([9.2*2, 9.2*sqrt(3/4)+0.4, 4.1], center = true); | |
84 | } | |
c7eb29ba | 85 | } |
c7eb29ba | 86 | } |
c7eb29ba | 87 | //threaded rod |
690004c7 | 88 | translate([0, 17, 0]) %cylinder(h = 70, r=2.5+0.2); |
d3618a65 | 89 | } |
79b4b60a | 90 | |
79b4b60a VAH |
91 | module x_end_idler(){ |
92 | difference() { | |
690004c7 | 93 | x_end_base(len=45); |
79b4b60a | 94 | // idler hole |
690004c7 VAH |
95 | translate([-14, 26, 30]) rotate([0, 90, 0]) { |
96 | idler_assy(idler_bearing); | |
97 | translate([0,20,0]) | |
98 | cube([idler_assy_r_outer(idler_bearing) * 2, 40, idler_width + 1], center=true); | |
99 | if (idler_bearing[3]) { | |
100 | %translate([0, 0, -(idler_width / 2)]) bearing_guide_outer(); | |
101 | %translate([0, 0, idler_width / 2]) mirror([0, 0, 1]) bearing_guide_inner(); | |
102 | } | |
79b4b60a VAH |
103 | } |
104 | } | |
105 | } | |
106 | ||
690004c7 VAH |
107 | mirror([0, 0, 0]) x_end_idler(thru=true); |
108 | // translate([40, 40, 0]) x_end_idler(thru=false); | |
d6871009 | 109 | translate([50, 0, 0]) x_end_motor(); |
d3618a65 | 110 | |
690004c7 | 111 | module pushfit_rod(diameter, length){ |
c7eb29ba | 112 | cylinder(h = length, r=diameter/2, $fn=30); |
690004c7 | 113 | translate([0, -diameter/4, length/2]) cube([diameter, diameter/2, length], center = true); |
d3618a65 | 114 | |
690004c7 | 115 | translate([0, -diameter/2-1.2, length/2]) cube([diameter, 1, length], center = true); |
d3618a65 | 116 | } |
eff6608e VAH |
117 | |
118 | if (idler_bearing[3] == 1) { | |
119 | translate([-25, -20 - idler_bearing[0] / 2, 0]) { | |
120 | render() bearing_guide_inner(); | |
121 | translate([idler_bearing[0]+10, 0, 0]) | |
122 | render()bearing_guide_outer(); | |
123 | } | |
124 | } |