OpenSCAD Screw Libraries by syvwlch and aubenc

Poor Man's OpenSCAD Screw Library by aubenc

Screw Library by syvwlch

This morning, you are waking up to two OpenSCAD screw libraries, released within hours of each other. While they were created for slightly different purposes – aubenc‘s focused on traditional 3D printed hardware and syvwlch offering a tool that works for generating threaded rods or lead screws with custom threading angles — we are the richer for having both of them available to us.

If you haven’t yet dived into this parametric design application yet via the OpenSCAD Institute of MakerBlock tutorial series, then this is a great time. These new libraries, and a host of other recent innovations by WilliamAAdams, offer some pretty broad shoulders to stand on to unlock the mysteries of OpenSCAD.

Or you can simply take advantage of the work they’ve done and simply 3D print that bolt you’ve been needing!

This is the Thing page for the Screw Library I am working on. I could be talked into releasing it as Public Domain, but have left it as CC-BY-SA for now, at least until it's fully stabilized. The latest code is available on GitHub here:github.com/syvwlch/Thingiverse-Projects/tree/master/Threaded%20Library Currently, the library allows you to create a threaded rod with a trapezoidal profile, like the Acme or metric lead screws that are so common in CNC machines. The trapezoidThread module creates the rod along Z, centered in X and Y, but not in Z. Same logic as cylinders with center=false. The parameters are the following: length // axial length of the threaded rod // used to calculate how many turns to create // the rod is NOT trimmed to this length!!! pitch // axial distance from crest to crest pitchRadius // radial distance from center to mid-profile threadHeightToPitch // ratio between profile height and pitch // default value is 0.5 profileRatio // ratio between raised profile and pitch // default value is 0.5 threadAngle // angle between the two faces of the thread, in degrees // std value for Acme is 29 or for metric lead screw is 30 // default value is 30 RH // true if thread winds clockwise along shaft // i.e.follows the Right Hand Rule // default value is true clearance // radial clearance, normalized to thread height // default value is 0.1 backlash // axial clearance, normalized to pitch // default value is 0.1 stepsPerTurn // number of facets to create per turn // default value is 24 You can create a triangular profile thread by setting profileRatio to zero, but that is cumbersome. I will create a separate module for that and add it to this page, later. UPDATE: I have added a trapezoidThreadNegativeSpace module to create a negative space of a thread with the proper clearances to screw on, as long as you give it the same parameters. It can add two chamfered holes at the entries. It takes the following parameters on top of the ones needed for trapezoidThread: length // thickness of the part to be drilled out by this object countersunk // depth of the 45 degree chamfers, normalized to pitch // default value is zero, no chamfer I have also added a trapezoidNut module which uses the above negative space module to create a hexagonal lead nut with the right clearances to screw onto any thread that shares the same parameters. It takes the following additional parameters: radius // outer radius of the nut
This thing brought to you by Thingiverse.com
This is my humble take on a screw library to be used in your OpenSCAD scripts. If you are serious, please be, you'll better use thingiverse.com/thing:8793 syvwlch. Anyway, I had this thing for months in the lost projects folder suffering from some serious issues, well some of them remain (it doesn't render) and once the dust has been shaken it compiles quite nice and printable things. Instead of functions, this thing uses loops. Instead of rotate polyhedrons, this thing draws the polyhedron in a new set of points. Just a couple of comments to help using this thing: - I've found that a resolution of something like 1.5mm (PI/2 is what I use the most) works very well for threads that will be used with nuts made with a resolution of 0.5mm. - I've printed the threads with a very low infill (0.2) but for the nuts, setting up this value (I've used 0.45) helped a lot with the overhang issue. More pics @ aubenc.imgur.com/screws_threads_an_other_polyhedron_games
This thing brought to you by Thingiverse.com
Tagged with , , , , , , Leave a comment
 

Leave your comment

 
 
 

xhtml: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>