forked from josefprusa/PrusaMendel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pulleymod.scad
58 lines (45 loc) · 1023 Bytes
/
pulleymod.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
// Belt pulley is http://www.thingiverse.com/thing:3104 by GilesBathgate
// GPLV3
include <configuration.scad>
module pulley()
{
module spur()
{
linear_extrude(height=20) polygon([[-1,-1],[-1,1],[0.9,0.8],[0.9,-0.8]],[[0,1,2,3,0]]);
}
difference()
{
union()
{
//base
rotate_extrude($fn=30)
{
square([9,8]);
square([10,7]);
translate([9,7]) circle(1);
}
//shaft
cylinder(r=motor_shaft,h=20);
//spurs
for(i=[1:8]) rotate([0,0,i*(360/8)]){
translate([6,0,0])spur();
translate([6.5,0,0])spur();
}
}
//shaft hole
translate([0,0,-1])cylinder(r=motor_shaft/2+0.4,h=22,$fn=15);
//captive nut and grub holes
for(j=[1:1]) rotate([0,0,j*(360/3)])
translate([0,20,4])rotate([90,0,0])
union()
{
//entrance
translate([0,-3,15]) cube([8.6,7,3],center=true);
//nut
translate([0,0,13.6]) rotate([0,0,30])cylinder(r=4.22,h=2.8,$fn=6);
//grub hole
translate([0,0,9]) cylinder(r=1.9,h=10);
}
}
}
pulley();