Created
May 12, 2023 17:00
-
-
Save anoblet/a6774f058d60787fbbb574097056043d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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