forked from josefprusa/PrusaMendel
-
Notifications
You must be signed in to change notification settings - Fork 10
/
gregs-lm8uu-holder.scad
50 lines (42 loc) · 1.5 KB
/
gregs-lm8uu-holder.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
// Gregs PRUSA Mendel
// X-carriage
// Used for sliding on X axis
// GNU GPL v2
// Greg Frost
//https://github.com/GregFrost/PrusaMendel
include <configuration.scad>
clearance=0.7;
lm8uu_diameter=15+clearance;
lm8uu_length=24+clearance;
lm8uu_support_thickness=3.2;
lm8uu_end_diameter=m8_diameter+1.5;
lm8uu_holder_width=lm8uu_diameter+2*lm8uu_support_thickness;
lm8uu_holder_length=lm8uu_length+2*lm8uu_support_thickness;
lm8uu_holder_height=lm8uu_diameter*0.75+lm8uu_support_thickness;
lm8uu_holder_gap=(lm8uu_holder_length-6*lm8uu_support_thickness)/2;
module lm8uu_bearing_holder()
{
difference()
{
cube([lm8uu_holder_width,lm8uu_holder_length,lm8uu_holder_height]);
translate([lm8uu_holder_width/2,0,lm8uu_holder_width/2])
rotate([-90,0,0])
translate([0,0,lm8uu_support_thickness])
cylinder(r=lm8uu_diameter/2,h=lm8uu_length,$fn=40);
translate([lm8uu_holder_width/2,0,lm8uu_holder_width/2])
rotate([-90,0,0])
translate([0,0,-1])
{
cylinder(r=lm8uu_end_diameter/2,h=lm8uu_holder_length+2,$fn=40);
translate([-lm8uu_end_diameter/2,-lm8uu_end_diameter,0])
cube([lm8uu_end_diameter,lm8uu_end_diameter,lm8uu_holder_length+2]);
}
translate([-1,2*lm8uu_support_thickness,lm8uu_support_thickness])
cube([lm8uu_holder_width+2,lm8uu_holder_gap,
lm8uu_holder_height-lm8uu_support_thickness+1]);
translate([-1,4*lm8uu_support_thickness+lm8uu_holder_gap,
lm8uu_support_thickness])
cube([lm8uu_holder_width+2,lm8uu_holder_gap,
lm8uu_holder_height-lm8uu_support_thickness+1]);
}
}