-
Notifications
You must be signed in to change notification settings - Fork 0
/
lm_bearing.scad
43 lines (35 loc) · 1 KB
/
lm_bearing.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
// Module to generated an LM8UU type linear bearing, based on dimesions of
// http://amzn.com/B008RIKN7W. May or may not work with other bearings.
// Model will be aligned on the y-axis
module lm_bearing(d=8, tolerance=0) {
length = lookup(d, [
[8,24]
]);
outside_d = lookup(d, [
[8,15]
]);
retainer_w = lookup(d, [
[8,1.1]
]);
retainer_spacing = lookup(d, [
[8,12.5]
]);
difference() {
cylinder(d=outside_d, h=length);
translate([0,0,-0.1])
cylinder(d=d,h=length+0.2);
translate([0,0,(length-retainer_spacing-retainer_w)/2]) {
// the 1 mm recess depth is not to a spec
lm_bearing_retainer_recess(retainer_w, outside_d-1, outside_d);
translate([0,0,retainer_spacing])
lm_bearing_retainer_recess(retainer_w, outside_d-1, outside_d);
}
}
}
module lm_bearing_retainer_recess(retainer_w,inner_d, outside_d) {
difference() {
cylinder(h=retainer_w,d=outside_d+0.1);
cylinder(h=retainer_w,d=inner_d);
}
}
lm_bearing(8);