8 function selsz(sm,lg) = fdia < 2 ? sm : lg;
9 function usedove() = selsz(true,false);
11 num_arms = selsz(3,4);
14 hubeffrad = selsz(30, 50);
15 hubbigrad = selsz(20, 45);
16 hublwidth = selsz(3, 5);
19 hubaxlerad = selsz(5, 17/2);
20 totalheightfromtower = 240;
21 axletowerfudgebend = 0;
22 axleaxlefudgebend = 3;
25 prongthick=selsz(5,7);
26 prongwidth=selsz(5,5);
30 ratchettoothsmoothr=1;
31 ratchettoothslope=0.75;
33 cupwidth=selsz(40,60);
34 cupheight=selsz(55,75);
36 cupstrong_dx=selsz(0,-10);
47 stalklength=selsz(35,55);
52 overclipcupnextgap=20;
54 hubaxlelen = selsz(25, cupwidth);
66 axlehorizoffset = 12.5;
76 washerthinthick = 0.8;
77 washerverythinthick = 0.4;
78 washerrad = hubaxlerad + 7.5;
79 frictionwasherarmwidth = 3;
80 frictionwasherextrapush = 1.0;
82 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
84 nondove_armbase = 100;
85 nondove_armhole_x = 60;
86 nondove_armhole_hole = 4;
87 nondove_armhole_support = 7;
88 nondove_armhole_wall = 4;
89 nondove_armhole_slop = 0.5;
90 nondove_armhole_slop_x = 0.5;
92 include <doveclip.scad>
93 include <cliphook.scad>
94 include <filamentteeth.scad>
95 include <axlepin.scad>
97 channelwidth = prongthick + slop;
98 channeldepth = prongwidth + ratchettoothheight;
99 totalwidth = armendwallthick*2 + channelwidth;
100 totalheight = channeldepth + armendbasethick;
101 stalkwidth = prongwidth + prongstalkxwidth;
103 module ArmEnd(length=120){ ////toplevel
105 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
107 DoveClipPairBase(h=doveclipheight);
111 translate([1, -armendwallthick, -armendbasethick])
113 cube([nondove_armbase+1, totalwidth, totalheight]);
114 translate([-nondove_armbase + nondove_armhole_x,
115 -armendwallthick + totalwidth/2,
116 -armendbasethick -1])
117 cylinder(r= nondove_armhole_hole/2, h=totalheight+2, $fn=10);
122 translate([0, -armendwallthick, -armendbasethick])
123 cube([length, totalwidth, totalheight]);
124 translate([-1, 0, 0])
125 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
126 translate([-1, 0, ratchettoothheight])
127 cube([length+2, channelwidth, channeldepth+1]);
129 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
130 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
132 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
133 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
137 cube([ratchettooth - ratchettoothsmoothr*2,
138 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
143 module FilamentCupHandle(){
144 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
146 cube([stalklength, stalkwidth, prongthick]);
147 translate([stalklength, stalkwidth/2, 0])
148 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
149 translate([ratchettoothsmoothr, stalkwidth, 0]) {
151 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
152 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
157 ratchettoothheight - ratchettoothsmoothr,
164 module FilamentCupCup(){
165 for (my=[0,1]) mirror([0,my,0]) {
166 translate([0, cupwidth/2, 0])
167 cube([cupheight + prongwidth, prongwidth, prongthick]);
171 module FilamentCup() { ////toplevel
175 dy = cupwidth/2 + gapy + overclipcupgap;
176 baselen = dy+cupwidth/2;
178 translate([0, dy, 0])
180 cube([prongwidth, baselen+1, prongthick]);
182 translate([cupstrong_dx, prongwidth, 0]) {
183 cube([prongwidth, baselen-prongwidth, prongthick]);
184 for (y = [0, .4, .7, 1])
185 translate([0, (baselen - prongwidth*2) * y, 0])
186 cube([-cupstrong_dx + 1, prongwidth, prongthick]);
188 if (cupstrong_dx != 0) {
190 translate([-prongwidth*.55, -prongwidth*2.1, 0])
191 cube([prongwidth*(2.65), prongwidth*4.2, prongthick]);
194 midrad = cupwidth/2 + prongwidth/2;
196 propshift = stalklength - overclipdepth - prongthick + propxshift;
197 proptaken = propshift;
198 echo(midrad, propshift, proptaken);
200 translate([propshift, -1, 0]) {
201 // something is wrong with the y calculation
206 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
207 translate([cupstrong_dx, y + prongwidth, 0])
208 rotate([0,0, 102 + fdia])
209 FilamentTeeth(fdia=fdia, h=teethh);
211 for (x = [-0.3, -1.3]) {
212 translate([cupheight + overclipcupnextgap*x, baselen + prongthick, 0])
213 rotate([0,0, 12 + fdia])
214 FilamentTeeth(fdia=fdia, h=teethh);
218 module CupSecuringClipSolid(w,d,h1,h2){
219 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
220 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
224 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
225 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
227 CupSecuringClipSolid(w=totalwidth,
228 d=overclipdepth + xdepth,
229 h1=hbase - overclipsmaller,
230 h2=hbase + overclipbigger);
231 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
235 module CupSecuringClip(){ ////toplevel
236 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
239 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
240 translate([-wingswidth/2, -wingsize/2, 0])
241 cube([wingswidth, wingsize, wingthick]);
242 translate([-wingsize/2, -wingswidth/2, 0])
243 cube([wingsize, wingswidth, wingthick]);
245 translate([0,0,-0.1])
246 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
250 module ArmDoveClipPin(){ ////toplevel
251 DoveClipPin(h=doveclipheight);
254 module TowerDoveClipPin(){ ////toplevel
255 DoveClipPin(h=towercliph/2);
258 module Hub(){ ////toplevel
259 axlerad = hubaxlerad + slop;
260 xmin = axlerad+hublwidth/2;
261 xmax = hubbigrad-hublwidth/2;
262 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
263 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
264 nondove_allwidth = nondove_armhole_wall*2 + totalwidth;
268 cylinder($fn=60, h=hublthick, r=hubbigrad);
270 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
272 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
273 for (ang=[0 : 360/num_arms : 359])
277 translate([hubeffrad,0,0])
278 DoveClipPairSane(h=doveclipheight,
279 baseextend = (hubeffrad - DoveClip_depth()
280 - hubbigrad + hublwidth));
281 if (hole>hublwidth && holewidth > 2) {
282 translate([hubbigrad + hublwidth, -holewidth/2, -1])
283 cube([hole, holewidth, hublthick+2]);
290 cube([hubeffrad + nondove_armhole_x
291 + nondove_armhole_hole/2 + nondove_armhole_support,
293 nondove_armhole_wall + totalheight]);
294 translate([hubeffrad - nondove_armhole_slop_x,
296 + nondove_armhole_wall - nondove_armhole_slop,
297 nondove_armhole_wall])
298 cube([nondove_armhole_x + 50,
299 totalwidth + nondove_armhole_slop*2,
301 translate([hubeffrad + nondove_armhole_x, 0, -20])
302 cylinder(r= nondove_armhole_hole/2, h=50, $fn=10);
307 for (ang = [0 : 180/num_arms : 359])
308 rotate([0,0,ang]) rotate([90,0,0]) {
309 translate([0,0,-hublwidth/2])
310 linear_extrude(height=hublwidth)
311 polygon([[xmin,0.05], [xmax,0.05],
312 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
315 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
319 module ArmExtender(){ ////toplevel
320 DoveClipExtender(length=exteffrad-hubeffrad,
325 module FsAxlePin(){ ////toplevel
326 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
329 module Axle(){ ////toplevel
330 pillarswidth = DoveClipPairSane_width(towerclipcount);
332 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
333 translate([-axlehorizoffset, -axlevertheight, 0]) {
334 rotate([0,0,-axletowerfudgebend])
336 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
337 translate([0, DoveClip_depth(), 0])
339 ExtenderPillars(axlevertheight - DoveClip_depth(),
340 pillarswidth, towercliph,
341 pillarw=towerpillarw);
344 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
345 axlerad = hubaxlerad-slop;
346 bump = axlerad * 0.2;
347 shift = axlerad-bump;
351 translate([0, 0, shift]) {
354 translate([-1, 0, 0])
358 h = 1 + axleclearlen + axlepinrad*2 + 2);
359 mirror([1,0,0]) rotate([0,90,0])
360 cylinder(r = axlerad*1.75, h = 3);
363 translate([axlehorizoffset - pillarswidth/2, 0, 0])
366 r = towercliph - shift,
368 translate([-50, -joinbelowallow, -50])
369 cube([100, joinbelowallow+50, 100]);
373 translate([axleclearlen + axlepinrad/2, 0, -25])
374 cylinder(r = axlepinrad + slop, h=50);
377 translate([-50,-50,0]) cube([100,100,100]);
381 module washer(thick){
382 Washer(hubaxlerad, washerrad, thick, slop);
385 module AxleWasher(){ ////toplevel
386 washer(thick=washerthick);
389 module AxleThinWasher(){ ////toplevel
390 washer(thick=washerthinthick);
393 module AxleVeryThinWasher(){ ////toplevel
394 washer(thick=washerverythinthick);
397 module AxleFrictionWasher(){ ////toplevel
399 cylinder(h=washerthick, r=washerrad);
400 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
403 frarmw = frictionwasherarmwidth;
404 frarmpawlr = hublwidth;
405 frarmpawlpush = slop*4 + frictionwasherextrapush;
406 for (ang=[0,180]) rotate([0,0,ang]) {
407 translate([washerrad-1, -frarmw/2, 0])
408 cube([frarmr - washerrad + 1, frarmw, washerthick]);
410 translate([frarmr - frarmpawlr, -50, 0])
411 cube([frarmpawlr, 100, 50]);
413 cylinder(h = 50, r = frarmpawlpush, $fn=36);
418 module TowerExtender(){ ////toplevel
419 l = totalheightfromtower - axlevertheight;
420 echo("TowerExtender",l);
421 DoveClipExtender(length = l,
422 ha = towercliph, hb = towercliph,
423 counta = towerclipcount, countb = towerclipcount,
424 pillarw = towerpillarw);
427 module FilamentCupPair(){ ////toplevel
429 translate([cupheight + prongthick*3,
432 rotate([0,0,180]) FilamentCup();
444 //AxleFrictionWasher();