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]);
204 translate([-wingsize/2, -wingswidth/2, 0])
205 cube([wingsize, wingswidth, wingthick]);
207 translate([0,0,-0.1])
208 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
212 module ArmDoveClipPin(){ ////toplevel
213 DoveClipPin(h=doveclipheight);
216 module TowerDoveClipPin(){ ////toplevel
217 DoveClipPin(h=towercliph/2);
220 module Hub(){ ////toplevel
222 cylinder($fn=60, h=hublthick, r=hubbigrad);
224 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
226 axlerad = hubaxlerad + slop;
228 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
229 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
231 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
232 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
233 for (ang=[0,120,240])
236 translate([hubeffrad,0,0])
237 DoveClipPairSane(h=doveclipheight,
238 baseextend = (hubeffrad - DoveClip_depth()
239 - hubbigrad + hublwidth));
240 if (hole>hublwidth && holewidth > 2) {
241 translate([hubbigrad + hublwidth, -holewidth/2, -1])
242 cube([hole, holewidth, hublthick+2]);
246 xmin = axlerad+hublwidth/2;
247 xmax = hubbigrad-hublwidth/2;
248 for (ang = [0 : 60 : 359])
249 rotate([0,0,ang]) rotate([90,0,0]) {
250 translate([0,0,-hublwidth/2])
251 linear_extrude(height=hublwidth)
252 polygon([[xmin,0.05], [xmax,0.05],
253 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
257 module ArmExtender(){ ////toplevel
258 DoveClipExtender(length=exteffrad-hubeffrad,
263 module FsAxlePin(){ ////toplevel
264 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
267 module Axle(){ ////toplevel
268 pillarswidth = DoveClipPairSane_width(towerclipcount);
270 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
271 translate([-axlehorizoffset, -axlevertheight, 0]) {
272 rotate([0,0,-axletowerfudgebend])
274 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
275 translate([0, DoveClip_depth(), 0])
277 ExtenderPillars(axlevertheight - DoveClip_depth(),
278 pillarswidth, towercliph,
279 pillarw=towerpillarw);
282 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
283 axlerad = hubaxlerad-slop;
284 bump = axlerad * 0.2;
285 shift = axlerad-bump;
289 translate([0, 0, shift]) {
292 translate([-1, 0, 0])
296 h = 1 + axleclearlen + axlepinrad*2 + 2);
297 mirror([1,0,0]) rotate([0,90,0])
298 cylinder(r = axlerad*1.75, h = 3);
301 translate([axlehorizoffset - pillarswidth/2, 0, 0])
304 r = towercliph - shift,
306 translate([-50, -joinbelowallow, -50])
307 cube([100, joinbelowallow+50, 100]);
311 translate([axleclearlen + axlepinrad/2, 0, -25])
312 cylinder(r = axlepinrad + slop, h=50);
315 translate([-50,-50,0]) cube([100,100,100]);
319 module washer(thick){
320 Washer(hubaxlerad, washerrad, thick, slop);
323 module AxleWasher(){ ////toplevel
324 washer(thick=washerthick);
327 module AxleThinWasher(){ ////toplevel
328 washer(thick=washerthinthick);
331 module AxleVeryThinWasher(){ ////toplevel
332 washer(thick=washerverythinthick);
335 module AxleFrictionWasher(){ ////toplevel
337 cylinder(h=washerthick, r=washerrad);
338 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
341 frarmw = frictionwasherarmwidth;
342 frarmpawlr = hublwidth;
343 frarmpawlpush = slop*4 + frictionwasherextrapush;
344 for (ang=[0,180]) rotate([0,0,ang]) {
345 translate([washerrad-1, -frarmw/2, 0])
346 cube([frarmr - washerrad + 1, frarmw, washerthick]);
348 translate([frarmr - frarmpawlr, -50, 0])
349 cube([frarmpawlr, 100, 50]);
351 cylinder(h = 50, r = frarmpawlpush, $fn=36);
356 module TowerExtender(){ ////toplevel
357 l = totalheightfromtower - axlevertheight;
358 echo("TowerExtender",l);
359 DoveClipExtender(length = l,
360 ha = towercliph, hb = towercliph,
361 counta = towerclipcount, countb = towerclipcount,
362 pillarw = towerpillarw);
365 module FilamentCupPair(){ ////toplevel
367 translate([cupheight + prongthick*3,
370 rotate([0,0,180]) FilamentCup();
382 //AxleFrictionWasher();