forked from wolfmanjm/wolfhbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tensioner-gt2-F695zz.scad
133 lines (110 loc) · 4.54 KB
/
tensioner-gt2-F695zz.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
// idler for two back to back F695ZZ flanged bearings for Hbot Z axis
// 5*13*4
use <2020-insert.scad>
use <myLibs.scad>
bearingID= 5;
bearingOD= 13;
bearingWidth= 4*2;
bearingFlangeOD= 15;
bearingFlangeWidth= 1;
function pulley_width()= bearingWidth;
function pulley_OD_diameter()= bearingFlangeOD;
function pulley_diameter()= bearingOD;
gt2_inner_dia= 12.25;
offset_x = -26; // distance from vslot
offset_y = 10 - (bearingOD-gt2_inner_dia); // left/right offset, to align belt with pulley
rotate_z = -90;
clearance= 2;
offset_z= 4;
block_width= abs(offset_x)+1;
block_length= 14;
belt_thick= 2; // 1.45
belt_width= 6;
belt_clearance= 2;
thick= 3*2;
function tensioner_height()= 22;
//block();
//tensioner_body();
//tensioner_support();
tensioner_695();
// generate a negative fillet for an edge
module fillet(pos= [0,0,0], radius=3, height=100, fn=16, angle= 0) {
translate(pos) rotate([0,0,angle]) translate([-radius, -radius, -height/2-0.01])
difference() {
cube([radius*2, radius*2, height+0.02]);
cylinder(r=radius, h=height+0.02, $fn=fn);
}
}
module tensioner_support() {
difference() {
union() {
// flanges
translate([0, pulley_width()/2, offset_z]) rotate([90, 0, 0]) cylinder(r=bearingFlangeOD/2, h=bearingFlangeWidth, center=false);
translate([0, -pulley_width()/2+bearingFlangeWidth, offset_z]) rotate([90, 0, 0]) cylinder(r=bearingFlangeOD/2, h=bearingFlangeWidth, center=false);
translate([0, bearingWidth/2, offset_z]) rotate([90, 0, 0]) cylinder(r=bearingOD/2, h=bearingWidth, center=false);
}
translate([0, 5, offset_z]) rotate([90, 0, 0]) cylinder(r=bearingID/2, h=10, center=false);
}
}
module block() {
rotate([0, 0, rotate_z]) translate([offset_x-(pulley_width()+thick)/2, offset_y, 0]) {
difference() {
union() {
translate([block_width/2, 0, 0]) cube([block_width, block_length, tensioner_height()], center=true);
translate([block_width/2, -block_length/2, 0]) cylinder(r=block_width/2, h=tensioner_height(), center=true, $fn=32);
// t slot
translate([0,0,-tensioner_height()/2]) rotate([0,0,-90]) slider2020(h=tensioner_height(), w=14, t=2);
}
fillet(pos=[0,block_length/2,0], radius=2, angle=90);
fillet(pos=[block_width,block_length/2,0], radius=2, angle=0);
// 1/4" hole for tensioner
#translate([15,-8,0]) cylinder(r=(4)/2+0.3, h=50, center=true, $fn=12);
}
}
}
module end() {
intersection() {
cylinder(r=(pulley_width()+thick)/2, h=tensioner_height(), center=true);
translate([0, -(pulley_width()+thick)/2, 0]) cube(size=[pulley_width()+thick, pulley_width()+thick, tensioner_height()], center=true);
}
}
module tensioner_body() {
difference() {
union() {
cube([pulley_width()+thick, pulley_OD_diameter()+belt_thick+thick/2, tensioner_height()], center=true);
translate([0, -(pulley_OD_diameter()+belt_thick+thick/2)/2+0.1, 0]) end();
translate([0, (pulley_OD_diameter()+belt_thick+thick/2)/2-0.1, 0]) rotate([0, 0, 180]) end();
}
translate([0, 0, offset_z]) {
// bearing
rotate([0, 90, 0]) cylinder(r=(pulley_OD_diameter()+clearance)/2, h=pulley_width()+clearance, center=true, $fn=60);
// shaft
//#translate([-14/2,0,0]) rotate([0, 90, 0]) hole(8, 14);
}
// belt slots
translate([0, bearingOD/2+belt_thick/2, 0]) cube(size=[pulley_width()+clearance, belt_thick+belt_clearance, 40], center=true);
translate([0, -bearingOD/2-belt_thick/2, 0]) cube(size=[pulley_width()+clearance, belt_thick+belt_clearance, 40], center=true);
// clear top
translate([0, 0, tensioner_height()/2]) cube(size=[pulley_width()+clearance, pulley_OD_diameter(), 5], center=true);
}
}
module tensioner_695() {
translate([-offset_y,offset_x-(pulley_width()+thick)/2,0]) difference() {
union() {
block();
translate([0, 0, 0]) rotate([0, 0, 90]) tensioner_body();
translate([0,(pulley_width()+clearance)/2+0.01,offset_z]) horn(true);
translate([0,-(pulley_width()+clearance)/2-0.1,offset_z]) horn(false);
}
// bearing shaft
//translate([0,block_width/2,offset_z+0.5]) rotate([90, 90, 0]) slot(8, 9, 18);
#translate([0,block_width/2,offset_z]) rotate([90, 90, 0]) hole(bearingID, 19);
//translate([0, -12, 0]) cube([50, 20, 50], center=true); // cutaway to see clearance
}
%translate([-offset_y,offset_x-(pulley_width()+thick)/2,0]) tensioner_support();
// belts
%translate([-offset_y- bearingOD/2-belt_thick, offset_x-(pulley_width()+thick)/2-belt_width/2, -25]) color("gray") cube([belt_thick, belt_width, 50]);
}
module horn(front=true) {
rotate([front?90:-90, 0, 0]) cylinder(r1= bearingID/2+2.5, r2=bearingID/2+1, h=1);
}