-
Notifications
You must be signed in to change notification settings - Fork 0
/
xypulley.scad
64 lines (39 loc) · 1.28 KB
/
xypulley.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
offsetx =8;
offsety =9;
barpositionz=30;
rodwidth =10;
include <functions.scad>;
towerWidth = 25;
depth = barwidth+widthNema17+offsety+3;
width = barwidth*4 + rodYOffset+towerWidth/2;
thickness=10;
spacing_bars = 50;
holespacing = 30;
holes = [
[barwidth /2,0 ,5.5],
[barwidth /2,-holespacing ,5.5],
[barwidth /2,-holespacing*2 ,5.5],
];
difference() {
union() {
/* base */
translate([0,-barwidth*4 ,0])
cube([depth,width,thickness],false);
translate([0,rodYOffset - towerWidth/2,thickness])
cube([towerWidth,towerWidth,barpositionz- thickness+barwidth],false);
}
translate([barwidth/2,rodYOffset,barpositionz- thickness+20])
rotate([90,0,270])
cylinder(h=15,r=rodwidth/2+0.5, center = false, $fs=1);
translate([barwidth*2,-barwidth*4 ,0])
cube([depth,barwidth*3.5,thickness],false);
drawHoles(holes);
translate([barwidth + 40
, beltoffset - (pulleygt2InclBeltDia/2-timingbeltthickness)+b624zzdia/2
, 0])
cylinder(h=15,r=2, center = false, $fs=1);
translate([barwidth + 20
, beltoffset - (pulleygt2InclBeltDia/2-timingbeltthickness)-b624zzdia/2
, 0])
cylinder(h=15,r=2, center = false, $fs=1);
}