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
92 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
94 DoveClipPairBase(h=doveclipheight);
99 translate([0, -armendwallthick, -armendbasethick])
100 cube([length, totalwidth, totalheight]);
101 translate([-1, 0, 0])
102 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
103 translate([-1, 0, ratchettoothheight])
104 cube([length+2, channelwidth, channeldepth+1]);
106 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
107 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
109 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
110 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
114 cube([ratchettooth - ratchettoothsmoothr*2,
115 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
120 module FilamentCupHandle(){
121 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
123 cube([stalklength, stalkwidth, prongthick]);
124 translate([stalklength, stalkwidth/2, 0])
125 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
126 translate([ratchettoothsmoothr, stalkwidth, 0]) {
128 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
129 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
134 ratchettoothheight - ratchettoothsmoothr,
141 module FilamentCupCup(){
142 for (my=[0,1]) mirror([0,my,0]) {
143 translate([0,cupwidth/2,0])
144 cube([cupheight + prongwidth, prongwidth, prongthick]);
148 module FilamentCup() { ////toplevel
152 dy = cupwidth/2 + gapy + overclipcupgap;
154 translate([0, dy, 0])
156 translate([0, -1, 0]);
157 cube([prongwidth, dy+1+cupwidth/2, prongthick]);
159 midrad = cupwidth/2 + prongwidth/2;
161 propshift = stalklength - overclipdepth - prongthick + propxshift;
162 proptaken = propshift;
163 echo(midrad, propshift, proptaken);
165 translate([propshift, -1, 0]) {
166 // something is wrong with the y calculation
171 for (y = [overclipcupgap, overclipcupgap+overclipcupnextgap]) {
173 rotate([0,0, 102 + fdia])
174 FilamentTeeth(fdia=fdia, h=teethh);
176 for (x = [-0.3, -1.3]) {
177 translate([cupheight + overclipcupnextgap*x, dy+cupwidth/2 + prongthick, 0])
178 rotate([0,0, 12 + fdia])
179 FilamentTeeth(fdia=fdia, h=teethh);
183 module CupSecuringClipSolid(w,d,h1,h2){
184 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
185 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
189 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
190 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
192 CupSecuringClipSolid(w=totalwidth,
193 d=overclipdepth + xdepth,
194 h1=hbase - overclipsmaller,
195 h2=hbase + overclipbigger);
196 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
200 module CupSecuringClip(){ ////toplevel
201 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
204 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
205 translate([-wingswidth/2, -wingsize/2, 0])
206 cube([wingswidth, wingsize, wingthick]);
207 translate([-wingsize/2, -wingswidth/2, 0])
208 cube([wingsize, wingswidth, wingthick]);
210 translate([0,0,-0.1])
211 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
215 module ArmDoveClipPin(){ ////toplevel
216 DoveClipPin(h=doveclipheight);
219 module TowerDoveClipPin(){ ////toplevel
220 DoveClipPin(h=towercliph/2);
223 module Hub(){ ////toplevel
225 cylinder($fn=60, h=hublthick, r=hubbigrad);
227 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
229 axlerad = hubaxlerad + slop;
231 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
232 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
234 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
235 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
236 for (ang=[0,120,240])
239 translate([hubeffrad,0,0])
240 DoveClipPairSane(h=doveclipheight,
241 baseextend = (hubeffrad - DoveClip_depth()
242 - hubbigrad + hublwidth));
243 if (hole>hublwidth && holewidth > 2) {
244 translate([hubbigrad + hublwidth, -holewidth/2, -1])
245 cube([hole, holewidth, hublthick+2]);
249 xmin = axlerad+hublwidth/2;
250 xmax = hubbigrad-hublwidth/2;
251 for (ang = [0 : 60 : 359])
252 rotate([0,0,ang]) rotate([90,0,0]) {
253 translate([0,0,-hublwidth/2])
254 linear_extrude(height=hublwidth)
255 polygon([[xmin,0.05], [xmax,0.05],
256 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
260 module ArmExtender(){ ////toplevel
261 DoveClipExtender(length=exteffrad-hubeffrad,
266 module FsAxlePin(){ ////toplevel
267 AxlePin(hubaxlerad, washerrad*2, axlepinrad, axlepintabrad, slop);
270 module Axle(){ ////toplevel
271 pillarswidth = DoveClipPairSane_width(towerclipcount);
273 rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
274 translate([-axlehorizoffset, -axlevertheight, 0]) {
275 rotate([0,0,-axletowerfudgebend])
277 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
278 translate([0, DoveClip_depth(), 0])
280 ExtenderPillars(axlevertheight - DoveClip_depth(),
281 pillarswidth, towercliph,
282 pillarw=towerpillarw);
285 axleclearlen = hubaxlelen + slop*4 + washerthick*2 + axlepadlen;
286 axlerad = hubaxlerad-slop;
287 bump = axlerad * 0.2;
288 shift = axlerad-bump;
292 translate([0, 0, shift]) {
295 translate([-1, 0, 0])
299 h = 1 + axleclearlen + axlepinrad*2 + 2);
300 mirror([1,0,0]) rotate([0,90,0])
301 cylinder(r = axlerad*1.75, h = 3);
304 translate([axlehorizoffset - pillarswidth/2, 0, 0])
307 r = towercliph - shift,
309 translate([-50, -joinbelowallow, -50])
310 cube([100, joinbelowallow+50, 100]);
314 translate([axleclearlen + axlepinrad/2, 0, -25])
315 cylinder(r = axlepinrad + slop, h=50);
318 translate([-50,-50,0]) cube([100,100,100]);
322 module washer(thick){
323 Washer(hubaxlerad, washerrad, thick, slop);
326 module AxleWasher(){ ////toplevel
327 washer(thick=washerthick);
330 module AxleThinWasher(){ ////toplevel
331 washer(thick=washerthinthick);
334 module AxleVeryThinWasher(){ ////toplevel
335 washer(thick=washerverythinthick);
338 module AxleFrictionWasher(){ ////toplevel
340 cylinder(h=washerthick, r=washerrad);
341 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
344 frarmw = frictionwasherarmwidth;
345 frarmpawlr = hublwidth;
346 frarmpawlpush = slop*4 + frictionwasherextrapush;
347 for (ang=[0,180]) rotate([0,0,ang]) {
348 translate([washerrad-1, -frarmw/2, 0])
349 cube([frarmr - washerrad + 1, frarmw, washerthick]);
351 translate([frarmr - frarmpawlr, -50, 0])
352 cube([frarmpawlr, 100, 50]);
354 cylinder(h = 50, r = frarmpawlpush, $fn=36);
359 module TowerExtender(){ ////toplevel
360 l = totalheightfromtower - axlevertheight;
361 echo("TowerExtender",l);
362 DoveClipExtender(length = l,
363 ha = towercliph, hb = towercliph,
364 counta = towerclipcount, countb = towerclipcount,
365 pillarw = towerpillarw);
368 module FilamentCupPair(){ ////toplevel
370 translate([cupheight + prongthick*3,
373 rotate([0,0,180]) FilamentCup();
385 //AxleFrictionWasher();