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, .33, .67, 1])
187 translate([0, (baselen - prongwidth) * 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 if (prongribheight > 0) {
200 translate([-prongwidth, baselen, 0])
201 cube([cupheight/2, prongwidth + prongribheight, prongribwidth]);
204 midrad = cupwidth/2 + prongwidth/2;
206 propshift = stalklength - overclipdepth - prongthick + propxshift;
207 proptaken = propshift;
208 echo(midrad, propshift, proptaken);
210 translate([propshift, -1, 0]) {
211 // something is wrong with the y calculation
216 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
217 translate([cupstrong_dx, y + prongwidth, 0])
218 rotate([0,0, 102 + fdia])
219 FilamentTeeth(fdia=fdia, h=teethh);
221 for (x = [-0.3, -1.3]) {
222 translate([cupheight + overclipcupnextgap*x, baselen + prongwidth, 0])
223 rotate([0,0, 12 + fdia])
224 FilamentTeeth(fdia=fdia, h=teethh);
228 module CupSecuringClipSolid(w,d,h1,h2){
229 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
230 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
234 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
235 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
237 CupSecuringClipSolid(w=totalwidth,
238 d=overclipdepth + xdepth,
239 h1=hbase - overclipsmaller,
240 h2=hbase + overclipbigger);
241 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
245 module CupSecuringClip(){ ////toplevel
246 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
249 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
250 translate([-wingswidth/2, -wingsize/2, 0])
251 cube([wingswidth, wingsize, wingthick]);
252 translate([-wingsize/2, -wingswidth/2, 0])
253 cube([wingsize, wingswidth, wingthick]);
255 translate([0,0,-0.1])
256 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
260 module ArmDoveClipPin(){ ////toplevel
261 DoveClipPin(h=doveclipheight);
264 module TowerDoveClipPin(){ ////toplevel
265 DoveClipPin(h=towercliph/2);
268 module Hub(){ ////toplevel
269 axlerad = hubaxlerad + slop;
270 xmin = axlerad+hublwidth/2;
271 xmax = hubbigrad-hublwidth/2;
272 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
273 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
274 nondove_allwidth = nondove_armhole_wall*2 + totalwidth;
278 cylinder($fn=60, h=hublthick, r=hubbigrad);
280 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
282 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
283 for (ang=[0 : 360/num_arms : 359])
287 translate([hubeffrad,0,0])
288 DoveClipPairSane(h=doveclipheight,
289 baseextend = (hubeffrad - DoveClip_depth()
290 - hubbigrad + hublwidth));
291 if (hole>hublwidth && holewidth > 2) {
292 translate([hubbigrad + hublwidth, -holewidth/2, -1])
293 cube([hole, holewidth, hublthick+2]);
300 cube([hubeffrad + nondove_armhole_x
301 + nondove_armhole_hole/2 + nondove_armhole_support,
303 nondove_armhole_wall + totalheight]);
304 translate([hubeffrad - nondove_armhole_slop_x,
306 + nondove_armhole_wall - nondove_armhole_slop,
307 nondove_armhole_wall])
308 cube([nondove_armhole_x + 50,
309 totalwidth + nondove_armhole_slop*2,
311 translate([hubeffrad + nondove_armhole_x, 0, -20])
312 cylinder(r= nondove_armhole_hole/2, h=50, $fn=10);
317 for (ang = [0 : 180/num_arms : 359])
318 rotate([0,0,ang]) rotate([90,0,0]) {
319 translate([0,0,-hublwidth/2])
320 linear_extrude(height=hublwidth)
321 polygon([[xmin,0.05], [xmax,0.05],
322 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
325 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
329 module ArmExtender(){ ////toplevel
330 DoveClipExtender(length=exteffrad-hubeffrad,
335 module FsAxlePin(){ ////toplevel
336 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
339 module Axle(){ ////toplevel
340 pillarswidth = DoveClipPairSane_width(towerclipcount);
342 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
343 translate([-axlehorizoffset, -axlevertheight, 0]) {
344 rotate([0,0,-axletowerfudgebend])
346 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
347 translate([0, DoveClip_depth(), 0])
349 ExtenderPillars(axlevertheight - DoveClip_depth(),
350 pillarswidth, towercliph,
351 pillarw=towerpillarw);
354 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
355 axlerad = hubaxlerad-slop;
356 bump = axlerad * 0.2;
357 shift = axlerad-bump;
361 translate([0, 0, shift]) {
364 translate([-1, 0, 0])
368 h = 1 + axleclearlen + axlepinrad*2 + 2);
369 mirror([1,0,0]) rotate([0,90,0])
370 cylinder(r = axlerad*1.75, h = 3);
373 translate([axlehorizoffset - pillarswidth/2, 0, 0])
376 r = towercliph - shift,
378 translate([-50, -joinbelowallow, -50])
379 cube([100, joinbelowallow+50, 100]);
383 translate([axleclearlen + axlepinrad/2, 0, -25])
384 cylinder(r = axlepinrad + slop, h=50);
387 translate([-50,-50,0]) cube([100,100,100]);
391 module washer(thick){
392 Washer(hubaxlerad, washerrad, thick, slop);
395 module AxleWasher(){ ////toplevel
396 washer(thick=washerthick);
399 module AxleThinWasher(){ ////toplevel
400 washer(thick=washerthinthick);
403 module AxleVeryThinWasher(){ ////toplevel
404 washer(thick=washerverythinthick);
407 module AxleFrictionWasher(){ ////toplevel
409 cylinder(h=washerthick, r=washerrad);
410 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
413 frarmw = frictionwasherarmwidth;
414 frarmpawlr = hublwidth;
415 frarmpawlpush = slop*4 + frictionwasherextrapush;
416 for (ang=[0,180]) rotate([0,0,ang]) {
417 translate([washerrad-1, -frarmw/2, 0])
418 cube([frarmr - washerrad + 1, frarmw, washerthick]);
420 translate([frarmr - frarmpawlr, -50, 0])
421 cube([frarmpawlr, 100, 50]);
423 cylinder(h = 50, r = frarmpawlpush, $fn=36);
428 module TowerExtender(){ ////toplevel
429 l = totalheightfromtower - axlevertheight;
430 echo("TowerExtender",l);
431 DoveClipExtender(length = l,
432 ha = towercliph, hb = towercliph,
433 counta = towerclipcount, countb = towerclipcount,
434 pillarw = towerpillarw);
437 module FilamentCupPair(){ ////toplevel
439 translate([cupheight + prongthick*3,
442 rotate([0,0,180]) FilamentCup();
454 //AxleFrictionWasher();