Bench note

Knob feel that survives the second prototype

The knob you regret is the one that wobbles

You wire up a rotary encoder, spin it once, and think "good enough." Two months later, you're drilling a new enclosure because the shaft play drives you insane every time you adjust a setpoint. Knob selection is where ergonomics meet honesty: a control that feels cheap will remind you of that compromise every single time you touch it.

Start with detent count. A 24-position encoder gives you crisp, countable steps for menu navigation or coarse tuning. Smooth encoders work for continuous parameters like volume or speed, but they lack the mechanical feedback that tells your hand where it is without looking. If your interface shows discrete values, match the detents to the range—12 positions for hour selection, 20 for gain in 5% steps. The tactile click should confirm the electrical transition, not fight it.

Shaft diameter and length matter more than datasheets admit. A 6mm shaft with a 15mm bushingless mount will wobble unless your panel is thick ABS or you add a bezel nut. D-shafts resist slippage better than knurled rounds when your knob sees real torque—think panel-mount encoders driven by large aluminum knobs. Measure the panel thickness before you order; a shaft that's 5mm too short turns into a threading nightmare and a trip back to the supplier.

Mounting that doesn't crack the board

Through-hole encoders with pin headers are easy to prototype but fragile under side load. Every time you twist the knob, you're levering the solder joints. If the encoder sits on a PCB, add a panel bracket or a shaft coupler to a panel-mount version instead. Let the enclosure carry the mechanical stress, not your solder.

Panel-mount encoders with threaded bushings distribute force across the faceplate. Use a lock washer and a jam nut—hand-tight, then a quarter turn with a wrench. Over-torque cracks FR4 or splits 3D-printed panels. If you're mounting to thin material, a square aluminum backing plate behind the panel spreads the load and prevents the nut from pulling through under repeated use.

For builds where the knob must sit flush or recessed, consider encoders with snap-in plastic bezels. These lock into a panel cutout without threads, but they require a precise hole diameter—usually 16mm or 24mm. A step drill or a chassis punch gives you cleaner results than a spade bit and hope.

Electrical interface you'll decode once

Most rotary encoders output quadrature: two square waves, A and B, 90 degrees out of phase. Clockwise rotation leads A ahead of B; counterclockwise reverses it. Your firmware counts edges and tracks direction. This is well-trodden ground, but the mistake is assuming the encoder's pull-ups are strong enough. Many modules use 10kΩ resistors that can't drive long wires or high-speed polling. Add 2.2kΩ pull-ups at the microcontroller end if you see missed counts during fast spins.

Some encoders include a push-button switch on the shaft. Debounce it in firmware—20ms is safe. If you're reading the switch and the encoder in the same interrupt service routine, you're asking for timing conflicts. Poll the button in your main loop and handle quadrature in a dedicated interrupt or hardware decoder peripheral.

The knob itself

Aluminum knobs with set screws feel substantial but require a flat or D-shaft to resist rotation. Plastic knobs with brass inserts are lighter and cheaper; they're fine for low-torque applications but will strip if you over-tighten the set screw. Knurled edges give you grip; smooth tops with pointer lines look cleaner but can be slippery when your hands are cold or greasy.

Diameter affects perceived precision. A 20mm knob on a 24-detent encoder feels notchy; a 40mm knob on the same encoder feels smooth and deliberate. If you're tuning a PID loop or scrolling through a menu, bigger is better. For space-constrained panels, 15mm knobs work, but anything smaller starts to feel like a toy.

Test it before you drill production holes

Breadboard the encoder with your firmware and a temporary knob. Spin it fast, spin it slow, reverse direction mid-turn. If you see count errors, check your pull-ups and interrupt priority. Mount the encoder to a scrap panel with the same thickness as your final enclosure. Attach the final knob and live with it for a week. If it feels wrong—wobbly, too stiff, or mushy—change it now, not after you've committed to a drilled faceplate and a GitHub release.

For related mechanical sanity, see screw terminals that won't spin your wire and panel cutouts that won't haunt your next build. When your control panel needs to survive more than one prototype, the knob is where you prove you care about the details that matter.

← Full log