-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotor_z.scad
68 lines (39 loc) · 1.08 KB
/
motor_z.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
barwidth = 20;
width_ridge=4;
widthNema17=45;
nema17Center = barwidth+widthNema17/2;
motorThickNess=5;
offsetx =0;
offsety =0;
include <functions.scad>;
height = barwidth+widthNema17+offsety+2;
width = barwidth+widthNema17+offsetx+2;
thickness=8;
spacing_bars = 50;
largeCircle = 70.0;
holeSize=5.5;
holes = [
[barwidth+barwidth,barwidth /2,5.5],
[barwidth /2,barwidth+barwidth,5.5],
];
difference() {
union() {
cube([width,width,thickness],false);
translate([offsetx+barwidth/2-width_ridge/2 ,offsety+ barwidth,0.5]) {
cube([width_ridge,width - barwidth - offsety,thickness],false);
}
translate([offsetx + barwidth,offsety+barwidth/2-width_ridge/2,0.5]) {
cube([width - barwidth - offsetx,width_ridge,thickness],false);
}
translate([barwidth,barwidth,thickness])
cube([width-barwidth,height-barwidth,thickness],false);
}
translate([0,0,-0.1]) {
cube([barwidth,barwidth,thickness+motorThickNess],false);
for(i = holes) {
translate([offsetx + i[0],offsety + i[1],0])
cylinder(h=100,r=i[2]/2, center = false, $fs=1);
}
}
nema17(nema17Center,nema17Center,50);
}