-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathz-stepper-bracket.scad
77 lines (69 loc) · 2.88 KB
/
z-stepper-bracket.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
include<constants.scad>;
use <vslot.scad>;
wallWidth=5;
xSectionCountWidth=2;
xSectionCountDepth=1;
zSectionCountWidth=2;
zSectionCountDepth=1;
screwOffset=5;
screwDiameter=5;
tolerance=.8;
bracketWidth = 80;
bracketDepth = xSectionCountDepth * profileSize + wallWidth;
nema17BoltOffset = (nema17Width - nema17BoltSpacing)/2;
// from Carl Feniak's drawing..
nema17BeltHoleCenterOffsetX = profileSize/2 + 12;//-5;// was -1, deviating from the description based on visual assessment
nema17BeltHoleCenterOffsetZ = 14;
nema17BeltHoleWidth = 16;
nema17BeltHoleHeight = 8;
m3HoleRadius = 1.5;
nemaZOffset = (bracketWidth - nema17Width - wallWidth)/2;
module ZStepperBracket(hOffset = 24)
{
xExtrusionScrewPoints = [wallWidth+screwDiameter/2,bracketWidth-wallWidth-screwDiameter/2];
difference() {
hull() {
cube([bracketWidth,hOffset+bracketDepth,xSectionCountWidth*profileSize + 2*wallWidth]);
translate([nemaZOffset, -nema17Width-tolerance*2, 0])
{
linear_extrude(height=wallWidth)
square([nema17Width+wallWidth,nema17Width]);
}
};
translate([0,hOffset+wallWidth,wallWidth+xSectionCountWidth*profileSize])
color("red")
rotate([0,90,0])
drawVslotExtrusion(
height=bracketWidth,
sectionCountWidth=xSectionCountWidth,
sectionCountDepth=zSectionCountDepth,
topIndent=false,
bottomIndent=true,
rightIndent=false,
leftIndent=true,
oversize=tolerance,
screwDiameter=screwDiameter,
screwHeight=bracketWidth,
screwOffset=screwOffset,
topScrewPoints = xExtrusionScrewPoints,
rightScrewPoints = xExtrusionScrewPoints
);
translate([nemaZOffset, -nema17Width-tolerance, 0])
{
translate([wallWidth/2-tolerance/2,0, wallWidth])
linear_extrude(height=bracketWidth)
square([nema17Width+tolerance,nema17Width]);
translate([nema17Width/2+wallWidth/2, nema17Width/2, 0])
linear_extrude(height=extrusionWidth)
offset(r=extrudeOffsetVal)
circle(r=nema17HoleRadius+tolerance, center=true);
translate([nema17BoltOffset+wallWidth/2,nema17BoltOffset,0])
for(i = [0,1], j = [0,1]) {
translate([i*nema17BoltSpacing, j*nema17BoltSpacing, 0])
linear_extrude(height=extrusionWidth+wallWidth)
circle(r=m3HoleRadius, center=true, $fn=90);
}
}
}
}
ZStepperBracket();