OpenSCAD ISO metric thread library / functions
Description
Instructions
Photos should show black and white nuts and bolts in M6, M8 and M10 sizes, black versions are standard bought steel, white versions are ones I printed in white ABS.
I have a Reprap Metric Mendel Prusa with LM8UU bearings, fishbone wade extruder, own design hot-end, MKII hot bed. Only got it going yesterday, not yet calibrated awaiting micrometer from ebay.
This is my first design in OpenSCAD, maths in not my strong point, but I think these are as close to accurate ISO Metric as I can get.
Hot-end has 0.5mm extrusion hole, used 0.2mm layers, I had to go down to 5mm/s speed to get these printed, I have not yet tried smaller sizes.
OK, so that was a shock, knocked up the original file quickly for self-use, uploaded as an after thought, did not expect that much interest!
There have been some concerns with CGAL rendering times with bolts.
So, see new version IsoThread_20120823.scad.
I have moved positional calculations into variables to they are now calculated only one per thread part and I have now included quality tables.
Results:
CGAL Rendering times
DELL Vostro Desktop - Intel i5-2400 @ 3.10 GHz - 16GB RAM
Original 15/07/2012
Windows 7 Home Premium - OpenSCAD 2012.04.01 (git c869c6e):
M10 nut 7 secs
M8 nut 9 secs
M6 nut 4 secs
M10x16 5 mins 35 secs
M8x16 8 mins 43 secs
M6x12 7 mins 27 secs
Ubuntu 10.04 LTS - OpenSCAD 2012.02.28:
M10 nut 4 secs
M8 nut 4 secs
M6 nut 2 secs
M10x16 2 mins 52 secs
M8x16 4 mins 36 secs
M6x12 3 mins 45 secs
New 23/08/2012
Windows 7 Home Premium - OpenSCAD 2012.04.01 (git c869c6e):
M10 nut 9 secs
M8 nut 10 secs
M6 nut 3 secs
M10x16 2 mins 16 secs
M8x16 2 mins 7 secs
M6x12 1 mins 4 secs
I may re-visit again later, I have an idea that 'may' work that could make it faster.
You must be logged in to post a comment.
I have printed the M8 hex nut. The thread work perfect! but the diameter and height are wrong. I have changed them according to :
http://www.fairburyfastener.co...
and now the nuts are exactly as the metal ones :-) I have only tested the M8. The diameter and height I have changed in the openscad are:
* Diam: [8,14.60]
* Hi: [8,4.5]
Now they work perfectly wel with the hex key (#13)
Thank you very m
uch for your work! :-)
I know, standards are nice, but so many of them :-(
Threads were ok, Wikipedia shows the maths of ISO threads, but even there, the standards are not clear, coarse and fine, some sizes missing so added by France etc. I just put in all the coarse sizes.
Then I came to hex head sizes and I did actually find the fairbury fastener link and used it to create all the tables. Then I wanted to test, my son had a set of Rolson nuts and bolts M4 to M10 :-) The sizes of the Rolson nuts and bolts are different! So I modified the tables to reflect the Rolson sizes.
The photos show they now match, the black nuts and bolts are Rolson steel, the white are my printed white ABS versions.
But I specifically put all the important sizes in tables so they can be easily modified.
Have Fun :-)
License

Just try and i got a problem for rendering bold (nuts are fine)... bold compile but do not render (rendering seems to enter an infinite loop), so i can't make a STL.
Using OpenSCAD 2012.7.14 for MacOS.
This sounds like complexity problem, threads on nuts are quite short, threads on bolts are usually longer. The threads are made out of lots of polygons, trianguar on ends, rectangular on sides. Either wait and it will render, or look for line in ISOThread.scad:
module thread_out(dia,hi,thr=32)
3rd parameter is complexity, 32 means 32 polygons for each turn of thread, reduce this to 15 and try again, you should see the effect on a normal compile.