-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwinder2.scad
169 lines (135 loc) · 4.58 KB
/
winder2.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// hand crank stand for coil winder
// need 2 of these
$sd = 25.4/2 // 1/2 inch diameter shaft
+ 25.4/32; // add 1/32 inch clearance
$th = 2; // 2mm thickness of braces
$th2 = 1; // 1mm thickness of 'filler'
$wd = 70; // 70mm diameter wheel
$hh = $wd/2+$sd/2+25.4/2; // height of 'square' part
$ww = ($sd+$th*2)+$th2*1.8;
$bh = 25.4 / 4; // 1/4" base height
$dd = 25.4/8+0.2; // 1/8 inch diameter hole
//$of = $dd+$wt; // offset from edge
$fn = 64; // 64 faces on polygons
union()
{
difference()
{
union()
{
color("green")
translate([0,($hh-($sd+$th*2))/2-$th2,0])
linear_extrude(height=$th2)
square([$ww,$hh],true);
color("orange")
union()
{
// lateral braces
translate([0,-($sd+$th*2)/2,$th2-1])
linear_extrude(height=$th2+1)
square([$ww,$th],true);
translate([0,($sd+$th*2)/2,$th2-1])
linear_extrude(height=$th2+1)
square([$ww,$th2],true);
// base
translate([0,$hh-$th2-($sd+$th*2)/2,
$th2-1])
linear_extrude(height=$th2+1+$bh)
square([$ww,$th2],true);
translate([0,
$hh-$th2*2-($sd+$th*2)/2,
$th2+$bh])
linear_extrude(height=$th2)
square([$ww,$th2*2],true);
translate([0,
$hh-$th2*2-($sd+$th*2)/2,
$th2-1])
linear_extrude(height=$th2+1)
square([$ww,$th2*2],true);
translate([-$ww/2+$th2/2,
$hh-$th2*2-($sd+$th*2)/2,
$th2-1])
linear_extrude(height=$th2+1+$bh)
square([$th2,$th2*2-0.1],true);
translate([$ww/2-$th2/2,
$hh-$th2*2-($sd+$th*2)/2,
$th2-1])
linear_extrude(height=$th2+1+$bh)
square([$th2,$th2*2-0.1],true);
// center base brace
translate([0,
$hh-$th2*2-($sd+$th*2)/2,
$th2-1])
linear_extrude(height=$th2+1+$bh)
square([$th2,$th2*2-0.1],true);
// mounting screw holes
translate([-$ww/4,
$hh-$th2-($sd+$th*2)/2,
$th2-1])
rotate([90,0,0])
translate([0,$bh-$dd/2+$th2,0])
linear_extrude(height=$th2*2)
circle(d=$dd+$th);
translate([$ww/4,
$hh-$th2-($sd+$th*2)/2,
$th2-1])
rotate([90,0,0])
translate([0,$bh-$dd/2+$th2,0])
linear_extrude(height=$th2*2)
circle(d=$dd+$th);
// longitudinal braces
translate([-$ww/2+$th2/2,
-($sd+$th*2-$hh)/2
-$th2/2,
$th2-1])
linear_extrude(height=$th2+1)
square([$th2,$hh-$th2],true);
translate([$ww/2-$th2/2,
-($sd+$th*2-$hh)/2
-$th2/2,
$th2-1])
linear_extrude(height=$th2+1)
square([$th2,$hh-$th2],true);
// diagonal braces
translate([0,($sd+$th*2)/2+$hh/12,
$th2-1])
linear_extrude(height=$th2+1)
polygon([[$ww/2,0],[$ww/2,$th2*2],
[-$ww/2,$hh/2+$th2*2],
[-$ww/2,$hh/2]]);
translate([0,($sd+$th*2)/2+$hh/12,
$th2-1])
linear_extrude(height=$th2+1)
polygon([[-$ww/2,0],
[-$ww/2,$th2*2],
[$ww/2,$hh/2+$th2*2],
[$ww/2,$hh/2]]);
}
color("blue")
linear_extrude(height=$th*2)
circle(d=($sd+$th*2));
}
color("yellow")
translate([0,0,-1])
linear_extrude(height=$th*2+2)
circle(d=$sd);
// mounting screw holes
color("yellow")
translate([-$ww/4,
$hh-$th2-($sd+$th*2)/2+1,
$th2-1])
rotate([90,0,0])
translate([0,$bh-$dd/2+$th2,0])
linear_extrude(height=$th2*2+2)
circle(d=$dd);
color("yellow")
translate([$ww/4,
$hh-$th2-($sd+$th*2)/2+1,
$th2-1])
rotate([90,0,0])
translate([0,$bh-$dd/2+$th2,0])
linear_extrude(height=$th2*2+2)
circle(d=$dd);
}
// base
}