16 totalheightfromtower = 240;
23 ratchettoothsmoothr=1;
24 ratchettoothslope=0.75;
55 axlehorizoffset = 12.5;
65 washerrad = hubaxlerad + 7.5;
67 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
69 include <doveclip.scad>
70 include <cliphook.scad>
71 include <filamentteeth.scad>
73 channelwidth = prongthick + slop;
74 channeldepth = prongwidth + ratchettoothheight;
75 totalwidth = armendwallthick*2 + channelwidth;
76 totalheight = channeldepth + armendbasethick;
77 stalkwidth = prongwidth + prongstalkxwidth;
79 module ArmEnd(length=120){ ////toplevel
80 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
82 DoveClipPairBase(h=doveclipheight);
86 translate([0, -armendwallthick, -armendbasethick])
87 cube([length, totalwidth, totalheight]);
89 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
90 translate([-1, 0, ratchettoothheight])
91 cube([length+2, channelwidth, channeldepth+1]);
93 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
94 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
96 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
97 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
101 cube([ratchettooth - ratchettoothsmoothr*2,
102 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
107 module FilamentCupHandle(){
108 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
110 cube([stalklength, stalkwidth, prongthick]);
111 translate([stalklength, stalkwidth/2, 0])
112 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
113 translate([ratchettoothsmoothr, stalkwidth, 0]) {
115 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
116 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
121 ratchettoothheight - ratchettoothsmoothr,
128 module FilamentCupCup(){
129 xstraight = cupbigrad * xstraightmul;
130 linear_extrude(height=prongthick) {
131 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
133 for (my=[0,1]) mirror([0,my,0]) {
134 translate([0,cupbigrad,0])
135 cube([xstraight, prongwidth, prongthick]);
139 module FilamentCup() { ////toplevel
142 dx = cupbigrad + prongwidth;
144 dy = cupbigrad + gapy + overclipcupgap;
146 translate([dx, dy, 0])
148 translate([0, -1, 0]);
149 cube([prongwidth, dy+1, prongthick]);
151 midrad = cupbigrad + prongwidth/2;
153 propshift = stalklength - overclipdepth - prongthick + propxshift;
154 proptaken = propshift;
155 echo(cupbigrad, dx, midrad, propshift, proptaken);
157 translate([propshift, -1, 0]) {
158 // something is wrong with the y calculation
160 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
163 translate([0, overclipcupgap, 0])
164 rotate([0,0, 102 + fdia])
165 FilamentTeeth(fdia=fdia, h=teethh);
168 module CupSecuringClipSolid(w,d,h1,h2){
169 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
170 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
174 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
175 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
177 CupSecuringClipSolid(w=totalwidth,
178 d=overclipdepth + xdepth,
179 h1=hbase - overclipsmaller,
180 h2=hbase + overclipbigger);
181 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
185 module CupSecuringClip(){ ////toplevel
186 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
189 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
190 translate([-wingswidth/2, -wingsize/2, 0])
191 cube([wingswidth, wingsize, wingthick]);
193 translate([0,0,-0.1])
194 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
198 module ArmDoveClipPin(){ ////toplevel
199 DoveClipPin(h=doveclipheight);
202 module Hub(){ ////toplevel
204 cylinder($fn=60, h=hublthick, r=hubbigrad);
206 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
208 axlerad = hubaxlerad + slop;
210 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
211 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
213 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
214 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
215 for (ang=[0,120,240])
218 translate([hubeffrad,0,0])
219 DoveClipPairSane(h=doveclipheight,
220 baseextend = (hubeffrad - DoveClip_depth()
221 - hubbigrad + hublwidth));
222 if (hole>hublwidth && holewidth > 2) {
223 translate([hubbigrad + hublwidth, -holewidth/2, -1])
224 cube([hole, holewidth, hublthick+2]);
228 xmin = axlerad+hublwidth/2;
229 xmax = hubbigrad-hublwidth/2;
230 for (ang = [0 : 60 : 359])
231 rotate([0,0,ang]) rotate([90,0,0]) {
232 translate([0,0,-hublwidth/2])
233 linear_extrude(height=hublwidth)
234 polygon([[xmin,0.05], [xmax,0.05],
235 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
239 module ArmExtender(){ ////toplevel
240 DoveClipExtender(length=exteffrad-hubeffrad,
245 module AxlePin(){ ////toplevel
246 pinr = axlepinrad - slop;
248 translate([0, 0, pinr*0.7]) {
249 translate([0, -washerrad, 0]) rotate([-90,0,0])
250 cylinder(r=pinr, h=washerrad*2, $fn=10);
251 translate([-axlepintabrad, hubaxlerad, -axlepinrad])
252 cube([axlepintabrad*2, axlepinrad*2, axlepinrad*2]);
254 translate([-50,-50,0]) cube([100,100,50]);
258 module Axle(){ ////toplevel
259 pillarswidth = DoveClipPairSane_width(towerclipcount);
262 translate([-axlehorizoffset, -axlevertheight, 0]) {
264 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
265 translate([0, DoveClip_depth(), 0])
267 ExtenderPillars(axlevertheight - DoveClip_depth(),
268 pillarswidth, towercliph,
269 pillarw=towerpillarw);
272 axleclearlen = hubaxlelen + slop*3 + washerthick*2;
273 axlerad = hubaxlerad-slop;
274 bump = axlerad * 0.2;
275 shift = axlerad-bump;
279 translate([0, 0, shift]) {
282 translate([-1, 0, 0])
284 cylinder(r = axlerad, h = 1 + axleclearlen + 3 + 2);
285 mirror([1,0,0]) rotate([0,90,0])
286 cylinder(r = washerrad, h = 3);
289 mirror([1,0,0]) rotate([0,90,0])
290 cylinder(r = towercliph - shift,
291 h = pillarswidth/2 + axlehorizoffset);
292 translate([-50, -joinbelowallow, -50])
293 cube([100, joinbelowallow+50, 100]);
297 translate([axleclearlen + axlepinrad/2, 0, -25])
298 cylinder(r=axlepinrad, h=50);
301 translate([-50,-50,0]) cube([100,100,100]);
305 module AxleWasher(){ ////toplevel
307 cylinder(h=washerthick, r=washerrad);
308 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);
312 module TowerExtender(){ ////toplevel
313 l = totalheightfromtower - axlevertheight;
314 echo("TowerExtender",l);
315 DoveClipExtender(length = l,
316 ha = towercliph, hb = towercliph,
317 counta = towerclipcount, countb = towerclipcount,
318 pillarw = towerpillarw);