Pill dispenser with roller shutter: design and print
A pill dispenser with a roller shutter
A pill dispenser of this kind is a flat box with a sliding shutter. Inside are two rows of small compartments, and around the outside runs a flexible strip with a window in it. You push the strip around the box until the window sits over the compartment you want. This generator builds that box to your measurements: 2 to 8 compartments, the height you need, rounded corners, numbers or your own text on the outside, and a color for every part.
The compartments are plain open pockets, so the box also holds beads, spare buttons or small screws. You’ll find finished designs in the examples, for instance the basic form with six compartments, the compact box with four and the slim box with eight.
Please read this first
Some things are not proven, and we would rather say so than let you guess.
- Nothing has been test-printed. The geometry is checked by machine: the parts are watertight, they sit on the bed, and PrusaSlicer adds no supports to any of the thirteen examples. But nobody has printed the box and closed it. The clips, the travel of the shutter and the bending around the corners are unproven. “Clearance” (0.2 mm by default) is a starting value, not a tested one. Print a test before you rely on the box.
- A practical organizer only. It is not a medical device. It does not remind you of anything, count anything or check anything, and we make no claims about dosing, accuracy, child resistance, moisture protection or contact with food. Labels are plain text and say nothing about what is inside. What goes into a compartment is up to you.
- Printed plastic has not been shown to be safe for medicine. A print has a rough surface with tiny gaps between the layers that are hard to clean, and nobody has checked this one. Follow your pharmacist’s or the package’s advice on storage (some tablets must stay in their blister), and keep the dispenser away from children. The shutter is a plain sliding part, and the box is not child-resistant.
- The shutter is capped at 175 mm. It prints flat, so it has to fit the bed. Larger sizes shrink with a warning (see “The 175 mm limit”). The big-box variant of the original model is therefore out of reach.
- Accessibility is untested. The grip ribs and the two end tabs are meant to give a finger something to push. Whether they suit stiff or weak hands, we have not tried, and we make no claim.
How the generator works
The generator runs entirely in your browser. You set the numbers, the preview updates with every change, and nothing is uploaded. Your design lives in the link behind “Share”, so you can open it again later or send it to someone. At the end you download an STL or a 3MF file.
The design is based on a roller shutter model by Ulrich Bär (see “Origin and licenses”). We rebuilt it as a stack of thin 2D slices so that it runs fast in the browser. The walls are 0.8 mm thick (two lines of a 0.4 mm nozzle), the floors 1.2 mm.
Three parts on one plate
- The body is a plate with a groove along its rounded outline. The two end walls and the dividers stand on it. The compartments are open towards the two long sides.
- The lid is a second plate with the same groove and a rim. It is printed rim up and turned over when the box is closed. Its clips are meant to catch on the end walls and the divider ends.
- The shutter is a flat strip, 1 mm thick, with staggered slits that are 0.6 mm wide, so that it can bend around the corners. It runs in the grooves of both plates and has a raised tab at each end. It is shorter than the way around the box, and that gap is the window.
The intended order is: lay the shutter into the groove of the body, wrap it around the end walls, then press the lid on from above. Parked over an end wall, the window shows nothing. Slid along a long side, it opens one compartment after the other and then moves on to the second row. Small bumps on the end walls are meant to give a light click as the slits pass over them. We have not felt that click yet.
The parts are laid out side by side. If all three would be wider than 175 mm, body and lid are placed one behind the other and the shutter stays beside them. With the defaults the plate is 145 × 166.2 mm.
Choosing the size
The table shows some of the examples. “Closed” is the height of the finished box, which is “Height” plus 2.8 mm. The print numbers come from a slice in PrusaSlicer for a Prusa MINI, 0.20 mm SPEED, Prusament PLA, and are rounded to 0.1 g and down to whole minutes.
| Example | Box, closed | One compartment, about | |
|---|---|---|---|
| Six, 60 × 50 mm | 60 × 50 × 17.8 mm | 16.1 × 20.6 × 15.4 mm | 59 min, 17.5 g |
| Four, compact | 40 × 45 × 14.8 mm | 14.9 × 18.1 × 12.4 mm | 40 min, 10.1 g |
| Two, small | 30 × 40 × 14.8 mm | 21.4 × 15.6 × 12.4 mm | 31 min, 6.6 g |
| Eight, slim | 64 × 40 × 17.8 mm | 12.7 × 15.6 × 15.4 mm | 59 min, 16.5 g |
| Six, tall | 60 × 50 × 27.8 mm | 16.1 × 20.6 × 25.4 mm | 1 h 21 min, 22.7 g |
| Four, wide window | 58 × 52 × 20.8 mm | 23.9 × 21.6 × 18.4 mm | 1 h 1 min, 18.2 g |
The editor shows the same numbers for your design under “Box”: “One compartment: about …” and “Closed box: …”. Measure what you want to store and compare it with that line. The rounded pocket corners and the 1.5 mm dividers take some room, so leave a margin. We do not promise that anything fits.
Designing the box
Box
“Width” (30–85 mm, default 60 mm) runs along the row of compartments, “Depth” (30–85 mm, default 50 mm) across the two rows. “Height” (10–40 mm, default 15 mm) is the free height between the plates and also the width of the shutter. “Corner radius” (8–25 mm, default 15 mm) rounds the outline, and the shutter bends around it: smaller corners bend it harder, and how much your filament takes is untested. “Compartments” (2–8, default 6) go in steps of two, because they sit in two rows.
Shutter and window
“Window” (8–30 mm, default 16.75 mm) is the length of the gap in the shutter. Compare it with the compartment width: a wider window shows parts of two compartments, a narrower one only part of one. Since the window parks over a straight end wall, it can be at most “Depth” minus 19 mm; a longer one is cut back with a warning. The same goes for a corner radius that does not fit next to the window.
“Clearance” (0.1–0.4 mm, default 0.2 mm) is the play between the walls and the lid. The clips grow with it. Printers differ, so try it with a test print. “Grip ribs” puts low ribs on the outside of the shutter. The two end tabs stay either way.
The 175 mm limit
The shutter is as long as the way around the box minus the window: 166.2 mm with the defaults. It prints flat and may be at most 175 mm long. If your numbers would make it longer, the generator shrinks the box and shows the warning “The shutter is printed flat and may be at most 175 mm long, so the box was reduced to …”. With the default corner radius and window, width plus depth may be about 114 mm at most, for example 60 × 54 mm. A larger corner radius or a longer window gains a few millimeters, because rounded corners shorten the way around.
Labels and patterns
Under “Labels and pattern”, “Labels” offers “Numbers”, “Own text” and “None”. The texts sit on the outside of the plates, one per compartment, and they run around the box in the order the window travels. In “Own text” mode, “Label texts” takes comma separated entries such as A,B,C,D,E,F (up to 64 characters). “Labels on” picks “Both”, “Lid” or “Body”. “Label size” (4–14 mm, default 8 mm) is the height of capital letters; labels that do not fit their compartment are made smaller, and the editor tells you the size. “Font” offers the bundled fonts, or you upload your own, which stays in your browser.
“Pattern” adds a shallow “Hexagons” or “Triangles” pattern around the labels on both plates. Examples: weekdays, letters, hexagons and the plain box without labels.
Colors and multi-material
The colors are “Body”, “Lid”, “Shutter”, “Labels (inlay)” and “Pattern (inlay)”. Lid and shutter follow the body color until you set their own. Labels and pattern without a color are engraved one layer (0.2 mm) deep. Give them a color and they become separate parts, inlaid two layers (0.4 mm) deep, as in the color-inlay numbers and the gold triangles.
Download “Multi-color 3MF (PrusaSlicer)” for an MMU3, XL or Core One, or “3MF (Bambu Studio / OrcaSlicer)” for the AMS. “STL per color (ZIP)” gives each color as its own file. Without a multi-material setup, set “Parts” under “Printing” to one part at a time, for example “Shutter only”, and swap the filament between jobs. A color change at a layer height cannot color the labels, so leave them engraved.
Printing tips
- Test the shutter first. Print “Shutter only” (about 18 min and 2.3 g with the defaults) and bend it by hand around a round object of your corner radius. If the strip cracks or the slits are closed, change material or settings before you print the box. The single shutter example shows it.
- Orientation: as shown. The body’s walls and the lid’s rim point up, and the shutter lies flat. No supports; PrusaSlicer added none in the test slices.
- Layer height: 0.2 mm. “Height” moves in whole millimeters, so the levels of the box fall on that grid.
- Material: PLA is the easy choice. A thin slitted strip may crack when it bends, and PETG is often more forgiving. We have tried neither.
- Cleaning and care: the box is not sealed, and we do not claim it keeps out moisture or light. Do not put it in a dishwasher or leave it in a hot car.
Origin and licenses
The layout of body, lid and shutter with its staggered slits, the shutter length and the basic dimensions come from the Roller shutter pill dispenser by Ulrich Bär (Printables handle Jack), published under CC0. We rebuilt them for the browser with thicker walls, size limits, new clips and a label and pattern system. The Voronoi and Cairo patterns of the original are not included. All license texts, including those of the fonts, are on the licenses page.
Now design your dispenser or browse the examples. For a weekly box with a lid for every day, try the pill organizer.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Box | |||
| Width | 60 mm | 30 – 85 mm | Outer size along the row of compartments. |
| Depth | 50 mm | 30 – 85 mm | Outer size across the two rows. It must leave room for the window on the straight end walls. |
| Height | 15 mm | 10 – 40 mm | Free height between the plates, which is also the width of the shutter. |
| Corner radius | 15 mm | 8 – 25 mm | The shutter bends around these corners. Smaller corners bend it harder, and how much your filament takes is untested. |
| Compartments | 6 | 2 – 8 | Two rows with 1 to 4 compartments each. |
| Shutter | |||
| Window | 16.75 mm | 8 – 30 mm | Length of the gap in the shutter. Compare it with the compartment width below: a wider window shows parts of two compartments. |
| Clearance | 0.2 mm | 0.1 – 0.4 mm | Play between the walls and the lid. Printers differ, so test it with a print; the clips grow with it. |
| Labels and pattern | |||
| Label size | 8 mm | 4 – 14 mm | Height of capital letters. Labels that do not fit their compartment are made smaller. |
Frequently asked questions
Is this a medical device, and is it safe for storing medicine?
No. It is a practical organizer and has not been tested for medical use. Printed plastic has not been shown to be safe for storing medicine, so follow your pharmacist’s or the package’s advice on storage, and keep the dispenser away from children. We make no claims about dosing, accuracy, child resistance or moisture protection.
Will the clips and the shutter work?
We don’t know yet. Nothing has been test-printed, so the clips, the travel of the shutter and the bending around the corners are unproven. Print the shutter alone first (“Parts”, then “Shutter only”) and bend it around the corner before you print the whole box.
Why can’t I make the box bigger than about 114 mm in width plus depth?
The shutter prints flat and is capped at 175 mm, so it has to fit the bed. At the default corner radius and window, width plus depth may be about 114 mm at most. Larger inputs shrink the box and the editor shows a warning.
Do I need supports?
No. We sliced all thirteen examples in PrusaSlicer with automatic supports switched on, and it added none. Body, lid and shutter all lie flat on the bed.
Can I print the dispenser in several colors?
Yes. Body, lid, shutter, labels and pattern each take a color of their own. Download “Multi-color 3MF (PrusaSlicer)”, “3MF (Bambu Studio / OrcaSlicer)” or “STL per color (ZIP)”. Without a multi-material setup, print the parts one after another in different filaments.
Where does the design come from?
From the “Roller shutter pill dispenser” by Ulrich Bär (Printables handle Jack), published under CC0. We rebuilt it for the browser and added the size limits, the clips, the labels and the patterns.
Origin & license
- Roller shutter pill dispenser by Ulrich Bär (Jack) · CC0 1.0 · code ported – The layout of body, lid and shutter with staggered slits, the shutter length and the basic dimensions are taken from the model and rebuilt for the browser; walls raised to 0.8 mm. Clips, labels and patterns (hexagons, triangles) are new.