Skip to content

Instantly share code, notes, and snippets.

@anoblet
Created May 12, 2023 17:00
Show Gist options
  • Save anoblet/a6774f058d60787fbbb574097056043d to your computer and use it in GitHub Desktop.
Save anoblet/a6774f058d60787fbbb574097056043d to your computer and use it in GitHub Desktop.
include <BOSL2/std.scad>
include <BOSL2/threading.scad>
//$fn = 128;
scale = 0.5;
screwDiameter = 15 * scale;
screwHeight = 20 * scale;
screwPitch = screwHeight / 8;
middleDiameter = 40 * scale;
middleHeight = screwHeight * 2;
threshold = 1;
// Top
threaded_rod(d = screwDiameter, height = screwHeight, pitch = screwPitch, $fa = 1, $fs = 1);
// Middle
translate([0, 0, -(screwHeight / 2 + middleHeight)]) {
color("blue") {
cylinder(h = middleHeight, d = middleDiameter);
}
translate([0, 0, -(screwHeight)]) {
intersection() {
color("blue") {
cylinder(h = middleHeight, d = middleDiameter);
}
// Bottom screw
translate([0, 0, (screwHeight / 2) + 1]) {
color("orange") {
threaded_nut(nutwidth=middleDiameter, id=screwDiameter, h=screwHeight, pitch=screwPitch, $slop=0.05, $fa=1, $fs=1);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment