Poor man's openscad screw library
by aubenc, published
Due to some bugs in the initial version, a revision of the OpenSCAD library has been uploaded, please use "polyScrewThread_r1.scad". Thanks a lot to mechadense for reporting the bugs!
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
Recent Commentsview all
Thanks to you for using it!
M3 is quite a challenging size to be printed. Did you just use the OpenSCAD "as is" or as a library? I mean, this script is not meant to produce ISO thread profiles (there's a turnaround somewhere down in the comments).
Nice small M3 screw, thanks for uploading the pic!!
Thanx, I used it to create a small M3 bolt. Didn't run very smooth but the thread is just enough to get a metal nut over it.
Well, I'm afraid I did the same: too quick! :( :)
My changes as in the "_r1" version should work but may have unwanted results if the thickness of the hex block is too small :(
the code in the comment above will just fail in the same circumstances (thin hex block).
Anyway, this is an old thing asking for some changes, it was done when a 45 degs overhang was possible but not so easy and "fine res" was about 0.35mm for the layer height.
I may come soon with a customizer friendly new thing (from end to end)
Liked Byview all
Give a Shout Out
Drop "polyScrewThread_r1.scad" into your OpenSCAD library folder or the folder where you are writing your OpenSCAD script.
Use polytests.scad (*) as a user's guide, refference, whatever.
(* - Depending on how old/new is your OpenSCAD you may need to change the line where the library is included, replace "include" by "use")
Because this thing is made without much science, you'll need to tweak a little bit, sorry...
First print a nut (high res, see comments above), tweak the infill and/or the degrees for the shape of the thread.
Once your nut prints fine, print a short threaded rod, try to change the resolution of the thread, infill,... use your imagination.
I printed the provided examples and they all work fine without any cleaning, that's the reason why they look so ugly in the pictures.
Design bolted things.
Print bolted things.
Keep on bolting!
You must be logged in to post a comment.