Skip to content

Instantly share code, notes, and snippets.

@jwygralak67
Last active December 14, 2015 18:28
Show Gist options
  • Save jwygralak67/5129108 to your computer and use it in GitHub Desktop.
Save jwygralak67/5129108 to your computer and use it in GitHub Desktop.
An OpenScad design for a hanger to hold my coffee scoop on the side of the jar I store my coffee beans in. It is parametric, although wholly cryptic.
id = 72;
od = 80;
os = 72;
id2 = 10.3;
od2 = 18.3;
th=4;
sep = os - (id2/2) - (id/2);
theta = ((th + 0.5) / (od / 2)) * 360 / 6.28;
linear_extrude(height=th)
difference(){
union(){
hull(){
circle(r=(od/2));
translate([os,0,0]) circle(r=od2/2);
}
rotate([0,0,theta]) translate([-od/2, 0]) circle(r=th);
rotate([0,0,-theta]) translate([-od/2, 0]) circle(r=th);
}
circle(r=(id/2));
translate([id/2 + sep/2,0,0]) circle(r=(sep/2 - 4));
translate([os,0,0]) circle(r=id2/2);
translate([-od/2-2,0]) square([th*3+2,1],center=true);
rotate([0,0,theta]) translate([-od/2,0]) circle(r=th/2);
rotate([0,0,-theta]) translate([-od/2,0]) circle(r=th/2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment