OpenSCAD has default values for the number of faces in its representations of spheres. When the command "sphere(r=2);" is entered a 16 sided polyhedron is formed that looks like two seven sided pill boxes stuck together. Pill_Box_01.stl is made from a portion of this 16 sided polyhedron. It has sloping sides, and while attractive, is difficult to print. Pill_Box_02.stl is a simpler box with seven vertical sides. It has room for a few more pills and is perhaps easier to print. Both boxes are labeled with the days of the week.

Two lids, held in place by a pin, are provided. One is a simple flat lid with a built in pin. The second lid has raised edges and uses a separate pin. Images of the lids are shown at the left. Code for the lid with pill pockets is included in lid_nice.scad.

The text comes from Inkscape dxf files. Information as to how this was done is included as comments in the scad files - see the Sunday module. There should be enough detail in the comments to reproduce the text files. The most important thing is to make sure that the text is centered. The rotate and translate commands in the text positioning modules require centered text. I used polymaker's "Inkscape OpenSCAD DXF Export",(thing:14221), to make the dxf files.

The openSCAD files that created the boxes and lids are available below. I've included comments which I hope will be helpful. It's easy to move the text around, to change from raised to indented text, or to leave the text off altogether. Changing to indented text, by moving the print statement from inclusion in a union statement to inclusion in a difference statement, might result in files which print more easily. I've added the dxf files zipped together, They take some time to create and are required if anyone wants to experiment with the openSCAD files.

Download Pill Boxes 3D Model Files

3D Categories
Discuss this model in the 3D-Printing-Community