Logic & Relay

Rotary Encoder With Push Button Buying Guide

A rotary encoder with push button combines incremental quadrature output with a momentary shaft switch, letting one control handle rotation and selection. The primary trade-off is mechanical: budgetKY-040-style modules use open carbon-track contacts and detents that wear, while sealed optical or magnetic encoders with metal shafts survive millions of cycles. Choose a module only for breadboard prototyping; choose a panel-mount or sealed unit for anything that will be used daily.

Encoder Type:Incremental quadrature (A/B) + pushDetents Per Rev:20 typical (12-24 common)Shaft / Bushing:6mm or 6.35mm threaded metalSealing / Life:Open module vs IP-rated sealed 1M+ cycles

Key takeaways

  • Quadrature output A/B plus a separate push switch: 20 detents per revolution is the common KY-040 default, while precision optical units offer 100–600 pulses per revolution.
  • KY-040 modules use exposed carbon-film wipers and a threaded metal bushing with nut; they are breadboard-friendly but not sealed against dust or moisture.
  • Sealed magnetic and optical encoders specify 1M–10M rotational lifecycles and IP54–IP67 ratings; open modules typically last only tens of thousands of cycles.

At a glance

Price range
Varies by listing
Category
Sensors, Encoders & Machine Safety
Last updated
Nov 28, 2026

Current offers

No live listings right now. Search directly on:

Highlights

  • Quadrature output A/B plus a separate push switch: 20 detents per revolution is the common KY-040 default, while precision optical units offer 100–600 pulses per revolution.
  • KY-040 modules use exposed carbon-film wipers and a threaded metal bushing with nut; they are breadboard-friendly but not sealed against dust or moisture.
  • Sealed magnetic and optical encoders specify 1M–10M rotational lifecycles and IP54–IP67 ratings; open modules typically last only tens of thousands of cycles.
  • Push-button circuits are usually independent of the encoder contacts, so wiring a KY-040 as a menu/select control requires pull-ups on both the A/B lines and the switch line.

Best use cases

  • Best fit: Arduino/ESP32 breadboard prototypes and menu-select demos — pick a 5-pack of KY-040 modules with threaded shaft and nut; skip sealed industrial encoders unless the build will be exposed to dust or vibration.
  • Best fit: panel-mount front-panel controls on enclosures — choose a 6mm or 6.35mm metal-shaft encoder with threaded bushing and nut, plus a matching knob; skip bare PCB modules that lack panel-mount threads.
  • Best fit: volume/selection knobs on audio gear or lab instruments — select a 20–24 detent encoder with push switch and confirm the shaft length clears the front panel thickness.
  • Wrong fit: washdown, outdoor, or high-vibration machinery — open carbon-track modules fail quickly; specify an IP-rated sealed encoder with a metal shaft and bearing.

Buying tips

  • Match shaft diameter to knob bore: 6mm shafts need 6mm knobs, while 6.35mm (1/4-inch) shafts accept common guitar-style knobs — a mismatch means the knob will not grip.
  • Count detents per revolution before buying: 20 detents is standard for KY-040 modules, but 12- or 24-detent units change how many menu steps one click produces in firmware.
  • Check panel thickness against threaded bushing length: the nut must clamp the panel, so bushing length must exceed panel thickness plus washer thickness.
  • For production or long-life builds, require a rated rotational lifecycle (1M+ cycles) and a sealed body; open KY-040 modules are for prototyping only.

Specs

Encoder TypeIncremental quadrature (A/B) + push
Detents Per Rev20 typical (12-24 common)
Shaft / Bushing6mm or 6.35mm threaded metal
Sealing / LifeOpen module vs IP-rated sealed 1M+ cycles

Related searches

What to check before buying

  • Measure your panel or enclosure wall thickness and confirm the encoder's threaded bushing is longer than that dimension.
  • Confirm the shaft diameter (6mm vs 6.35mm) and whether it is knurled, D-flat, or plain — order the matching knob style.
  • Verify your microcontroller logic level: most KY-040 modules run at 3.3–5V, but sealed industrial encoders may output 5–24V and need level shifting or a different input.
  • Plan for pull-up resistors or enable internal pull-ups on A, B, and the push-button line; otherwise readings will float and skip detents.

FAQ

All Sensors, Encoders & Machine Safety buying guides

Data sources: eBay / Amazon listings and product attribute feeds. Updated Nov 28, 2026.

Some links on this page are affiliate links. If you buy after clicking one, we may earn a commission at no extra cost to you. This does not change which products appear here or their order. Affiliate disclosure.