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>
69 channelwidth = prongthick + slop;
70 channeldepth = prongwidth + ratchettoothheight;
71 totalwidth = armendwallthick*2 + channelwidth;
72 totalheight = channeldepth + armendbasethick;
73 stalkwidth = prongwidth + prongstalkxwidth;
75 module ArmEnd(length=120){ ////toplevel
76 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
78 DoveClipPairBase(h=doveclipheight);
82 translate([0, -armendwallthick, -armendbasethick])
83 cube([length, totalwidth, totalheight]);
85 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
86 translate([-1, 0, ratchettoothheight])
87 cube([length+2, channelwidth, channeldepth+1]);
89 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
90 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
92 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
93 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
97 cube([ratchettooth - ratchettoothsmoothr*2,
98 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
103 module FilamentCupHandle(){
104 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
106 cube([stalklength, stalkwidth, prongthick]);
107 translate([stalklength, stalkwidth/2, 0])
108 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
109 translate([ratchettoothsmoothr, stalkwidth, 0]) {
111 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
112 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
117 ratchettoothheight - ratchettoothsmoothr,
124 module FilamentCupCup(){
125 xstraight = cupbigrad * xstraightmul;
126 linear_extrude(height=prongthick) {
127 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
129 for (my=[0,1]) mirror([0,my,0]) {
130 translate([0,cupbigrad,0])
131 cube([xstraight, prongwidth, prongthick]);
135 module FilamentCup() { ////toplevel
138 dx = cupbigrad + prongwidth;
140 dy = cupbigrad + gapy + overclipcupgap;
142 translate([dx, dy, 0])
144 translate([0, -1, 0]);
145 cube([prongwidth, dy+1, prongthick]);
147 midrad = cupbigrad + prongwidth/2;
149 propshift = stalklength - overclipdepth - prongthick + propxshift;
150 proptaken = propshift;
151 echo(cupbigrad, dx, midrad, propshift, proptaken);
153 translate([propshift, -1, 0]) {
154 // something is wrong with the y calculation
156 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
159 translate([0, overclipcupgap, 0])
160 rotate([0,0, 102 + fdia])
161 FilamentTeeth(fdia=fdia, h=teethh);
164 module CupSecuringClipSolid(w,d,h1,h2){
165 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
166 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
170 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
171 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
173 CupSecuringClipSolid(w=totalwidth,
174 d=overclipdepth + xdepth,
175 h1=hbase - overclipsmaller,
176 h2=hbase + overclipbigger);
177 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
181 module CupSecuringClip(){ ////toplevel
182 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
185 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
186 translate([-wingswidth/2, -wingsize/2, 0])
187 cube([wingswidth, wingsize, wingthick]);
189 translate([0,0,-0.1])
190 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
194 module ArmDoveClipPin(){ ////toplevel
195 DoveClipPin(h=doveclipheight);
198 module Hub(){ ////toplevel
200 cylinder($fn=60, h=hublthick, r=hubbigrad);
202 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
204 axlerad = hubaxlerad + slop;
206 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
207 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
209 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
210 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
211 for (ang=[0,120,240])
214 translate([hubeffrad,0,0])
215 DoveClipPairSane(h=doveclipheight,
216 baseextend = (hubeffrad - DoveClip_depth()
217 - hubbigrad + hublwidth));
218 if (hole>hublwidth && holewidth > 2) {
219 translate([hubbigrad + hublwidth, -holewidth/2, -1])
220 cube([hole, holewidth, hublthick+2]);
224 xmin = axlerad+hublwidth/2;
225 xmax = hubbigrad-hublwidth/2;
226 for (ang = [0 : 60 : 359])
227 rotate([0,0,ang]) rotate([90,0,0]) {
228 translate([0,0,-hublwidth/2])
229 linear_extrude(height=hublwidth)
230 polygon([[xmin,0.05], [xmax,0.05],
231 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
235 module ArmExtender(){ ////toplevel
236 DoveClipExtender(length=exteffrad-hubeffrad,
241 module AxlePin(){ ////toplevel
245 module Axle(){ ////toplevel
246 pillarswidth = DoveClipPairSane_width(towerclipcount);
249 translate([-axlehorizoffset, -axlevertheight, 0]) {
251 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
252 translate([0, DoveClip_depth(), 0])
254 ExtenderPillars(axlevertheight - DoveClip_depth(),
255 pillarswidth, towercliph,
256 pillarw=towerpillarw);
259 axleclearlen = hubaxlelen + slop*3 + washerthick*2;
260 axlerad = hubaxlerad-slop;
261 bump = axlerad * 0.2;
262 shift = axlerad-bump;
267 translate([0, 0, shift])
269 translate([-1, 0, 0])
271 cylinder(r = axlerad, h = 1 + axleclearlen + 3 + 2);
272 mirror([1,0,0]) rotate([0,90,0])
273 cylinder(r = washerrad, h = 3);
276 mirror([1,0,0]) rotate([0,90,0])
277 cylinder(r = towercliph - shift,
278 h = pillarswidth/2 + axlehorizoffset);
279 translate([-50, -joinbelowallow, -50])
280 cube([100, joinbelowallow+50, 100]);
283 translate([axleclearlen, 0, 0])
288 translate([-50,-50,0]) cube([100,100,100]);
292 module AxleWasher(){ ////toplevel
294 cylinder(h=washerthick, r=washerrad);
295 translate([0,0,-1]) cylinder(h=washerthick+2, r=hubaxlerad+slop);