22 ratchettoothsmoothr=1;
23 ratchettoothslope=0.75;
54 axlehorizoffset = 12.5;
61 washerrad = hubaxlerad + 7.5;
63 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
65 include <doveclip.scad>
66 include <cliphook.scad>
67 include <filamentteeth.scad>
68 include <splitpin.scad>
70 channelwidth = prongthick + slop;
71 channeldepth = prongwidth + ratchettoothheight;
72 totalwidth = armendwallthick*2 + channelwidth;
73 totalheight = channeldepth + armendbasethick;
74 stalkwidth = prongwidth + prongstalkxwidth;
76 module ArmEnd(length=120){ ////toplevel
77 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
79 DoveClipPairBase(h=doveclipheight);
83 translate([0, -armendwallthick, -armendbasethick])
84 cube([length, totalwidth, totalheight]);
86 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
87 translate([-1, 0, ratchettoothheight])
88 cube([length+2, channelwidth, channeldepth+1]);
90 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
91 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
93 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
94 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
98 cube([ratchettooth - ratchettoothsmoothr*2,
99 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
104 module FilamentCupHandle(){
105 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
107 cube([stalklength, stalkwidth, prongthick]);
108 translate([stalklength, stalkwidth/2, 0])
109 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
110 translate([ratchettoothsmoothr, stalkwidth, 0]) {
112 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
113 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
118 ratchettoothheight - ratchettoothsmoothr,
125 module FilamentCupCup(){
126 xstraight = cupbigrad * xstraightmul;
127 linear_extrude(height=prongthick) {
128 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
130 for (my=[0,1]) mirror([0,my,0]) {
131 translate([0,cupbigrad,0])
132 cube([xstraight, prongwidth, prongthick]);
136 module FilamentCup() { ////toplevel
139 dx = cupbigrad + prongwidth;
141 dy = cupbigrad + gapy + overclipcupgap;
143 translate([dx, dy, 0])
145 translate([0, -1, 0]);
146 cube([prongwidth, dy+1, prongthick]);
148 midrad = cupbigrad + prongwidth/2;
150 propshift = stalklength - overclipdepth - prongthick + propxshift;
151 proptaken = propshift;
152 echo(cupbigrad, dx, midrad, propshift, proptaken);
154 translate([propshift, -1, 0]) {
155 // something is wrong with the y calculation
157 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
160 translate([0, overclipcupgap, 0])
161 rotate([0,0, 102 + fdia])
162 FilamentTeeth(fdia=fdia, h=teethh);
165 module CupSecuringClipSolid(w,d,h1,h2){
166 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
167 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
171 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
172 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
174 CupSecuringClipSolid(w=totalwidth,
175 d=overclipdepth + xdepth,
176 h1=hbase - overclipsmaller,
177 h2=hbase + overclipbigger);
178 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
182 module CupSecuringClip(){ ////toplevel
183 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
186 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
187 translate([-wingswidth/2, -wingsize/2, 0])
188 cube([wingswidth, wingsize, wingthick]);
190 translate([0,0,-0.1])
191 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
195 module ArmDoveClipPin(){ ////toplevel
196 DoveClipPin(h=doveclipheight);
199 module Hub(){ ////toplevel
201 cylinder($fn=60, h=hublthick, r=hubbigrad);
203 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
205 axlerad = hubaxlerad + slop;
207 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
208 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
210 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
211 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
212 for (ang=[0,120,240])
215 translate([hubeffrad,0,0])
216 DoveClipPairSane(h=doveclipheight,
217 baseextend = (hubeffrad - DoveClip_depth()
218 - hubbigrad + hublwidth));
219 if (hole>hublwidth && holewidth > 2) {
220 translate([hubbigrad + hublwidth, -holewidth/2, -1])
221 cube([hole, holewidth, hublthick+2]);
225 xmin = axlerad+hublwidth/2;
226 xmax = hubbigrad-hublwidth/2;
227 for (ang = [0 : 60 : 359])
228 rotate([0,0,ang]) rotate([90,0,0]) {
229 translate([0,0,-hublwidth/2])
230 linear_extrude(height=hublwidth)
231 polygon([[xmin,0.05], [xmax,0.05],
232 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
236 module ArmExtender(){ ////toplevel
237 DoveClipExtender(length=exteffrad-hubeffrad,
242 module AxleSplitPin(){ ////toplevel
246 module Axle(){ ////toplevel
247 pillarswidth = DoveClipPairSane_width(towerclipcount);
250 translate([-axlehorizoffset, -axlevertheight, 0]) {
252 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
253 translate([0, DoveClip_depth(), 0])
255 ExtenderPillars(axlevertheight - DoveClip_depth(),
256 pillarswidth, towercliph,
257 pillarw=towerpillarw);
260 axleclearlen = hubaxlelen + slop*2 + washerthick;
261 axlerad = hubaxlerad+slop;
262 bump = axlerad * 0.2;
263 shift = axlerad-bump;
268 translate([0, 0, shift])
270 translate([-1, 0, 0])
272 cylinder(r = axlerad, h = 1 + axleclearlen + 6);
273 mirror([1,0,0]) rotate([0,90,0])
274 cylinder(r = washerrad, h = 3);
277 mirror([1,0,0]) rotate([0,90,0])
278 cylinder(r = towercliph - shift,
279 h = pillarswidth/2 + axlehorizoffset);
280 translate([-50, -joinbelowallow, -50])
281 cube([100, joinbelowallow+50, 100]);
284 translate([axleclearlen, 0, 0])
289 translate([-50,-50,0]) cube([100,100,100]);
293 module AxleWasher(){ ////toplevel
295 cylinder(h=washerthick, r=washerrad);
296 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);