5 spoolinnerrad = (spoolinnerdia - 0.2) / 2;
6 spoolouterrad = spoolinnerrad + 61.5;
8 include <doveclip.scad>
25 hubbasestalkwidth = 4;
28 hubbaserad = spoolinnerrad + 10;
29 hubmainrad = spoolinnerrad - spoolradslop;
36 plugwmax = plugwmin + plugh * plugslope * 2;
45 topblockbasedepth = 5;
54 pinstraightlen = 30-pintaperlen;
56 spoolouterpad = AxlePin_holerad()*2 * 1.5;
57 spoolbarlen = spoolwidth +
58 2*(Washer_thick() + hubbasethick + AxlePin_holerad()
59 + spoolinnerslop + spoolouterpad);
61 axlepin_x = spoolwidth/2 + hubbasethick +
62 Washer_thick() + spoolinnerslop + AxlePin_holerad()*0.5;
64 trestleheight = spoolouterrad + spoolradclear - barz;
65 trestlebase = trestleheight * 1.2;
73 bdx = dw / cos(a) + bdy * plugslope;
75 tdx = bdx + tdy * plugslope;
76 translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
77 polygon([[-(plugwmin/2 + bdx), bdy],
78 [-(plugwmax/2 + tdx), plugh + tdy],
79 [+(plugwmax/2 + tdx), plugh + tdy],
80 [+(plugwmin/2 + bdx), bdy]]);
84 module Bar(){ ////toplevel
86 biggestw = spoolw + 50;
91 translate([spoolw/2, 0, 0])
93 translate([-1, -50, -50])
94 cube([spoolw/2+1.1, 100, 100]);
98 translate([-biggestw/2, -50, 0])
99 cube([biggestw, 100, 100]);
102 translate([axlepin_x, 0, -50])
103 cylinder(r=AxlePin_holerad(), 100, $fn=15);
106 translate([0,0,barz]) {
107 translate([-100,0,0])
108 rotate([0,90,0]) cylinder(r=axlerad, h=200, $fn=60);
113 module FtAxlePin(){ ////toplevel
114 AxlePin(axlerad, (axlerad + barwasherrad*2)/3 * 2);
117 module AxleWasher(){ ////toplevel
118 Washer(axlerad, barwasherrad);
121 module Trestle(){ ////toplevel
122 legang = atan2(trestlebase/2, trestleheight);
123 eplen = sqrt(trestleheight*trestleheight + trestlebase*trestlebase*0.25);
124 topblockw = plugwmax + trestleplugd*2 + topblockthick*2;
126 pinholebasew = pinbasew + pindwidth*2;
127 pinholeh = pinmaxh + pindh;
133 rotate([0,0, -90-legang])
134 ExtenderPillars(length=eplen+trestlelegw,
139 translate([-trestlebase/2, -trestleheight, 0])
140 cylinder(r=trestlelegw/2*1.2, h=trestlefoot);
143 translate([-topblockw/2, -topblockbasedepth, 0])
145 topblockbasedepth + plugh + topblockthick
146 + (pinmaxh - pinminh)*0.5,
149 translate([-trestlebase/2, -trestleheight, 0])
150 ExtenderPillars(length=trestlebase, width=trestlebaseh*2, height=legw);
152 translate([-300, -trestleheight-50, -1])
156 Plug(d=trestleplugd);
159 translate([0,0,plugl/2]) rotate([0,rot,0]) translate([0,0,-plugl/2]) {
161 plugh - (pinmaxh - pinminh)*1.00,
162 (plugl - pinholebasew*2)/3]) {
163 translate([-(topblockw*0.25+1), 0, pinholebasew/2])
164 rotate([-90,0,0]) %Pin();
165 translate([-(topblockw+1), 0, 0]) {
167 linear_extrude(height = topblockw*2.0+2) {
168 polygon([[-1.0 * pinholebasew, -0.01],
169 [-0.5 * pinholebasew, pinholeh],
180 module Pin(){ ////toplevel
185 linear_extrude(height=0.1) {
188 [pinbasew*0.5*(pinminh/pinmaxh), 0]]);
190 translate([0,0,pintaperlen])
191 linear_extrude(height=pinstraightlen) {
202 module HubEnd(){ ////toplevel
203 thick = hubmainthick+hubbasethick;
206 for (ang=[0 : 60 : 359]) {
208 translate([hubmainrad - hubwalls/2, -hubbasestalkwidth/2, 0])
209 cube([hubbaserad - (hubmainrad - hubwalls/2),
210 hubbasestalkwidth, hubbasethick]);
211 ExtenderPillar(length = hubmainrad-hubwalls/2,
212 height = hubbasethick + hubmainthick,
213 pillarw = hubpillarw);
216 cylinder(r=axlerad+hubwalls, h=thick);
217 cylinder(r=hubmainrad-0.1, h=hubbaseweb);
219 cylinder(r=hubmainrad, h=thick, $fn=100);
221 cylinder(r=hubmainrad-hubwalls, h=thick+2);
224 cylinder(r=hubbaserad, h=hubbasethick, $fn=50);
226 cylinder(r=hubbaserad-hubwalls, h=hubbasethick+2);
230 cylinder(r=axlerad+axleslop, h=thick+2, $fn=50);
235 module TestKit(){ ////toplevel
236 translate([60,0,0]) mirror([1,0,0]) Pin();
237 translate([60,15,0]) mirror([1,0,0]) Pin();
238 translate([0,40,0]) intersection(){
240 translate([-50,-10,-1]) cube([100,100,100]);
243 translate([-60,10,0]) Bar();
244 cube(50,center=true);
246 %translate([50,40, AxlePin_zoffset()]) FtAxlePin();
247 %translate([0,-20,0]) AxleWasher();
251 rotate([0,90,0]) translate([0,0,-spoolwidth/2])
253 cylinder(r=spoolouterrad, h=spoolwidth);
254 translate([0,0,-1]) cylinder(r=spoolinnerrad, h=spoolwidth+2);
258 module Demo(){ ////toplevel
262 color("red") translate([spoolbarlen/2,0,0])
263 rotate([90,0,90]) Trestle();
265 translate([spoolwidth/2 + hubbasethick + spoolinnerslop*2/3, 0, barz])
266 rotate([0,90,0]) AxleWasher();
267 color("orange") translate([axlepin_x, 0, barz])
268 rotate([90,0,90]) FtAxlePin();
270 translate([spoolwidth/2 + hubbasethick + spoolinnerslop*1/3, 0, barz])
271 rotate([0,-90,0]) HubEnd();
274 %translate([0,0,barz]) DemoSpool();
284 //ExtenderPillars(80,12,8, baseweb=true);