3D Print - Parametric screw cap or lid for tubes and boxes
Loading README and project media…
3D printable cap or lid with screw thread for tubes and round boxes
Creative Commons - Attribution
This uses the screw_extrude function from “customizable round box with threaded lid” by FaberUnserzeit a.k.a. Philipp Klostermann (Thingiverse thing:1648580).
This is an OpenSCAD Customizer for generating screw caps for tubes (toothpaste, gel, …), or lids for round boxes. Some possible use cases:
To generate a cap or lid for your particular needs, first do some accurate measurements on the thing the cap will need to fit on. A calliper is pretty much essential for this, although you might also get somewhere with a simple ruler and some good eyeballing. The more accurate the values, the better the chance your first printed cap will be a perfect fit and you won't need trial-and-error.
Measure these dimensions:
Once you have those measurements, open the .scad file in OpenSCAD and use the OpenSCAD Customizer to enter the values and generate the final STL file. Next to the above parameters, there are many other things that can be customised. The most important parameter is the spacing: if the cap is too sloppy then increase this value, if it is too tight, then lower it. For me, a spacing of 0.40 mm works well.
For certain lids it may be necessary to increase the gap between threads. The gap is expressed as a fraction of the pitch and the higher the value, the more the thread shape will be squished. High gap values may be more difficult to print cleanly.
Other parameters define the overall shape of the cap or lid. You can opt to give the cap a ribbed (knurled) outside for better grip.
For finer screw threads, a layer height of 0.1 mm is recommended. For coarser threads, 0.15 mm may suffice, and for big lids 0.2 mm may even be OK. The caps shown in the photos were printed with 3 perimeters. I used ABS, but in general PETG is probably the best material choice because of its toughness and resilience against chemicals. Of course PLA will also work fine in many cases.
The examples folder contains some pre-rendered models of the presets.
Flexium is for a metal tube of anti-inflammatory gel, and might fit similar tubes.medicalBottle fits many of the typical bottles used in medicine. The polished model has been tweaked in Blender to look nicer. (Should probably be used with an extra seal or wad.)OralB-75ml fits a plastic toothpaste tube and might also fit similar tubes.Talens-paint-50ml fits a small glass jar of paint. This also has a polished model that looks more like the original.The OpenSCAD customizer is released under a Creative Commons - Attribution license and so is every 3D model generated by it. In a nutshell, my interpretation of this license is that you can sell prints of models generated with this OpenSCAD customizer under the following conditions:
If you comply with the above conditions, you do not need to ask permission to sell models based on this customizer. You do not need to share profits, the attribution is all that is required. Of course you are free to show gratitude by sharing whatever you want, for instance through the donation options on my website.
First published.
Added thread gap and increased limits on some parameters.
Added option for extra unthreaded space on inside of cap, and allow bottom to be 0 to generate an open threaded tube.
Added option for hole in the cap.
customizable, customizer, openscad, tube, box, lid, cap, thread