Skip to content

Instantly share code, notes, and snippets.

@ednisley
Created May 3, 2023 23:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ednisley/4f92abfe18954bda0ec49d6550f226e2 to your computer and use it in GitHub Desktop.
OpenSCAD source code: Adapter ring from 25 mm Tour Easy tube to 35 mm chain catcher / guide clamp
// Chain catcher adapter ring
// Ed Nisley - KE4ZNU - 2023-05
/* [Hidden] */
ThreadThick = 0.25;
ThreadWidth = 0.40;
HoleWindage = 0.2;
Protrusion = 0.1; // make holes end cleanly
function IntegerMultiple(Size,Unit) = Unit * ceil(Size / Unit);
ID = 0;
OD = 1;
LENGTH = 2;
inch = 25.4;
//----------------------
// Dimensions
TubeOD = 26.0; // frame tube with silicone tape
Clamp = [35.0,39.0,12.0]; // Chain catcher clamp ring
Flange = [Clamp[ID],Clamp[OD],3*ThreadThick];
Kerf = 1.0;
Offset = (Clamp[ID] - TubeOD)/2 - 3*ThreadWidth;
NumSides = 2*3*4;
//-----------------------
$fn=NumSides;
difference() {
union() {
cylinder(d=Flange[OD],h=Flange[LENGTH]);
cylinder(d=Clamp[ID],h=Clamp[LENGTH]+Flange[LENGTH]);
}
cube([2*Flange[OD],Kerf,3*Clamp[LENGTH]],center=true);
translate([0,Offset,0])
cylinder(d=TubeOD,h=3*Clamp[LENGTH],center=true);
}
@ednisley
Copy link
Author

ednisley commented May 3, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment