Skip to content

Instantly share code, notes, and snippets.

@makevoid
Last active December 21, 2015 14:49
Show Gist options
  • Select an option

  • Save makevoid/6322363 to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/6322363 to your computer and use it in GitHub Desktop.
rename to scad! Resized linear bearing for handle spool (on a spool handler made from a kitchen roll holder)
// find source here: http://www.thingiverse.com/thing:13631
// you can find an up to version of this, here: https://gist.github.com/makevoid/6322363
$fn=32;
lm8uu_length = 30;
lm8uu_id=19;
lm8uu_od=31.0;
id_clearance = 1;
n = 5;
layer_height = 0.2;
module bearing() {
difference() {
cylinder(r=lm8uu_od / 2, h=lm8uu_length - layer_height);
difference() {
cylinder(r=lm8uu_id / 2 + id_clearance, h=lm8uu_length - layer_height);
linear_extrude(height = lm8uu_length - layer_height, twist = 540 / n, slices = (lm8uu_length - layer_height))
for (i=[0:360/n]) {
rotate(360 / n * i)
translate([lm8uu_id / 2 / sqrt(2), lm8uu_id / 2 / sqrt(2)])
square([lm8uu_id, lm8uu_id]);
}
}
translate([0, 0, -1 + layer_height])
cylinder(r1=lm8uu_id / 2 + id_clearance + 1, r2=0, h=lm8uu_id / 2 + id_clearance + 1);
translate([0, 0, lm8uu_length - layer_height * 2 - (lm8uu_id / 2 + id_clearance)])
cylinder(r2=lm8uu_id / 2 + id_clearance + 1, r1=0, h=lm8uu_id / 2 + id_clearance + 1);
translate([0, 0, -1])
cylinder(r=4.0, h=lm8uu_length + 2);
}
}
bearing();
// note: if you don't have a openscad syntax highlighting, use R as it has similar tokens (words)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment