The method
Design a knob that fits
Pick the shaft, size the body and choose a grip. The bore is cut to the shaft standard with a clearance you can tune, so the knob goes on snugly. Grips, pointer and skirt are added as one watertight model.
Shafts
Common shaft sizes
| Shaft | Size | Seen on |
|---|---|---|
| 6 mm D-shaft | Ø6 mm, 4.5 mm across the flat | Potentiometers and rotary encoders (Bourns, Alps) |
| 6 mm knurled | Ø6 mm, 18 teeth, split | Encoders such as the Bourns PEC11R |
| 1/4 inch | Ø6.35 mm round | Older and US-made potentiometers |
| 6 mm round | Ø6 mm | Generic shafts with a set screw |
Check your part’s datasheet: shaft lengths and flat lengths vary.
Fit
Getting a snug fit
- Start at 0.15 mm clearance; holes print slightly small on most printers.
- Print bore-down so the hole is round and accurate.
- Too tight? Raise the clearance by 0.05 mm. Too loose? Lower it, or add a drop of glue.
- Measure your printer with the tolerance test generator.
Questions, answered
Will it fit my potentiometer?
Most panel potentiometers and encoders use a 6 mm D-shaft (4.5 mm across the flat) or an 18-tooth knurled 6 mm shaft. Check your part’s datasheet.
Can I add a set screw?
The bore is made to grip by shape. For a set screw, drill and tap after printing or glue the knob in place.
Which material should I use?
PLA works well indoors. PETG is tougher and less likely to crack around the bore.
Sources
Print advice is a starting point drawn from these references, checked on 2026-11-07. Community posts are one maker's experience, not a specification.
- PEC11R rotary encoder datasheet (shaft dimensions) Bourns
- Modeling with 3D printing in mind Prusa Research