Skip to content

Commit cc9696d

Browse files
committed
Create bobbin_holder.scad
1 parent 9c30804 commit cc9696d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

items/bobbin_holder.scad

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
d = 21.1; // bobbin diameter
2+
w = 9.3; // bobbin width
3+
r = 6; // number of rows
4+
minW = 1.2;
5+
6+
module spule(){
7+
translate([0, 0, d/2]) rotate([90, 0, 0]) cylinder(w, d/2, d/2, true);
8+
cube([d/2, w, d], true);
9+
};
10+
11+
module spulen()
12+
for(x = [d/2, -d/2], y = [0:r+1])
13+
translate([x, y * (w + minW) + minW + w/2]) spule();
14+
15+
module cylind()
16+
rotate([-90, 0, 0]) cylinder(r * (w+minW) + minW, d/4, d/4);
17+
18+
difference(){
19+
hull(){
20+
translate([d*0.75, 0, d/4]) cylind();
21+
translate([-d*0.75, 0, d/4]) cylind();
22+
};
23+
spulen();
24+
}
25+

0 commit comments

Comments
 (0)