-
Notifications
You must be signed in to change notification settings - Fork 5
/
motor-bracket.scad
74 lines (62 loc) · 2.16 KB
/
motor-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
use <misumi-parts-library.scad>;
use <../MCAD/stepper.scad>
use <../MCAD/motors.scad>
use <../MCAD/triangles.scad>
use <motor-mount.scad>
use <myLibs.scad>
thick= 5.6;
w= 54;
h= 55;
%translate([-20,20,0]) corner();
motor_bracket(1);
module motor_bracket(r=0) {
mirror([0,r,0]) difference() {
union() {
rotate([0,0,90]) corner_bracket();
translate([thick,50/2+10,0]) rotate([0,0,-90]) motorPlate(thick, thick);
}
// mounting holes
#translate([-1,10,h+3]) rotate([0,90,0]) hole(5, thick+2);
translate([-1,20+25,20]) rotate([0,90,0]) slot(d=5, l=30,ht=thick+2);
translate([-10,-thick-1,h]) rotate([0,90,90]) hole(5, thick+2);
translate([-10,-thick-1,h-h/3]) rotate([0,90,90]) hole(5, thick+2);
translate([-10,-thick-1,h/4]) rotate([0,90,90]) hole(5, thick+2); }
}
module motorAttachment(thickness=4) {
translate([0,h,thickness]) rotate([180,0,0]) difference() {
cube([w,h,thickness]);
translate([w/2,h/2,-1]) linear_extrude(height=thickness+2) stepper_motor_mount(17,8,true,0.1);
}
}
module attachmentPlate(thickness=4) {
cube([w,40,thickness]);
}
module buttress(thickness=4) {
triangle(50, 40, thickness);
}
module motorPlate(thickness=4, buttressThickness=4) {
union() {
motorAttachment(thickness);
translate([0,0.1,0]) rotate([90,0,0]) attachmentPlate(thickness);
translate([buttressThickness,-0.1,0]) rotate([0,-90,0]) buttress(buttressThickness);
translate([w,-0.1,0]) rotate([0,-90,0]) buttress(buttressThickness);
}
}
module corner() {
translate([10,0,10]) hfs2020(80);
translate([0,-10,10]) rotate([0,0,90]) hfs2020(80);
translate([10,-10,0]) rotate([90,0,0]) hfs2020(80);
}
module corner_bracket() {
translate([-thick,-thick,0]) union() {
cube([20+thick,thick,h+20-thick]);
cube([thick,20+thick,h+20-thick]);
translate([20,0,0]) cube([40,thick,40]);
}
}
//module smount(w=50,l=50) {
// translate([0,0,thick/2]) difference() {
// cube([w,l,thick], center=true);
// translate([0,0,-thick/2-1]) linear_extrude(height= thick+2) stepper_motor_mount(nema_standard=17,slide_distance=5, mochup=false, tolerance=0.1);
// }
//}