-
Notifications
You must be signed in to change notification settings - Fork 2
/
jig.scad
59 lines (42 loc) · 1.51 KB
/
jig.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
include<constants.scad>;
use<vslot.scad>;
// diameter of the tube (mm)
tubeDiameter = (2.197*25.4);//*0.925;
beltWidth = 10;
beltHeight = 6;
screwDiameter = 5;
screwHeadDiameter = 10;
nutTrapWidth = 8;
nutTrapHeight = 3;
separation = 1;
beltPitch = 2;
beltToothHeight = 1.5;
wallWidth = 3;
height = 20;
mirror([0,0,1])
difference() {
hull() {
translate([0,tubeDiameter/2,0])
cylinder(h=height, r=tubeDiameter/2+wallWidth, $fn=90);
for (i=[[0,0,0],[1,0,0]]) mirror(i) {
translate([tubeDiameter/2,0,0])
cube([2*wallWidth+nutTrapWidth, 2*wallWidth+separation + nutTrapHeight, height]);
}
}
translate([0,tubeDiameter/2,0])
cylinder(h=height, r=tubeDiameter/2, $fn=90);
for (i=[[0,0,0],[1,0,0]]) mirror(i) {
translate([0,separation/2,0]) rotate([0,0,180])
cube([tubeDiameter/2+2*wallWidth+nutTrapWidth, tubeDiameter, height]);
translate([tubeDiameter/2 + wallWidth + nutTrapWidth/2, -tubeDiameter/2-wallWidth, height/2])
rotate([-90,0,0]) {
cylinder(r=screwDiameter/2, h=tubeDiameter+2*wallWidth, $fn=90);
}
translate([tubeDiameter/2 + wallWidth + nutTrapWidth/2, wallWidth, height/2])
rotate([-90,0,0]) {
cylinder(r=screwHeadDiameter/2, h=tubeDiameter+wallWidth, $fn=90);
}
}
translate([0,0,height/2]) rotate([-90,0,0])
cylinder(h=tubeDiameter+wallWidth+separation+wallWidth,r=screwDiameter/2, $fn=90);
}