-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarriage_y.scad
More file actions
50 lines (44 loc) · 1.84 KB
/
carriage_y.scad
File metadata and controls
50 lines (44 loc) · 1.84 KB
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
$fn=32;
use <./library.scad>;
// options
with_linear_bearings = true;
use_insert_nuts=true;
layer_height=0.2; // required to force printed layer between screw head and thread (screw_separation)
// constants
nema17_width = 42.3;
GT2_pulley_diameter = 12.73;
GT2_thickness = 2;
pulley_diameter = 20;
screw_x = nema17_width/2 + GT2_pulley_diameter/2 + GT2_thickness + pulley_diameter/2;
screw_separation=with_linear_bearings ? 2*layer_height : 0;
difference() {
if(with_linear_bearings) union() {
translate([20/2,0,-10/2]) cube([20,65,10], center=true);
translate([50/2,0,-10/2]) cube([50,40,10], center=true);
} else {
translate([30/2+20,0,0]) cube([30,40,20], center=true);
}
//y-axis shaft + bearings
_bearing_y_offset = 25/2+2.5;
translate([10, _bearing_y_offset,0]) rotate([90,90,0]) lm8uu();
translate([10, _bearing_y_offset,0]) rotate([90,90,0]) lm8uu_zip_tie(width=4, thickness=1.5);
translate([10,-_bearing_y_offset,0]) rotate([90,90,0]) lm8uu();
translate([10,-_bearing_y_offset,0]) rotate([90,90,0]) lm8uu_zip_tie(width=4, thickness=1.5);
//x-axis shafts
translate([22.5,0,0]) rotate([0,90,0]) cylinder(d=8+0.25, h=40);
translate([(25+screw_x)/2,0,-10]) {
rotate([-90,0,0]) m3_mounting_hole(use_insert_nuts=true);
screw(d=3, l=10, head=false);
}
//pulley holding screws
translate([screw_x, 11,-10+5]) screw(d=5, l=40, separation=screw_separation);;
translate([screw_x,-11,-10+5]) screw(d=5, l=40, separation=screw_separation);
//additional screws
if(with_linear_bearings) {
translate([25, 11,-10+5]) screw(d=5, l=40, separation=screw_separation);
translate([25,-11,-10+5]) screw(d=5, l=40, separation=screw_separation);
}
// ### side mounting holes ###
translate([33,32.5,-5]) m3_mounting_hole(use_insert_nuts);
translate([33,-32.5,-5]) rotate([0,0,180]) m3_mounting_hole(use_insert_nuts);
}