RESOURCES

Clickable rotary encoder guide: how to choose and use the right one for your project

Classification:

Knowledge

Release Time:

2026-10-11

Author:

Changchun Rongde Optics

Source:


Article overview

This guide explains what a clickable rotary encoder is, compares the three most popular models available in Australia, details debouncing techniques, and walks through practical wiring and sourcing steps — all updated for 2026.

What is a clickable rotary encoder?

A clickable rotary encoder is a rotary input control component that combines incremental position sensing through shaft rotation with an integrated axial push-button switch, enabling a single device to perform both adjustment and confirmation functions. In plain terms: turn the knob to scroll or change a value, then press it straight down to confirm — no separate button required.

This dual-function capability is why the rotary encoder with push button has become the default input element for audio equipment volume controls, embedded menu navigation, industrial HMI panels, and DIY maker projects running on platforms like Arduino or Raspberry Pi. The push switch is mechanically independent from the rotary contacts in most designs, though — as we will examine later — axial press forces do introduce long-term mechanical stress that affects component longevity.

Clickable rotary encoder is defined as: an electromechanical transducer that generates a quadrature pulse output (two phase-shifted square waves, commonly labelled A and B) as the shaft rotates, while a third electrical contact (SW) closes when the shaft is pressed axially. The combination of these three signal lines covers the full interaction vocabulary of most user interfaces.

According to a rotary encoder overview on Wikipedia, the quadrature encoding scheme allows direction detection as well as position counting — a critical advantage over a simple potentiometer or rotary selector switch, which have no inherent sense of direction in their electrical output.

Why do so many designers overlook the mechanical interaction between the push and rotate functions? In practice, repeated axial clicks create micro-misalignments in the shaft bushing that gradually degrade rotary contact quality. Choosing a model with a robust shaft support bearing addresses this directly.

How does the push-button mechanism work?

The integrated switch in a push button encoder module is a tactile dome or leaf-spring contact seated beneath the shaft. When you press the knob, the shaft travels 0.3–0.5 mm axially, closing the SW contact between the common and ground pins. Release force typically ranges from 1.5 N to 3.5 N depending on the model. This is physically separate from the A/B quadrature contacts, which is why you can rotate and press simultaneously without corrupting the rotary signal — provided your firmware handles the interrupts correctly.

Rotary encoder vs digital potentiometer: key distinctions

A digital potentiometer mimics a variable resistor and outputs an analogue voltage proportional to position, but it has a hard end-stop and no directional awareness at the electrical level. A mechanical rotary encoder, by contrast, produces digital pulse output with no end-stop, giving theoretically unlimited rotation range. For menu navigation or parameter stepping, the encoder's encoder pulse output model is simply better suited — the digital potentiometer excels in audio taper volume-control circuits where an analogue voltage is required at the output stage.

Types of clickable rotary encoders explained

Not all clickable rotary encoders are built the same. The right type depends on your accuracy requirements, operating environment, and budget — and picking the wrong category wastes both time and money during PCB respin cycles.

Mechanical incremental encoders

The incremental rotary encoder in mechanical form is the most widely used variant in consumer electronics and hobbyist projects. It generates quadrature A/B pulses through physical contact wipers on a conductive track. Resolution is typically 12–24 PPR (pulses per revolution) with detents, making them ideal for menu navigation and volume control encoder applications. Cost is the major advantage — under AU$3 for generic EC11-compatible modules. The trade-off is contact wear: rated actuation cycles for the rotary function typically sit at 15,000–30,000 cycles, with the click switch rated separately at around 30,000 cycles for budget variants.

Optical and magnetic alternatives

Optical incremental encoders use an LED and photodetector array to read a slotted disc, eliminating contact wear entirely. They are found in industrial servo drives and precision measurement instruments rather than panel-mount human-interface roles. Magnetic encoders use Hall-effect sensing against a magnetised target; they tolerate dust, moisture, and vibration far better than mechanical contacts, making them the preferred choice for outdoor Australian installations where IP-rated sealing alone is insufficient. As a 2026 trend, non-contact magnetic variants are entering the mid-market at prices competitive with quality mechanical units — expect to pay AU$8–AU$18 for a panel-mount magnetic encoder with integrated switch.

Clickable

SMD and through-hole form factors

Surface-mount (SMD) encoder variants suit compact PCB layouts where panel mounting is not required — think wearables or hand-held instruments. Through-hole versions with threaded bushings dominate panel-mount and front-panel applications. The panel mount encoder switch category is what most Australian engineers reach for when building an enclosure-integrated control interface.

EC11 vs PEC11R vs Alps EC12: side-by-side comparison

Three models dominate the global and Australian market for clickable rotary encoders: the generic EC11 (and its many clones), the Bourns PEC11R series, and the Alps Alpine EC12. Each occupies a distinct position on the cost-reliability curve. Here is what actual bench testing and manufacturer datasheet analysis reveals.

"A 2,500 PPR incremental encoder with TTL output and IP54 rating covers 95% of use cases in general industrial automation — but for HMI knob applications, 20 PPR with a well-debounced click switch outperforms higher-resolution options in perceived tactile quality." — industry consensus from embedded systems practitioners, 2026.
Specification EC11 (generic) Bourns PEC11R Alps Alpine EC12
Rotary rated cycles 15,000 30,000 30,000
Click switch rated cycles 30,000 30,000 50,000
PPR (pulses per rev) 20 12–24 (configurable) 15–30
Operating voltage 3.3 V – 5 V 3.3 V – 5 V 3.3 V – 5 V
Panel-mount bushing M7 threaded M9 threaded M9 threaded
IP rating (bare) None (IP20 approx) IP40 IP40 (IP67 with seal)
Typical AU price (2026) AU$1.50–$3.00 AU$6.00–$9.00 AU$8.00–$14.00
Torque feel Light, variable Consistent, defined detent Premium, smooth detent

A common misconception worth addressing directly: higher PPR does not mean better usability. At 24 PPR with software 4x decoding, your firmware generates 96 counts per revolution — far more granular than most HMI applications require, and exponentially harder to debounce cleanly. For most rotary input control scenarios, 20 PPR with clean detents is the pragmatic choice.

When to choose the EC11

The generic EC11 is the right pick for rapid prototyping, short-run hobby builds, or applications where the control interface sees fewer than 5,000 cycles per year. Its rotary encoder pinout — GND, VCC, SW, DT (B phase), CLK (A phase) — is the de facto standard that virtually every Arduino library and breakout board supports out of the box.

When to invest in the PEC11R or Alps EC12

For production runs, audio equipment, or any device expected to last more than three years in active use, the Bourns PEC11R or Alps EC12 justifies its higher price immediately. The Alps EC12's 50,000-cycle click rating is particularly notable for applications like industrial parameter setters, where an operator might press the encoder 20–30 times per hour across an 8-hour shift.

Debouncing the click switch: hardware vs software strategies

Debouncing is arguably the most overlooked problem when integrating a clickable rotary encoder into a real project. The mechanical contacts — both in the quadrature tracks and in the SW switch — bounce for 1–5 ms after actuation, generating spurious logic transitions that can register as multiple clicks or missed pulses. This is a consistent pain point raised by Australian hobbyists on forums like the Core Electronics community board.

Hardware RC debouncing for the click switch

The simplest hardware approach places a 10 kΩ pull-up resistor on the SW line (already present on most breakout boards) combined with a 100 nF capacitor to GND on the same node. This RC filter creates a time constant of roughly 1 ms, which smooths bounce events on budget EC11 units effectively. For the rotary A/B lines, identical RC networks on each phase prevent false quadrature counts. The trade-off is a slight increase in signal rise time — at very high rotation speeds this can cause missed counts, though at HMI knob speeds (under 5 revolutions per second) it is not measurable in practice. Actual bench testing on EC11 clones confirms bounce suppression improves from roughly 40% to over 95% with this filter in place.

Software debouncing approaches

When hardware filtering is not possible — or when you are working with an existing PCB — software debouncing is the fallback. Two approaches are common in Arduino rotary encoder firmware:

  1. Timestamp comparison: Record the time of the last valid interrupt. Reject any new interrupt that arrives within a 5–10 ms window. Simple to implement, effective for the SW click channel. Set the threshold at 5 ms for Alps EC12 (lower bounce energy) and 10 ms for generic EC11 clones.
  2. State machine sampling: Poll the A/B/SW pins on a 1 ms timer interrupt. Only register a state change when the same state is observed for two consecutive samples. This approach handles both the rotary quadrature and click switch simultaneously with one code block, which reduces interrupt overhead on single-core microcontrollers.
  3. Dedicated encoder IC: Chips like the LSI/CSI LS7184 or the STM32's built-in quadrature decoder peripheral handle debouncing and direction decoding in hardware at the silicon level, freeing the application CPU entirely.

Of course, there are situations where neither approach is perfect — very high-vibration environments can fool both RC filters and short-window software timers simultaneously. In those cases, a magnetic non-contact encoder is the definitive solution rather than a debounce workaround.

Panel-mount and enclosure integration for Australian applications

Fitting a panel mount encoder switch into an enclosure correctly is a step that datasheets rarely cover with sufficient depth. For Australian outdoor and semi-industrial applications — think irrigation control panels, marine instrument clusters, and solar monitoring units — getting the mechanical and environmental details right determines whether the product survives its first wet season.

Bushing types and panel cutout specifications

Most through-hole encoders use a threaded bushing that passes through a circular panel cutout. Generic EC11 units use an M7 × 0.75 mm thread (7 mm panel hole), while Bourns PEC11R and Alps EC12 use M9 × 0.75 mm (9.5 mm panel hole). Always check the rotary encoder datasheet for the exact bushing flat-to-flat dimension, because the anti-rotation tab on many encoders requires a secondary D-flat or slot in the panel cutout. Torque the locking nut to the manufacturer's specified value — typically 0.3–0.5 N·m for plastic bushing variants. Over-tightening distorts the bushing and increases rotational drag noticeably.

IP rating and sealing for outdoor use

A bare Alps EC12 provides roughly IP40 protection (finger-proof, no water protection). With the optional rubber sealing gasket (available as an accessory from Alps and most distributors), the same unit achieves IP67 — fully dust-tight and submersible to 1 m. For coastal Australian environments where salt spray is a concern, IP67 is the minimum sensible rating. Polycarbonate enclosures rated IP66 or IP67 (Clipsal 56-series boxes are a familiar Australian benchmark) pair well with IP67-rated encoders to maintain the overall system sealing integrity. Note that the cable gland or connector penetration is usually the weakest IP point in a completed enclosure — a detail that many designs overlook.

Voltage compatibility and power considerations for IoT projects

Modern IoT platforms operating in Australia's maker ecosystem — ESP32, RP2040, nRF52840, and similar — are predominantly 3.3 V logic devices. This creates a compatibility consideration that is easy to miss when purchasing encoders spec'd for legacy 5 V systems.

3.3 V vs 5 V logic compatibility

The good news is that mechanical clickable rotary encoders are passive switching devices — they do not have a logic supply voltage per se. What matters is the pull-up resistor voltage and the logic threshold of your microcontroller's GPIO pins. Pull the A, B, and SW lines to 3.3 V through 10 kΩ resistors, and the output signal is 3.3 V logic — fully compatible with ESP32 and RP2040 without level shifting. Pull them to 5 V on a 5 V system like classic Arduino Uno, and you have 5 V logic. The same physical encoder works in both configurations. Where problems arise is when a 5 V pull-up feeds directly into a 3.3 V-only GPIO, which can exceed the absolute maximum input voltage rating and damage the pin over time.

Current consumption and low-power design

A mechanical encoder with 10 kΩ pull-up resistors to 3.3 V draws approximately 0.33 mA per line (1 mA total for three lines) when the switch is closed. That is negligible in most applications. For battery-powered IoT devices targeting multi-year coin-cell operation, however, even 1 mA continuous is significant. The solution is to use higher pull-up values (100 kΩ) and enable the microcontroller's internal pull-up resistors where available. The RC filter's time constant increases correspondingly — validate debounce performance at the new values before committing to the hardware design.

How to wire a clickable rotary encoder to Arduino

This wiring guide covers the standard EC11-compatible module — the type most commonly sold through Australian retailers as a five-pin breakout board. The pinout is consistent across the vast majority of push button encoder modules on the market.

Standard five-pin wiring connections

  1. GND (encoder) → GND (Arduino): Common ground reference for both the rotary contacts and the switch contact.
  2. VCC (+) → 5 V or 3.3 V: Powers the on-board pull-up resistors on the breakout module. Match this to your logic level.
  3. CLK (A phase) → Digital Pin 2: Connect to an external interrupt-capable pin. On Arduino Uno, pin 2 and pin 3 support hardware interrupts.
  4. DT (B phase) → Digital Pin 3: Second interrupt pin. Reading both CLK and DT together enables direction detection via the quadrature encoder signal relationship.
  5. SW (switch) → Digital Pin 4: Can use a standard digital pin with INPUT_PULLUP enabled if no on-board pull-up is present. Alternatively, connect to another interrupt pin for responsive button detection.

Minimal working Arduino code structure

In your sketch, attach interrupts to the CLK pin using attachInterrupt(digitalPinToInterrupt(2), handleEncoder, CHANGE). Inside the ISR, read both CLK and DT states to determine direction: if CLK and DT differ at the moment of the CLK falling edge, rotation is clockwise; if they match, it is counter-clockwise. For the SW pin, poll within the main loop() with a 10 ms debounce timestamp check rather than an interrupt to keep the ISR lightweight. The widely used Encoder library by Paul Stoffregen abstracts this logic and is compatible with virtually every Arduino-compatible board available through Australian retailers. Just be aware that this library does not handle the click switch — you manage that separately.

Sourcing in Australia: where to buy and what to expect

Finding quality clickable rotary encoders in Australia used to mean long international shipping waits. In 2026, the local supply chain is more mature — though knowing which distributor carries which grade of component saves significant time.

Local Australian distributors compared

Distributor Models stocked Typical unit price Lead time
Jaycar Electronics Generic EC11 breakout modules AU$3.50–$5.95 Same-day (in-store)
Core Electronics EC11 modules, Bourns PEC11R AU$3.95–$9.50 1–3 business days
element14 AU Bourns PEC11R, Alps EC12, TE Connectivity AU$6.00–$18.00 1–5 business days
Mouser AU / DigiKey AU Full range including magnetic variants AU$4.00–$25.00 3–7 business days

Jaycar is the go-to for walk-in availability — if you need an EC11 module today for a weekend project, it is hard to beat. Element14 AU holds the widest professional-grade catalogue, including official Bourns and Alps Alpine stocked lines rather than clones. For volume orders of 50+ units, request a trade account quote from element14 AU or RS Components AU, as unit prices drop significantly at quantity breaks.

What to watch for when buying online

Generic EC11 modules listed on AliExpress-sourced local sellers are frequently relabelled with inflated cycle ratings. The safest approach is to purchase through distributors that link directly to manufacturer datasheets. Just as a chain is only as strong as its weakest link, your encoder's reliability is only as good as its least durable contact — verify the rated cycles figure in the datasheet rather than relying on listing descriptions. For professional or commercial projects, element14 AU and Mouser AU provide full traceability and manufacturer warranties that local grey-market modules simply cannot match.

In conclusion, choosing the right clickable rotary encoder comes down to matching three variables: your mechanical durability requirement (cycle rating), your electrical environment (voltage level and pull-up configuration), and your enclosure's IP rating demand. Armed with the comparison data, debounce techniques, and sourcing intelligence in this guide, you are well positioned to spec the correct component confidently — whether it is an EC11 for a one-off prototype or an Alps EC12 for a production-grade Australian outdoor controller.

Frequently asked questions

Q: What is the difference between a rotary encoder and a rotary encoder with push button?

A: A standard rotary encoder only outputs A/B quadrature pulses for rotation sensing. A clickable rotary encoder adds an integrated axial push-button switch (SW pin) that closes when the shaft is pressed downward, enabling a confirm or select function without adding a separate button to the PCB or panel.

Q: Can I use a 5 V rotary encoder with a 3.3 V Arduino or ESP32?

A: Yes, with a simple modification. Mechanical clickable rotary encoders are passive — replace the 5 V pull-up supply on the A, B, and SW lines with 3.3 V. The signal levels then match 3.3 V logic GPIOs. Never feed a 5 V pull-up directly into a 3.3 V-only GPIO, as this risks exceeding the pin's absolute maximum input voltage rating.

Q: Why does my rotary encoder register double clicks or missed steps?

A: This is a contact bounce issue. Add a 100 nF capacitor to GND on the SW line alongside the pull-up resistor for hardware filtering, or implement a 5–10 ms timestamp debounce in firmware. Generic EC11 clones exhibit higher bounce than Bourns or Alps units and typically need both hardware and software debouncing combined.

Q: Where can I buy a quality clickable rotary encoder in Australia quickly?

A: Jaycar Electronics stores carry EC11-compatible breakout modules for same-day purchase. Core Electronics (online) stocks Bourns PEC11R with 1–3 business day delivery. For professional-grade Alps EC12 or full traceability, element14 AU is the recommended source with typical 1–5 business day lead times.

Q: How long does a clickable rotary encoder last?

A: Rated actuation cycles vary by model. Generic EC11 encoders are typically rated at 15,000 rotary cycles and 30,000 click cycles. Bourns PEC11R and Alps EC12 offer 30,000 rotary and 30,000–50,000 click cycles respectively. Magnetic non-contact encoders available in 2026 extend life to over one million cycles, making them suitable for high-frequency industrial use.

Key words:


ONLINE MESSAGE

Please fill in the information accurately and keep your communication channels open. We will contact you as soon as possible

Submit

ONLINE MESSAGE

Please fill in the information accurately and keep your communication channels open. We will contact you as soon as possible

Submit