16 totalheightfromtower = 240;
17 axletowerfudgebend = 0;
18 axleaxlefudgebend = 3;
26 ratchettoothsmoothr=1;
27 ratchettoothslope=0.75;
46 overclipcupnextgap=20;
58 axlehorizoffset = 12.5;
68 washerthinthick = 0.8;
69 washerverythinthick = 0.4;
70 washerrad = hubaxlerad + 7.5;
71 frictionwasherarmwidth = 3;
72 frictionwasherextrapush = 1.0;
74 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
76 include <doveclip.scad>
77 include <cliphook.scad>
78 include <filamentteeth.scad>
79 include <axlepin.scad>
81 channelwidth = prongthick + slop;
82 channeldepth = prongwidth + ratchettoothheight;
83 totalwidth = armendwallthick*2 + channelwidth;
84 totalheight = channeldepth + armendbasethick;
85 stalkwidth = prongwidth + prongstalkxwidth;
87 module ArmEnd(length=120){ ////toplevel
88 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
90 DoveClipPairBase(h=doveclipheight);
94 translate([0, -armendwallthick, -armendbasethick])
95 cube([length, totalwidth, totalheight]);
97 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
98 translate([-1, 0, ratchettoothheight])
99 cube([length+2, channelwidth, channeldepth+1]);
101 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
102 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
104 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
105 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
109 cube([ratchettooth - ratchettoothsmoothr*2,
110 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
115 module FilamentCupHandle(){
116 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
118 cube([stalklength, stalkwidth, prongthick]);
119 translate([stalklength, stalkwidth/2, 0])
120 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
121 translate([ratchettoothsmoothr, stalkwidth, 0]) {
123 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
124 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
129 ratchettoothheight - ratchettoothsmoothr,
136 module FilamentCupCup(){
137 for (my=[0,1]) mirror([0,my,0]) {
138 translate([0,cupwidth/2,0])
139 cube([cupheight + prongwidth, prongwidth, prongthick]);
143 module FilamentCup() { ////toplevel
147 dy = cupwidth/2 + gapy + overclipcupgap;
149 translate([0, dy, 0])
151 translate([0, -1, 0]);
152 cube([prongwidth, dy+1+cupwidth/2, prongthick]);
154 midrad = cupwidth/2 + prongwidth/2;
156 propshift = stalklength - overclipdepth - prongthick + propxshift;
157 proptaken = propshift;
158 echo(midrad, propshift, proptaken);
160 translate([propshift, -1, 0]) {
161 // something is wrong with the y calculation
163 overclipdepth - prongwidth/2,
166 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
168 rotate([0,0, 102 + fdia])
169 FilamentTeeth(fdia=fdia, h=teethh);
173 module CupSecuringClipSolid(w,d,h1,h2){
174 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
175 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
179 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
180 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
182 CupSecuringClipSolid(w=totalwidth,
183 d=overclipdepth + xdepth,
184 h1=hbase - overclipsmaller,
185 h2=hbase + overclipbigger);
186 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
190 module CupSecuringClip(){ ////toplevel
191 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
194 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
195 translate([-wingswidth/2, -wingsize/2, 0])
196 cube([wingswidth, wingsize, wingthick]);
198 translate([0,0,-0.1])
199 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
203 module ArmDoveClipPin(){ ////toplevel
204 DoveClipPin(h=doveclipheight);
207 module TowerDoveClipPin(){ ////toplevel
208 DoveClipPin(h=towercliph/2);
211 module Hub(){ ////toplevel
213 cylinder($fn=60, h=hublthick, r=hubbigrad);
215 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
217 axlerad = hubaxlerad + slop;
219 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
220 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
222 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
223 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
224 for (ang=[0,120,240])
227 translate([hubeffrad,0,0])
228 DoveClipPairSane(h=doveclipheight,
229 baseextend = (hubeffrad - DoveClip_depth()
230 - hubbigrad + hublwidth));
231 if (hole>hublwidth && holewidth > 2) {
232 translate([hubbigrad + hublwidth, -holewidth/2, -1])
233 cube([hole, holewidth, hublthick+2]);
237 xmin = axlerad+hublwidth/2;
238 xmax = hubbigrad-hublwidth/2;
239 for (ang = [0 : 60 : 359])
240 rotate([0,0,ang]) rotate([90,0,0]) {
241 translate([0,0,-hublwidth/2])
242 linear_extrude(height=hublwidth)
243 polygon([[xmin,0.05], [xmax,0.05],
244 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
248 module ArmExtender(){ ////toplevel
249 DoveClipExtender(length=exteffrad-hubeffrad,
254 module FsAxlePin(){ ////toplevel
255 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
258 module Axle(){ ////toplevel
259 pillarswidth = DoveClipPairSane_width(towerclipcount);
261 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
262 translate([-axlehorizoffset, -axlevertheight, 0]) {
263 rotate([0,0,-axletowerfudgebend])
265 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
266 translate([0, DoveClip_depth(), 0])
268 ExtenderPillars(axlevertheight - DoveClip_depth(),
269 pillarswidth, towercliph,
270 pillarw=towerpillarw);
273 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
274 axlerad = hubaxlerad-slop;
275 bump = axlerad * 0.2;
276 shift = axlerad-bump;
280 translate([0, 0, shift]) {
283 translate([-1, 0, 0])
287 h = 1 + axleclearlen + axlepinrad*2 + 2);
288 mirror([1,0,0]) rotate([0,90,0])
289 cylinder(r = axlerad*1.75, h = 3);
292 translate([axlehorizoffset - pillarswidth/2, 0, 0])
295 r = towercliph - shift,
297 translate([-50, -joinbelowallow, -50])
298 cube([100, joinbelowallow+50, 100]);
302 translate([axleclearlen + axlepinrad/2, 0, -25])
303 cylinder(r = axlepinrad + slop, h=50);
306 translate([-50,-50,0]) cube([100,100,100]);
310 module washer(thick){
311 Washer(hubaxlerad, washerrad, thick, slop);
314 module AxleWasher(){ ////toplevel
315 washer(thick=washerthick);
318 module AxleThinWasher(){ ////toplevel
319 washer(thick=washerthinthick);
322 module AxleVeryThinWasher(){ ////toplevel
323 washer(thick=washerverythinthick);
326 module AxleFrictionWasher(){ ////toplevel
328 cylinder(h=washerthick, r=washerrad);
329 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
332 frarmw = frictionwasherarmwidth;
333 frarmpawlr = hublwidth;
334 frarmpawlpush = slop*4 + frictionwasherextrapush;
335 for (ang=[0,180]) rotate([0,0,ang]) {
336 translate([washerrad-1, -frarmw/2, 0])
337 cube([frarmr - washerrad + 1, frarmw, washerthick]);
339 translate([frarmr - frarmpawlr, -50, 0])
340 cube([frarmpawlr, 100, 50]);
342 cylinder(h = 50, r = frarmpawlpush, $fn=36);
347 module TowerExtender(){ ////toplevel
348 l = totalheightfromtower - axlevertheight;
349 echo("TowerExtender",l);
350 DoveClipExtender(length = l,
351 ha = towercliph, hb = towercliph,
352 counta = towerclipcount, countb = towerclipcount,
353 pillarw = towerpillarw);
356 module FilamentCupPair(){ ////toplevel
358 translate([cupheight + prongthick*3,
361 rotate([0,0,180]) FilamentCup();
373 //AxleFrictionWasher();