3 spoolwidth = 80; // fixme needs to be measured
4 spoolinnerrad = 25; // fixme needs to be checked
5 spoolouterrad = 60; // fixme needs to be checked
7 include <doveclip.scad>
22 hubbasestalkwidth = 6;
24 hubbaserad = spoolinnerrad + 15;
25 hubmainrad = spoolinnerrad - spoolradslop;
32 plugwmax = plugwmin + plugh * plugslope * 2;
39 topblockbasedepth = 5;
47 pintaperlen = plugwmax * 0.85;
50 spoolouterpad = AxlePin_holerad()*2 * 1.5;
51 spoolbarlen = spoolwidth +
52 2*(Washer_thick() + hubbasethick + AxlePin_holerad()
53 + spoolinnerslop + spoolouterpad);
55 axlepin_x = spoolwidth/2 + hubbasethick +
56 Washer_thick() + spoolinnerslop + AxlePin_holerad()*0.5;
58 trestleheight = spoolouterrad + spoolradclear - barz;
59 trestlebase = trestleheight * 1.2;
67 bdx = dw / cos(a) + bdy * plugslope;
69 tdx = bdx + tdy * plugslope;
70 translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
71 polygon([[-(plugwmin/2 + bdx), bdy],
72 [-(plugwmax/2 + tdx), plugh + tdy],
73 [+(plugwmax/2 + tdx), plugh + tdy],
74 [+(plugwmin/2 + bdx), bdy]]);
78 module Bar(){ ////toplevel
80 biggestw = spoolw + 50;
85 translate([spoolw/2, 0, 0])
87 translate([-1, -50, -50])
88 cube([spoolw/2+1.1, 100, 100]);
92 translate([-biggestw/2, -50, 0])
93 cube([biggestw, 100, 100]);
96 translate([axlepin_x, 0, -50])
97 cylinder(r=AxlePin_holerad(), 100, $fn=15);
100 translate([0,0,barz]) {
101 translate([-100,0,0])
102 rotate([0,90,0]) cylinder(r=axlerad, h=200, $fn=30);
107 module FtAxlePin(){ ////toplevel
108 AxlePin(axlerad, (axlerad + barwasherrad*2)/3 * 2);
111 module AxleWasher(){ ////toplevel
112 Washer(axlerad, barwasherrad);
115 module Trestle(){ ////toplevel
116 legang = atan2(trestlebase/2, trestleheight);
117 eplen = sqrt(trestleheight*trestleheight + trestlebase*trestlebase*0.25);
118 topblockw = plugwmax + trestleplugd*2 + topblockthick*2;
120 pinholebasew = pinbasew + pindwidth*2;
121 pinholeh = pinmaxh + pindh;
127 rotate([0,0, -90-legang])
128 ExtenderPillars(length=eplen+trestlelegw,
133 translate([-trestlebase/2, -trestleheight, 0])
134 cylinder(r=trestlelegw/2*1.2, h=plugl);
137 translate([-topblockw/2, -topblockbasedepth, 0])
139 topblockbasedepth + plugh + topblockthick
140 + (pinmaxh - pinminh)*0.6 + pindh,
143 translate([-trestlebase/2, -trestleheight, 0])
144 ExtenderPillars(length=trestlebase, width=trestlebaseh*2, height=legw);
146 translate([-300, -trestleheight-50, -1])
147 cube([600, 50, plugl+2]);
150 Plug(d=trestleplugd);
153 translate([0,0,plugl/2]) rotate([0,rot,0]) translate([0,0,-plugl/2]) {
155 plugh + pindh - (pinmaxh - pinminh)*0.75,
156 (plugl - pinholebasew*2)/3]) {
157 translate([-(topblockw*0.25+1), 0, pinholebasew/2])
158 rotate([-90,0,0]) %Pin();
159 translate([-(topblockw+1), 0, 0]) {
161 linear_extrude(height = topblockw*1.0+2) {
162 polygon([[-1.0 * pinholebasew, -0.01],
163 [-0.5 * pinholebasew, pinholeh],
174 module Pin(){ ////toplevel
179 linear_extrude(height=0.1) {
182 [pinbasew*0.5*(pinminh/pinmaxh), 0]]);
184 translate([0,0,pintaperlen])
185 linear_extrude(height=pinstraightlen) {
196 module HubEnd(){ ////toplevel
197 thick = hubmainthick+hubbasethick;
200 for (ang=[0 : 60 : 359]) {
202 translate([hubmainrad - hubwalls/2, -hubbasestalkwidth/2, 0])
203 cube([hubbaserad - (hubmainrad - hubwalls/2),
204 hubbasestalkwidth, hubbasethick]);
207 cylinder(r=axlerad+hubwalls, h=thick);
208 cylinder(r=hubmainrad-0.1, h=hubwebthick);
210 cylinder(r=hubmainrad, h=thick, $fn=100);
212 cylinder(r=hubmainrad-hubwalls, h=thick+2);
215 cylinder(r=hubbaserad, h=hubbasethick, $fn=50);
217 cylinder(r=hubbaserad-hubwalls, h=hubbasethick+2);
221 cylinder(r=axlerad+axleslop, h=thick+2, $fn=50);
226 module TestKit(){ ////toplevel
227 translate([30,0,0]) Pin();
228 translate([30,30,0]) Pin();
229 translate([0,40,0]) intersection(){
231 translate([-50,-10,-1]) cube([100,100,100]);
234 translate([-60,0,0]) Bar();
235 cube(50,center=true);
240 rotate([0,90,0]) translate([0,0,-spoolwidth/2])
242 cylinder(r=spoolouterrad, h=spoolwidth);
243 translate([0,0,-1]) cylinder(r=spoolinnerrad, h=spoolwidth+2);
251 translate([spoolbarlen/2,0,0]) rotate([90,0,90]) Trestle();
252 translate([spoolwidth/2 + hubbasethick + spoolinnerslop/4, 0, barz])
253 rotate([0,90,0]) AxleWasher();
254 translate([axlepin_x, 0, barz]) rotate([90,0,90]) FtAxlePin();
257 %translate([0,0,barz]) DemoSpool();
267 //ExtenderPillars(80,12,8, baseweb=true);