Closed facorazza closed 2 years ago
If you build the internal and external threads to nominal size they won't fit each other properly because there will be no clearance. The tolerance value has been added so the radius of the bolt can be reduced to make it fit properly. You have a tolerance value of 0.3mm (on radius) so the measured size of the bolt should be 4 - (2 * 0.3) = 3.4 mm (+/- error)
Try setting tolerance to 0 and see if you like it better. However- it's unlikely the nut/bolt will fit each other.
If you build the internal and external threads to nominal size they won't fit each other properly because there will be no clearance. The tolerance value has been added so the radius of the bolt can be reduced to make it fit properly. You have a tolerance value of 0.3mm (on radius) so the measured size of the bolt should be 4 - (2 * 0.3) = 3.4 mm (+/- error)
Try setting tolerance to 0 and see if you like it better. However- it's unlikely the nut/bolt will fit each other.
Thanks. I've had the chance to play a bit with the tolerance and that does indeed create bolts and nuts closer to the standard size.
In my case printing with a tolerance of 0.05mm resulted in a snug fit but slightly susceptible to imperfections. I then tried with 0.1mm and it was a bit looser but still usable. So I suppose the best value lies in-between. I got a bit distracted by the suggested values in the example code which suggests a tolerance of 0.3mm. Even the 0.2mm tolerance that's supposed to be a "tight fit" is way too large. I'm not sure if larger pieces require looser tolerances. Perhaps we could adjust the comments in the example code accordingly.
I'm using an Ender 3 v2.
The tolerance is going to be a function of the printer, and maybe the slicer. I'm running an FDM with a 0.8mm nozzle and find outside dimensions tend to be a bit larger than nominal. In any case, you play with the tolerance until you get a fit you like.
I'm playing a bit with the generation of bolts, but there might be an issue with the generation of the STLs.
For example, when generating an M4x0.7 bolt, I get a diameter closer to 3.5mm. Initially, I thought it was an issue with my 3d printer or with the filament I was using, but opening the STL in freeCAD shows that it is indeed the generated STL that has the wrong dimensions. The diameter of the corresponding nut is around 3.8mm so it's closer to the expected 4mm. Obviously, it's way too big for the generated bolt.
Code: