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);
28 prongribheight=selsz(0,4);
32 ratchettoothsmoothr=1;
33 ratchettoothslope=0.75;
35 cupwidth=selsz(40,60);
36 cupheight=selsz(55,75);
38 cupstrong_dx=selsz(0,-10);
49 stalklength=selsz(35,55);
54 overclipcupnextgap=20;
56 hubaxlelen = selsz(25, cupwidth);
68 axlehorizoffset = 12.5;
78 washerthinthick = 0.8;
79 washerverythinthick = 0.4;
80 washerrad = hubaxlerad + 7.5;
81 frictionwasherarmwidth = 3;
82 frictionwasherextrapush = 1.0;
84 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
86 nondove_armbase = 100;
87 nondove_armhole_x = 60;
88 nondove_armhole_hole = 4;
89 nondove_armhole_support = 7;
90 nondove_armhole_wall = 4;
91 nondove_armhole_slop = 0.5;
92 nondove_armhole_slop_x = 0.5;
94 include <doveclip.scad>
95 include <cliphook.scad>
96 include <filamentteeth.scad>
97 include <axlepin.scad>
99 channelwidth = prongthick + slop;
100 channeldepth = prongwidth + ratchettoothheight;
101 totalwidth = armendwallthick*2 + channelwidth;
102 totalheight = channeldepth + armendbasethick;
103 stalkwidth = prongwidth + prongstalkxwidth;
105 module ArmEnd(length=120){ ////toplevel
107 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
109 DoveClipPairBase(h=doveclipheight);
113 translate([1, -armendwallthick, -armendbasethick])
115 cube([nondove_armbase+1, totalwidth, totalheight]);
116 translate([-nondove_armbase + nondove_armhole_x,
117 -armendwallthick + totalwidth/2,
118 -armendbasethick -1])
119 cylinder(r= nondove_armhole_hole/2, h=totalheight+2, $fn=10);
124 translate([0, -armendwallthick, -armendbasethick])
125 cube([length, totalwidth, totalheight]);
126 translate([-1, 0, 0])
127 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
128 translate([-1, 0, ratchettoothheight])
129 cube([length+2, channelwidth, channeldepth+1]);
131 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
132 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
134 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
135 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
139 cube([ratchettooth - ratchettoothsmoothr*2,
140 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
145 module FilamentCupHandle(){
146 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
148 cube([stalklength, stalkwidth, prongthick]);
149 translate([stalklength, stalkwidth/2, 0])
150 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
151 translate([ratchettoothsmoothr, stalkwidth, 0]) {
153 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
154 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
159 ratchettoothheight - ratchettoothsmoothr,
166 module FilamentCupCup(){
167 for (my=[0,1]) mirror([0,my,0]) {
168 translate([0, cupwidth/2, 0])
169 cube([cupheight + prongwidth, prongwidth, prongthick]);
173 module FilamentCup() { ////toplevel
177 dy = cupwidth/2 + gapy + overclipcupgap;
178 baselen = dy+cupwidth/2;
180 translate([0, dy, 0])
182 cube([prongwidth, baselen+1, prongthick]);
184 translate([cupstrong_dx, prongwidth, 0]) {
185 cube([prongwidth, baselen-prongwidth, prongthick]);
186 for (y = [0, .4, .7, 1])
187 translate([0, (baselen - prongwidth*2) * y, 0])
188 cube([-cupstrong_dx + 1, prongwidth, prongthick]);
190 if (cupstrong_dx != 0) {
192 translate([-prongwidth*.55, -prongwidth*2.1, 0])
193 cube([prongwidth*(2.65), prongwidth*4.2, prongthick]);
196 translate([0, -0.2, 0])
197 cube([prongribwidth, baselen, prongthick + prongribheight]);
199 midrad = cupwidth/2 + prongwidth/2;
201 propshift = stalklength - overclipdepth - prongthick + propxshift;
202 proptaken = propshift;
203 echo(midrad, propshift, proptaken);
205 translate([propshift, -1, 0]) {
206 // something is wrong with the y calculation
211 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
212 translate([cupstrong_dx, y + prongwidth, 0])
213 rotate([0,0, 102 + fdia])
214 FilamentTeeth(fdia=fdia, h=teethh);
216 for (x = [-0.3, -1.3]) {
217 translate([cupheight + overclipcupnextgap*x, baselen + prongthick, 0])
218 rotate([0,0, 12 + fdia])
219 FilamentTeeth(fdia=fdia, h=teethh);
223 module CupSecuringClipSolid(w,d,h1,h2){
224 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
225 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
229 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
230 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
232 CupSecuringClipSolid(w=totalwidth,
233 d=overclipdepth + xdepth,
234 h1=hbase - overclipsmaller,
235 h2=hbase + overclipbigger);
236 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
240 module CupSecuringClip(){ ////toplevel
241 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
244 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
245 translate([-wingswidth/2, -wingsize/2, 0])
246 cube([wingswidth, wingsize, wingthick]);
247 translate([-wingsize/2, -wingswidth/2, 0])
248 cube([wingsize, wingswidth, wingthick]);
250 translate([0,0,-0.1])
251 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
255 module ArmDoveClipPin(){ ////toplevel
256 DoveClipPin(h=doveclipheight);
259 module TowerDoveClipPin(){ ////toplevel
260 DoveClipPin(h=towercliph/2);
263 module Hub(){ ////toplevel
264 axlerad = hubaxlerad + slop;
265 xmin = axlerad+hublwidth/2;
266 xmax = hubbigrad-hublwidth/2;
267 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
268 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
269 nondove_allwidth = nondove_armhole_wall*2 + totalwidth;
273 cylinder($fn=60, h=hublthick, r=hubbigrad);
275 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
277 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
278 for (ang=[0 : 360/num_arms : 359])
282 translate([hubeffrad,0,0])
283 DoveClipPairSane(h=doveclipheight,
284 baseextend = (hubeffrad - DoveClip_depth()
285 - hubbigrad + hublwidth));
286 if (hole>hublwidth && holewidth > 2) {
287 translate([hubbigrad + hublwidth, -holewidth/2, -1])
288 cube([hole, holewidth, hublthick+2]);
295 cube([hubeffrad + nondove_armhole_x
296 + nondove_armhole_hole/2 + nondove_armhole_support,
298 nondove_armhole_wall + totalheight]);
299 translate([hubeffrad - nondove_armhole_slop_x,
301 + nondove_armhole_wall - nondove_armhole_slop,
302 nondove_armhole_wall])
303 cube([nondove_armhole_x + 50,
304 totalwidth + nondove_armhole_slop*2,
306 translate([hubeffrad + nondove_armhole_x, 0, -20])
307 cylinder(r= nondove_armhole_hole/2, h=50, $fn=10);
312 for (ang = [0 : 180/num_arms : 359])
313 rotate([0,0,ang]) rotate([90,0,0]) {
314 translate([0,0,-hublwidth/2])
315 linear_extrude(height=hublwidth)
316 polygon([[xmin,0.05], [xmax,0.05],
317 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
320 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
324 module ArmExtender(){ ////toplevel
325 DoveClipExtender(length=exteffrad-hubeffrad,
330 module FsAxlePin(){ ////toplevel
331 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
334 module Axle(){ ////toplevel
335 pillarswidth = DoveClipPairSane_width(towerclipcount);
337 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
338 translate([-axlehorizoffset, -axlevertheight, 0]) {
339 rotate([0,0,-axletowerfudgebend])
341 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
342 translate([0, DoveClip_depth(), 0])
344 ExtenderPillars(axlevertheight - DoveClip_depth(),
345 pillarswidth, towercliph,
346 pillarw=towerpillarw);
349 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
350 axlerad = hubaxlerad-slop;
351 bump = axlerad * 0.2;
352 shift = axlerad-bump;
356 translate([0, 0, shift]) {
359 translate([-1, 0, 0])
363 h = 1 + axleclearlen + axlepinrad*2 + 2);
364 mirror([1,0,0]) rotate([0,90,0])
365 cylinder(r = axlerad*1.75, h = 3);
368 translate([axlehorizoffset - pillarswidth/2, 0, 0])
371 r = towercliph - shift,
373 translate([-50, -joinbelowallow, -50])
374 cube([100, joinbelowallow+50, 100]);
378 translate([axleclearlen + axlepinrad/2, 0, -25])
379 cylinder(r = axlepinrad + slop, h=50);
382 translate([-50,-50,0]) cube([100,100,100]);
386 module washer(thick){
387 Washer(hubaxlerad, washerrad, thick, slop);
390 module AxleWasher(){ ////toplevel
391 washer(thick=washerthick);
394 module AxleThinWasher(){ ////toplevel
395 washer(thick=washerthinthick);
398 module AxleVeryThinWasher(){ ////toplevel
399 washer(thick=washerverythinthick);
402 module AxleFrictionWasher(){ ////toplevel
404 cylinder(h=washerthick, r=washerrad);
405 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
408 frarmw = frictionwasherarmwidth;
409 frarmpawlr = hublwidth;
410 frarmpawlpush = slop*4 + frictionwasherextrapush;
411 for (ang=[0,180]) rotate([0,0,ang]) {
412 translate([washerrad-1, -frarmw/2, 0])
413 cube([frarmr - washerrad + 1, frarmw, washerthick]);
415 translate([frarmr - frarmpawlr, -50, 0])
416 cube([frarmpawlr, 100, 50]);
418 cylinder(h = 50, r = frarmpawlpush, $fn=36);
423 module TowerExtender(){ ////toplevel
424 l = totalheightfromtower - axlevertheight;
425 echo("TowerExtender",l);
426 DoveClipExtender(length = l,
427 ha = towercliph, hb = towercliph,
428 counta = towerclipcount, countb = towerclipcount,
429 pillarw = towerpillarw);
432 module FilamentCupPair(){ ////toplevel
434 translate([cupheight + prongthick*3,
437 rotate([0,0,180]) FilamentCup();
449 //AxleFrictionWasher();