22 ratchettoothsmoothr=1;
23 ratchettoothslope=0.75;
54 axlehorizoffset = 12.5;
64 washerrad = hubaxlerad + 7.5;
66 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
68 include <doveclip.scad>
69 include <cliphook.scad>
70 include <filamentteeth.scad>
72 channelwidth = prongthick + slop;
73 channeldepth = prongwidth + ratchettoothheight;
74 totalwidth = armendwallthick*2 + channelwidth;
75 totalheight = channeldepth + armendbasethick;
76 stalkwidth = prongwidth + prongstalkxwidth;
78 module ArmEnd(length=120){ ////toplevel
79 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
81 DoveClipPairBase(h=doveclipheight);
85 translate([0, -armendwallthick, -armendbasethick])
86 cube([length, totalwidth, totalheight]);
88 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
89 translate([-1, 0, ratchettoothheight])
90 cube([length+2, channelwidth, channeldepth+1]);
92 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
93 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
95 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
96 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
100 cube([ratchettooth - ratchettoothsmoothr*2,
101 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
106 module FilamentCupHandle(){
107 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
109 cube([stalklength, stalkwidth, prongthick]);
110 translate([stalklength, stalkwidth/2, 0])
111 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
112 translate([ratchettoothsmoothr, stalkwidth, 0]) {
114 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
115 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
120 ratchettoothheight - ratchettoothsmoothr,
127 module FilamentCupCup(){
128 xstraight = cupbigrad * xstraightmul;
129 linear_extrude(height=prongthick) {
130 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
132 for (my=[0,1]) mirror([0,my,0]) {
133 translate([0,cupbigrad,0])
134 cube([xstraight, prongwidth, prongthick]);
138 module FilamentCup() { ////toplevel
141 dx = cupbigrad + prongwidth;
143 dy = cupbigrad + gapy + overclipcupgap;
145 translate([dx, dy, 0])
147 translate([0, -1, 0]);
148 cube([prongwidth, dy+1, prongthick]);
150 midrad = cupbigrad + prongwidth/2;
152 propshift = stalklength - overclipdepth - prongthick + propxshift;
153 proptaken = propshift;
154 echo(cupbigrad, dx, midrad, propshift, proptaken);
156 translate([propshift, -1, 0]) {
157 // something is wrong with the y calculation
159 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
162 translate([0, overclipcupgap, 0])
163 rotate([0,0, 102 + fdia])
164 FilamentTeeth(fdia=fdia, h=teethh);
167 module CupSecuringClipSolid(w,d,h1,h2){
168 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
169 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
173 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
174 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
176 CupSecuringClipSolid(w=totalwidth,
177 d=overclipdepth + xdepth,
178 h1=hbase - overclipsmaller,
179 h2=hbase + overclipbigger);
180 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
184 module CupSecuringClip(){ ////toplevel
185 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
188 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
189 translate([-wingswidth/2, -wingsize/2, 0])
190 cube([wingswidth, wingsize, wingthick]);
192 translate([0,0,-0.1])
193 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
197 module ArmDoveClipPin(){ ////toplevel
198 DoveClipPin(h=doveclipheight);
201 module Hub(){ ////toplevel
203 cylinder($fn=60, h=hublthick, r=hubbigrad);
205 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
207 axlerad = hubaxlerad + slop;
209 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
210 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
212 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
213 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
214 for (ang=[0,120,240])
217 translate([hubeffrad,0,0])
218 DoveClipPairSane(h=doveclipheight,
219 baseextend = (hubeffrad - DoveClip_depth()
220 - hubbigrad + hublwidth));
221 if (hole>hublwidth && holewidth > 2) {
222 translate([hubbigrad + hublwidth, -holewidth/2, -1])
223 cube([hole, holewidth, hublthick+2]);
227 xmin = axlerad+hublwidth/2;
228 xmax = hubbigrad-hublwidth/2;
229 for (ang = [0 : 60 : 359])
230 rotate([0,0,ang]) rotate([90,0,0]) {
231 translate([0,0,-hublwidth/2])
232 linear_extrude(height=hublwidth)
233 polygon([[xmin,0.05], [xmax,0.05],
234 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
238 module ArmExtender(){ ////toplevel
239 DoveClipExtender(length=exteffrad-hubeffrad,
244 module AxlePin(){ ////toplevel
245 pinr = axlepinrad - slop;
247 translate([0, 0, pinr*0.7]) {
248 translate([0, -washerrad, 0]) rotate([-90,0,0])
249 cylinder(r=pinr, h=washerrad*2, $fn=10);
250 translate([-axlepintabrad, hubaxlerad, -axlepinrad])
251 cube([axlepintabrad*2, axlepinrad*2, axlepinrad*2]);
253 translate([-50,-50,0]) cube([100,100,50]);
257 module Axle(){ ////toplevel
258 pillarswidth = DoveClipPairSane_width(towerclipcount);
261 translate([-axlehorizoffset, -axlevertheight, 0]) {
263 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
264 translate([0, DoveClip_depth(), 0])
266 ExtenderPillars(axlevertheight - DoveClip_depth(),
267 pillarswidth, towercliph,
268 pillarw=towerpillarw);
271 axleclearlen = hubaxlelen + slop*3 + washerthick*2;
272 axlerad = hubaxlerad-slop;
273 bump = axlerad * 0.2;
274 shift = axlerad-bump;
278 translate([0, 0, shift]) {
281 translate([-1, 0, 0])
283 cylinder(r = axlerad, h = 1 + axleclearlen + 3 + 2);
284 mirror([1,0,0]) rotate([0,90,0])
285 cylinder(r = washerrad, h = 3);
288 mirror([1,0,0]) rotate([0,90,0])
289 cylinder(r = towercliph - shift,
290 h = pillarswidth/2 + axlehorizoffset);
291 translate([-50, -joinbelowallow, -50])
292 cube([100, joinbelowallow+50, 100]);
296 translate([axleclearlen + axlepinrad/2, 0, -25])
297 cylinder(r=axlepinrad, h=50);
300 translate([-50,-50,0]) cube([100,100,100]);
304 module AxleWasher(){ ////toplevel
306 cylinder(h=washerthick, r=washerrad);
307 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);