-
Notifications
You must be signed in to change notification settings - Fork 5
/
motor-mount.scad
46 lines (38 loc) · 1.28 KB
/
motor-mount.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
use <../MCAD/motors.scad>
use <myLibs.scad>
use <../MCAD/triangles.scad>
w= 54;
h= 50;
function motorMountWidth() = w;
function motorMountHeight() = h;
module motorAttachment(thickness=4) {
translate([0,h,thickness]) rotate([180,0,0]) difference() {
cube([w,h,thickness]);
translate([w/2,h/2,0]) linear_extrude(height=thickness+1) stepper_motor_mount(17,5,true,0.1);
}
}
module attachmentPlate(thickness=4) {
difference() {
cube([w,40,thickness]);
// attachment holes
#translate([(w/2)-10, 10, 0]) rotate([0,0,90]) slot(d= 5, l=10, ht=thickness);
#translate([(w/2)-10, 30, 0]) rotate([0,0,90]) slot(d= 5, l=10, ht=thickness);
#translate([(w/2)+10, 10, 0]) rotate([0,0,90]) slot(d= 5, l=10, ht=thickness);
#translate([(w/2)+10, 30, 0]) rotate([0,0,90]) slot(d= 5, l=10, ht=thickness);
}
}
module buttress(thickness=4) {
triangle(50, 40, thickness);
}
module motorPlate(thickness=4, buttressThickness=4) {
translate([-w/2, thickness, 0]) 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);
}
}
motorPlate(5, 5);
//motorAttachment();
//attachmentPlate();
//buttress();