Skip to content

Instantly share code, notes, and snippets.

@silentbicycle
Created March 25, 2014 23:55
Show Gist options
  • Save silentbicycle/9774077 to your computer and use it in GitHub Desktop.
Save silentbicycle/9774077 to your computer and use it in GitHub Desktop.
3D-printable cable clip
USB_A_w = 12; // USB-A clip width
h = 2;
th = 3;
w = 73.25;
d = 30;
ith = .4*d - th;
union() {
// end
difference() {
color("red") cylinder(h, d/2, d/2);
translate([0, -d/2, -1]) color("blue") cube([d/2, d, h + 2]);
translate([0, 0, -h/2]) cylinder(h=2*h, r=d/4);
}
// posts
translate([0, d/2 - th, 0]) cube([w, th, h]);
translate([0, -d/2, 0]) cube([w, th, h]);
// teeth
for (xo = [USB_A_w/3 : USB_A_w : w - th]) {
translate([xo, d/2 - ith - th, 0]) cube([th, ith, h]);
translate([xo + USB_A_w/2, -d/2 + th, 0]) cube([th, ith, h]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment