16 totalheightfromtower = 240;
17 axletowerfudgebend = 0;
18 axleaxlefudgebend = 3;
26 ratchettoothsmoothr=1;
27 ratchettoothslope=0.75;
47 overclipcupnextgap=20;
59 axlehorizoffset = 12.5;
69 washerthinthick = 0.8;
70 washerverythinthick = 0.4;
71 washerrad = hubaxlerad + 7.5;
72 frictionwasherarmwidth = 3;
73 frictionwasherextrapush = 1.0;
75 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
77 include <doveclip.scad>
78 include <cliphook.scad>
79 include <filamentteeth.scad>
80 include <axlepin.scad>
82 channelwidth = prongthick + slop;
83 channeldepth = prongwidth + ratchettoothheight;
84 totalwidth = armendwallthick*2 + channelwidth;
85 totalheight = channeldepth + armendbasethick;
86 stalkwidth = prongwidth + prongstalkxwidth;
87 xstraight = cupbigrad * xstraightmul;
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 linear_extrude(height=prongthick) {
140 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
142 for (my=[0,1]) mirror([0,my,0]) {
143 translate([0,cupbigrad,0])
144 cube([xstraight, prongwidth, prongthick]);
148 module FilamentCup() { ////toplevel
151 dx = cupbigrad + prongwidth;
153 dy = cupbigrad + gapy + overclipcupgap;
155 translate([dx, dy, 0])
157 translate([0, -1, 0]);
158 cube([prongwidth, dy+1, prongthick]);
160 midrad = cupbigrad + prongwidth/2;
162 propshift = stalklength - overclipdepth - prongthick + propxshift;
163 proptaken = propshift;
164 echo(cupbigrad, dx, midrad, propshift, proptaken);
166 translate([propshift, -1, 0]) {
167 // something is wrong with the y calculation
169 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
172 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
174 rotate([0,0, 102 + fdia])
175 FilamentTeeth(fdia=fdia, h=teethh);
179 module CupSecuringClipSolid(w,d,h1,h2){
180 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
181 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
185 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
186 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
188 CupSecuringClipSolid(w=totalwidth,
189 d=overclipdepth + xdepth,
190 h1=hbase - overclipsmaller,
191 h2=hbase + overclipbigger);
192 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
196 module CupSecuringClip(){ ////toplevel
197 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
200 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
201 translate([-wingswidth/2, -wingsize/2, 0])
202 cube([wingswidth, wingsize, wingthick]);
204 translate([0,0,-0.1])
205 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
209 module ArmDoveClipPin(){ ////toplevel
210 DoveClipPin(h=doveclipheight);
213 module TowerDoveClipPin(){ ////toplevel
214 DoveClipPin(h=towercliph/2);
217 module Hub(){ ////toplevel
219 cylinder($fn=60, h=hublthick, r=hubbigrad);
221 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
223 axlerad = hubaxlerad + slop;
225 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
226 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
228 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
229 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
230 for (ang=[0,120,240])
233 translate([hubeffrad,0,0])
234 DoveClipPairSane(h=doveclipheight,
235 baseextend = (hubeffrad - DoveClip_depth()
236 - hubbigrad + hublwidth));
237 if (hole>hublwidth && holewidth > 2) {
238 translate([hubbigrad + hublwidth, -holewidth/2, -1])
239 cube([hole, holewidth, hublthick+2]);
243 xmin = axlerad+hublwidth/2;
244 xmax = hubbigrad-hublwidth/2;
245 for (ang = [0 : 60 : 359])
246 rotate([0,0,ang]) rotate([90,0,0]) {
247 translate([0,0,-hublwidth/2])
248 linear_extrude(height=hublwidth)
249 polygon([[xmin,0.05], [xmax,0.05],
250 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
254 module ArmExtender(){ ////toplevel
255 DoveClipExtender(length=exteffrad-hubeffrad,
260 module FsAxlePin(){ ////toplevel
261 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
264 module Axle(){ ////toplevel
265 pillarswidth = DoveClipPairSane_width(towerclipcount);
267 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
268 translate([-axlehorizoffset, -axlevertheight, 0]) {
269 rotate([0,0,-axletowerfudgebend])
271 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
272 translate([0, DoveClip_depth(), 0])
274 ExtenderPillars(axlevertheight - DoveClip_depth(),
275 pillarswidth, towercliph,
276 pillarw=towerpillarw);
279 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
280 axlerad = hubaxlerad-slop;
281 bump = axlerad * 0.2;
282 shift = axlerad-bump;
286 translate([0, 0, shift]) {
289 translate([-1, 0, 0])
293 h = 1 + axleclearlen + axlepinrad*2 + 2);
294 mirror([1,0,0]) rotate([0,90,0])
295 cylinder(r = axlerad*1.75, h = 3);
298 translate([axlehorizoffset - pillarswidth/2, 0, 0])
301 r = towercliph - shift,
303 translate([-50, -joinbelowallow, -50])
304 cube([100, joinbelowallow+50, 100]);
308 translate([axleclearlen + axlepinrad/2, 0, -25])
309 cylinder(r = axlepinrad + slop, h=50);
312 translate([-50,-50,0]) cube([100,100,100]);
316 module washer(thick){
317 Washer(hubaxlerad, washerrad, thick, slop);
320 module AxleWasher(){ ////toplevel
321 washer(thick=washerthick);
324 module AxleThinWasher(){ ////toplevel
325 washer(thick=washerthinthick);
328 module AxleVeryThinWasher(){ ////toplevel
329 washer(thick=washerverythinthick);
332 module AxleFrictionWasher(){ ////toplevel
334 cylinder(h=washerthick, r=washerrad);
335 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
338 frarmw = frictionwasherarmwidth;
339 frarmpawlr = hublwidth;
340 frarmpawlpush = slop*4 + frictionwasherextrapush;
341 for (ang=[0,180]) rotate([0,0,ang]) {
342 translate([washerrad-1, -frarmw/2, 0])
343 cube([frarmr - washerrad + 1, frarmw, washerthick]);
345 translate([frarmr - frarmpawlr, -50, 0])
346 cube([frarmpawlr, 100, 50]);
348 cylinder(h = 50, r = frarmpawlpush, $fn=36);
353 module TowerExtender(){ ////toplevel
354 l = totalheightfromtower - axlevertheight;
355 echo("TowerExtender",l);
356 DoveClipExtender(length = l,
357 ha = towercliph, hb = towercliph,
358 counta = towerclipcount, countb = towerclipcount,
359 pillarw = towerpillarw);
362 module FilamentCupPair(){ ////toplevel
364 translate([xstraight + cupbigrad + prongthick*3,
367 rotate([0,0,180]) FilamentCup();
379 //AxleFrictionWasher();