This code is a development of the ideas in https://www.thingiverse.com/thing:2163938.
Openscad source that can be used to generate several types of nice looking knobs for electronic projects. Knobs with both 6-32 setscrews using an embedded nut or the D shape push on shaft style are configurable. These knobs resemble the style used on Icom HF radios. The knobs include a tapered skirt that hides the control mounting nut.
// Change History from original:
// - reformatted for easier readability
// - commented code to help with modification
// - added option to add/delete filler for shafts with flats
// - added option for 6-32 set screw using trapped 6-32 nut
// - number of flutes scales with knob size
// - Mar 14 2019 - made knob taper adjustable + or -
Hatchbox or others PLA
glow in the dark green
Rafts may be useful if you have marginal bed adhesion as knobs are printed upside down.
Knobs look great printed in black, or they can be printed in colours to complement your project. My test knobs are white, that's what was loaded in the printer. Rendering these knobs in scad takes quite a while due to the complexity of the fluting.