16 totalheightfromtower = 240;
17 axletowerfudgebend = 0;
18 axleaxlefudgebend = 3;
21 function selsz(sm,lg) = fdia < 2 ? sm : lg;
23 prongthick=selsz(5,7);
24 prongwidth=selsz(5,7);
28 ratchettoothsmoothr=1;
29 ratchettoothslope=0.75;
31 cupwidth=selsz(40,60);
32 cupheight=selsz(55,75);
43 stalklength=selsz(35,55);
48 overclipcupnextgap=20;
60 axlehorizoffset = 12.5;
70 washerthinthick = 0.8;
71 washerverythinthick = 0.4;
72 washerrad = hubaxlerad + 7.5;
73 frictionwasherarmwidth = 3;
74 frictionwasherextrapush = 1.0;
76 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
78 include <doveclip.scad>
79 include <cliphook.scad>
80 include <filamentteeth.scad>
81 include <axlepin.scad>
83 channelwidth = prongthick + slop;
84 channeldepth = prongwidth + ratchettoothheight;
85 totalwidth = armendwallthick*2 + channelwidth;
86 totalheight = channeldepth + armendbasethick;
87 stalkwidth = prongwidth + prongstalkxwidth;
89 module ArmEnd(length=120){ ////toplevel
90 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
92 DoveClipPairBase(h=doveclipheight);
96 translate([0, -armendwallthick, -armendbasethick])
97 cube([length, totalwidth, totalheight]);
99 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
100 translate([-1, 0, ratchettoothheight])
101 cube([length+2, channelwidth, channeldepth+1]);
103 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
104 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
106 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
107 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
111 cube([ratchettooth - ratchettoothsmoothr*2,
112 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
117 module FilamentCupHandle(){
118 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
120 cube([stalklength, stalkwidth, prongthick]);
121 translate([stalklength, stalkwidth/2, 0])
122 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
123 translate([ratchettoothsmoothr, stalkwidth, 0]) {
125 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
126 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
131 ratchettoothheight - ratchettoothsmoothr,
138 module FilamentCupCup(){
139 for (my=[0,1]) mirror([0,my,0]) {
140 translate([0,cupwidth/2,0])
141 cube([cupheight + prongwidth, prongwidth, prongthick]);
145 module FilamentCup() { ////toplevel
149 dy = cupwidth/2 + gapy + overclipcupgap;
151 translate([0, dy, 0])
153 translate([0, -1, 0]);
154 cube([prongwidth, dy+1+cupwidth/2, prongthick]);
156 midrad = cupwidth/2 + prongwidth/2;
158 propshift = stalklength - overclipdepth - prongthick + propxshift;
159 proptaken = propshift;
160 echo(midrad, propshift, proptaken);
162 translate([propshift, -1, 0]) {
163 // something is wrong with the y calculation
168 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
170 rotate([0,0, 102 + fdia])
171 FilamentTeeth(fdia=fdia, h=teethh);
173 for (x = [-0.3, -1.3]) {
174 translate([cupheight + overclipcupnextgap*x, dy+cupwidth/2 + prongthick, 0])
175 rotate([0,0, 12 + fdia])
176 FilamentTeeth(fdia=fdia, h=teethh);
180 module CupSecuringClipSolid(w,d,h1,h2){
181 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
182 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
186 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
187 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
189 CupSecuringClipSolid(w=totalwidth,
190 d=overclipdepth + xdepth,
191 h1=hbase - overclipsmaller,
192 h2=hbase + overclipbigger);
193 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
197 module CupSecuringClip(){ ////toplevel
198 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
201 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
202 translate([-wingswidth/2, -wingsize/2, 0])
203 cube([wingswidth, wingsize, wingthick]);
205 translate([0,0,-0.1])
206 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
210 module ArmDoveClipPin(){ ////toplevel
211 DoveClipPin(h=doveclipheight);
214 module TowerDoveClipPin(){ ////toplevel
215 DoveClipPin(h=towercliph/2);
218 module Hub(){ ////toplevel
220 cylinder($fn=60, h=hublthick, r=hubbigrad);
222 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
224 axlerad = hubaxlerad + slop;
226 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
227 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
229 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
230 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
231 for (ang=[0,120,240])
234 translate([hubeffrad,0,0])
235 DoveClipPairSane(h=doveclipheight,
236 baseextend = (hubeffrad - DoveClip_depth()
237 - hubbigrad + hublwidth));
238 if (hole>hublwidth && holewidth > 2) {
239 translate([hubbigrad + hublwidth, -holewidth/2, -1])
240 cube([hole, holewidth, hublthick+2]);
244 xmin = axlerad+hublwidth/2;
245 xmax = hubbigrad-hublwidth/2;
246 for (ang = [0 : 60 : 359])
247 rotate([0,0,ang]) rotate([90,0,0]) {
248 translate([0,0,-hublwidth/2])
249 linear_extrude(height=hublwidth)
250 polygon([[xmin,0.05], [xmax,0.05],
251 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
255 module ArmExtender(){ ////toplevel
256 DoveClipExtender(length=exteffrad-hubeffrad,
261 module FsAxlePin(){ ////toplevel
262 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
265 module Axle(){ ////toplevel
266 pillarswidth = DoveClipPairSane_width(towerclipcount);
268 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
269 translate([-axlehorizoffset, -axlevertheight, 0]) {
270 rotate([0,0,-axletowerfudgebend])
272 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
273 translate([0, DoveClip_depth(), 0])
275 ExtenderPillars(axlevertheight - DoveClip_depth(),
276 pillarswidth, towercliph,
277 pillarw=towerpillarw);
280 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
281 axlerad = hubaxlerad-slop;
282 bump = axlerad * 0.2;
283 shift = axlerad-bump;
287 translate([0, 0, shift]) {
290 translate([-1, 0, 0])
294 h = 1 + axleclearlen + axlepinrad*2 + 2);
295 mirror([1,0,0]) rotate([0,90,0])
296 cylinder(r = axlerad*1.75, h = 3);
299 translate([axlehorizoffset - pillarswidth/2, 0, 0])
302 r = towercliph - shift,
304 translate([-50, -joinbelowallow, -50])
305 cube([100, joinbelowallow+50, 100]);
309 translate([axleclearlen + axlepinrad/2, 0, -25])
310 cylinder(r = axlepinrad + slop, h=50);
313 translate([-50,-50,0]) cube([100,100,100]);
317 module washer(thick){
318 Washer(hubaxlerad, washerrad, thick, slop);
321 module AxleWasher(){ ////toplevel
322 washer(thick=washerthick);
325 module AxleThinWasher(){ ////toplevel
326 washer(thick=washerthinthick);
329 module AxleVeryThinWasher(){ ////toplevel
330 washer(thick=washerverythinthick);
333 module AxleFrictionWasher(){ ////toplevel
335 cylinder(h=washerthick, r=washerrad);
336 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
339 frarmw = frictionwasherarmwidth;
340 frarmpawlr = hublwidth;
341 frarmpawlpush = slop*4 + frictionwasherextrapush;
342 for (ang=[0,180]) rotate([0,0,ang]) {
343 translate([washerrad-1, -frarmw/2, 0])
344 cube([frarmr - washerrad + 1, frarmw, washerthick]);
346 translate([frarmr - frarmpawlr, -50, 0])
347 cube([frarmpawlr, 100, 50]);
349 cylinder(h = 50, r = frarmpawlpush, $fn=36);
354 module TowerExtender(){ ////toplevel
355 l = totalheightfromtower - axlevertheight;
356 echo("TowerExtender",l);
357 DoveClipExtender(length = l,
358 ha = towercliph, hb = towercliph,
359 counta = towerclipcount, countb = towerclipcount,
360 pillarw = towerpillarw);
363 module FilamentCupPair(){ ////toplevel
365 translate([cupheight + prongthick*3,
368 rotate([0,0,180]) FilamentCup();
380 //AxleFrictionWasher();