forked from indieflow/Prusa3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
x-carriage.scad
135 lines (114 loc) · 5.24 KB
/
x-carriage.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
// PRUSA iteration3
// X carriage
// 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>
// mounting plate
use <extras/groovemount.scad>
carriage_l = 74;
carriage_hole_to_side = 5;
carriage_hole_height = 4;
module x_carriage(){
mirror([1,0,0]) {
difference() {
union() {
//upper bearing
rotate([0,0,180]) {
if (bearing_choice == 2) {
linear_bearing(fillet = true);
} else {
linear_bushing(27);
}
}
//lower bearing
translate([xaxis_rod_distance,0,0]) {
if (bearing_choice == 2) {
linear_bearing(carriage_l, fillet = true);
} else {
linear_bushing(carriage_l);
}
}
// main plate
//difference(){
translate([14,-10,0]) cube_fillet([xaxis_rod_distance - 19,6,carriage_l], radius=2);
translate([5.5,-10,0]) cube_fillet([xaxis_rod_distance - 11,6,28], radius=2);
//translate([55,-17.5, 67]) rotate([0,70,0]) cube([80,60,60], center = true);
//}
//reduce springiness
translate([6,5,20]) cube([xaxis_rod_distance - 13,5,8]);
translate([20,0,carriage_hole_to_side]) {
rotate([90,0,0]) cylinder(r=(carriage_hole_to_side > 5 ? 5 : carriage_hole_to_side), h=12, center=true);
}
translate([20,0,carriage_l - carriage_hole_to_side]) {
rotate([90,0,0]) cylinder(r=(carriage_hole_to_side > 5 ? 5 : carriage_hole_to_side), h=12, center=true);
}
translate([45/2,0,0]){
// belt dummy
%translate([0,0,carriage_l/2]) cube([20,6,carriage_l], center = true);
//belt flat side
* difference() {
translate([-13.5,0,carriage_l/2]) cube_fillet([7,14,carriage_l], vertical = [3,3,0,0], center = true);
translate([-45/2,0,0]) bushing_negative();
}
difference(){
translate([-3.0,0,carriage_l/2]) cube_fillet([11,14,carriage_l], vertical = [2,2,0,0], center = true);
#translate([-3.5,0,(carriage_l+28)/2]) cube([13,10,20], center = true);
translate([-8.5, 0, 0]) cube([2, 10, 28*2+1], center = true);
translate([0,0,28]) intersection() {
for (i = [0 : (carriage_l-28)/belt_tooth_distance])
{
translate([-8.5, 0, 1+i*belt_tooth_distance]) cube([2, 10, belt_tooth_distance*belt_tooth_ratio], center = true);
}
translate([0, 0, carriage_l/2]) cube([20, 10, carriage_l], center = true);
}
}
}
}
#translate([20,-2,carriage_hole_to_side]) {
rotate([90,0,0]) cylinder(r=2.2, h=22, center=true);
translate([0,3,0]) rotate([90,90,0]) cylinder(r=9/2, h=carriage_hole_height, $fn=6, center=true);
translate([0,3,-3]) cube([8,carriage_hole_height,8], center=true);
}
#translate([20,-2,carriage_l-carriage_hole_to_side]) {
rotate([90,0,0]) cylinder(r=2.2, h=22, center=true);
translate([0,3,0]) rotate([90,90,0]) cylinder(r=9/2, h=carriage_hole_height, $fn=6, center=true);
translate([0,3,3]) cube([8,carriage_hole_height,8], center=true);
}
# translate([20,-10,(carriage_l+28)/2]) {
translate([0,0,m3_nut_diameter/-2]) cube([2,m3_nut_diameter_bigger,m3_nut_diameter]);
translate([0,m3_nut_diameter_bigger/2,0]){
rotate([0, 90,0]) cylinder(r=3.2/2,h=10);
rotate([0,-90,0]) cylinder(r=3.2/2,h=30);
}
}
}
}
module holding_plate(){
translate([13,-10,0]){
difference(){
translate([2.5-13.8/2, -17.5,35]) cube([5,35,carriage_l], center = true);
translate([2.5-13.8/2, -17.5,35]) cube([7,25,25], center = true);
translate([0,-17.5, 35-25]) rotate([0,-90,0]) cylinder(h = 80, r=2.5, $fn=30);
translate([0,-17.5, 35+25]) rotate([0,-90,0]) cylinder(h = 80, r=2.5, $fn=30);
}
%translate([-7, -18 ,carriage_l/2]) rotate([-90,0,90]) groovemount();
}
}
}
module x_beltclamp(){
translate([2,0,0]) difference(){
cube_fillet([carriage_l-32,17,7]);
translate([carriage_l-32,m3_nut_diameter_bigger,0]/2){
cylinder(r=3.2/2,h=30);
translate([0,0,7]) mirror([0,0,1]) screw(slant=false,r=1.7,head_drop=3);
}
}
}
x_carriage();
translate([carriage_l/-2-10,12,0]) x_beltclamp();
%translate([-13,-10,carriage_l]) rotate([90,90,90]) x_beltclamp();
//holding_plate();