16 totalheightfromtower = 240;
17 axletowerfudgebend = 0;
18 axleaxlefudgebend = 3;
21 function selsz(sm,lg) = fdia < 2 ? sm : lg;
22 function usedove() = selsz(true,false);
24 prongthick=selsz(5,7);
25 prongwidth=selsz(5,7);
29 ratchettoothsmoothr=1;
30 ratchettoothslope=0.75;
32 cupwidth=selsz(40,60);
33 cupheight=selsz(55,75);
44 stalklength=selsz(35,55);
49 overclipcupnextgap=20;
61 axlehorizoffset = 12.5;
71 washerthinthick = 0.8;
72 washerverythinthick = 0.4;
73 washerrad = hubaxlerad + 7.5;
74 frictionwasherarmwidth = 3;
75 frictionwasherextrapush = 1.0;
77 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
79 include <doveclip.scad>
80 include <cliphook.scad>
81 include <filamentteeth.scad>
82 include <axlepin.scad>
84 channelwidth = prongthick + slop;
85 channeldepth = prongwidth + ratchettoothheight;
86 totalwidth = armendwallthick*2 + channelwidth;
87 totalheight = channeldepth + armendbasethick;
88 stalkwidth = prongwidth + prongstalkxwidth;
90 module ArmEnd(length=120){ ////toplevel
91 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
93 DoveClipPairBase(h=doveclipheight);
97 translate([0, -armendwallthick, -armendbasethick])
98 cube([length, totalwidth, totalheight]);
100 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
101 translate([-1, 0, ratchettoothheight])
102 cube([length+2, channelwidth, channeldepth+1]);
104 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
105 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
107 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
108 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
112 cube([ratchettooth - ratchettoothsmoothr*2,
113 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
118 module FilamentCupHandle(){
119 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
121 cube([stalklength, stalkwidth, prongthick]);
122 translate([stalklength, stalkwidth/2, 0])
123 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
124 translate([ratchettoothsmoothr, stalkwidth, 0]) {
126 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
127 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
132 ratchettoothheight - ratchettoothsmoothr,
139 module FilamentCupCup(){
140 for (my=[0,1]) mirror([0,my,0]) {
141 translate([0,cupwidth/2,0])
142 cube([cupheight + prongwidth, prongwidth, prongthick]);
146 module FilamentCup() { ////toplevel
150 dy = cupwidth/2 + gapy + overclipcupgap;
152 translate([0, dy, 0])
154 translate([0, -1, 0]);
155 cube([prongwidth, dy+1+cupwidth/2, prongthick]);
157 midrad = cupwidth/2 + prongwidth/2;
159 propshift = stalklength - overclipdepth - prongthick + propxshift;
160 proptaken = propshift;
161 echo(midrad, propshift, proptaken);
163 translate([propshift, -1, 0]) {
164 // something is wrong with the y calculation
169 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
171 rotate([0,0, 102 + fdia])
172 FilamentTeeth(fdia=fdia, h=teethh);
174 for (x = [-0.3, -1.3]) {
175 translate([cupheight + overclipcupnextgap*x, dy+cupwidth/2 + prongthick, 0])
176 rotate([0,0, 12 + fdia])
177 FilamentTeeth(fdia=fdia, h=teethh);
181 module CupSecuringClipSolid(w,d,h1,h2){
182 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
183 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
187 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
188 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
190 CupSecuringClipSolid(w=totalwidth,
191 d=overclipdepth + xdepth,
192 h1=hbase - overclipsmaller,
193 h2=hbase + overclipbigger);
194 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
198 module CupSecuringClip(){ ////toplevel
199 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
202 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
203 translate([-wingswidth/2, -wingsize/2, 0])
204 cube([wingswidth, wingsize, wingthick]);
205 translate([-wingsize/2, -wingswidth/2, 0])
206 cube([wingsize, wingswidth, wingthick]);
208 translate([0,0,-0.1])
209 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
213 module ArmDoveClipPin(){ ////toplevel
214 DoveClipPin(h=doveclipheight);
217 module TowerDoveClipPin(){ ////toplevel
218 DoveClipPin(h=towercliph/2);
221 module Hub(){ ////toplevel
223 cylinder($fn=60, h=hublthick, r=hubbigrad);
225 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
227 axlerad = hubaxlerad + slop;
229 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
230 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
232 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
233 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
234 for (ang=[0,120,240])
237 translate([hubeffrad,0,0])
238 DoveClipPairSane(h=doveclipheight,
239 baseextend = (hubeffrad - DoveClip_depth()
240 - hubbigrad + hublwidth));
241 if (hole>hublwidth && holewidth > 2) {
242 translate([hubbigrad + hublwidth, -holewidth/2, -1])
243 cube([hole, holewidth, hublthick+2]);
247 xmin = axlerad+hublwidth/2;
248 xmax = hubbigrad-hublwidth/2;
249 for (ang = [0 : 60 : 359])
250 rotate([0,0,ang]) rotate([90,0,0]) {
251 translate([0,0,-hublwidth/2])
252 linear_extrude(height=hublwidth)
253 polygon([[xmin,0.05], [xmax,0.05],
254 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
258 module ArmExtender(){ ////toplevel
259 DoveClipExtender(length=exteffrad-hubeffrad,
264 module FsAxlePin(){ ////toplevel
265 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
268 module Axle(){ ////toplevel
269 pillarswidth = DoveClipPairSane_width(towerclipcount);
271 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
272 translate([-axlehorizoffset, -axlevertheight, 0]) {
273 rotate([0,0,-axletowerfudgebend])
275 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
276 translate([0, DoveClip_depth(), 0])
278 ExtenderPillars(axlevertheight - DoveClip_depth(),
279 pillarswidth, towercliph,
280 pillarw=towerpillarw);
283 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
284 axlerad = hubaxlerad-slop;
285 bump = axlerad * 0.2;
286 shift = axlerad-bump;
290 translate([0, 0, shift]) {
293 translate([-1, 0, 0])
297 h = 1 + axleclearlen + axlepinrad*2 + 2);
298 mirror([1,0,0]) rotate([0,90,0])
299 cylinder(r = axlerad*1.75, h = 3);
302 translate([axlehorizoffset - pillarswidth/2, 0, 0])
305 r = towercliph - shift,
307 translate([-50, -joinbelowallow, -50])
308 cube([100, joinbelowallow+50, 100]);
312 translate([axleclearlen + axlepinrad/2, 0, -25])
313 cylinder(r = axlepinrad + slop, h=50);
316 translate([-50,-50,0]) cube([100,100,100]);
320 module washer(thick){
321 Washer(hubaxlerad, washerrad, thick, slop);
324 module AxleWasher(){ ////toplevel
325 washer(thick=washerthick);
328 module AxleThinWasher(){ ////toplevel
329 washer(thick=washerthinthick);
332 module AxleVeryThinWasher(){ ////toplevel
333 washer(thick=washerverythinthick);
336 module AxleFrictionWasher(){ ////toplevel
338 cylinder(h=washerthick, r=washerrad);
339 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
342 frarmw = frictionwasherarmwidth;
343 frarmpawlr = hublwidth;
344 frarmpawlpush = slop*4 + frictionwasherextrapush;
345 for (ang=[0,180]) rotate([0,0,ang]) {
346 translate([washerrad-1, -frarmw/2, 0])
347 cube([frarmr - washerrad + 1, frarmw, washerthick]);
349 translate([frarmr - frarmpawlr, -50, 0])
350 cube([frarmpawlr, 100, 50]);
352 cylinder(h = 50, r = frarmpawlpush, $fn=36);
357 module TowerExtender(){ ////toplevel
358 l = totalheightfromtower - axlevertheight;
359 echo("TowerExtender",l);
360 DoveClipExtender(length = l,
361 ha = towercliph, hb = towercliph,
362 counta = towerclipcount, countb = towerclipcount,
363 pillarw = towerpillarw);
366 module FilamentCupPair(){ ////toplevel
368 translate([cupheight + prongthick*3,
371 rotate([0,0,180]) FilamentCup();
383 //AxleFrictionWasher();