
- ★Product Description
- ★About us
- ★Custom cable
EC11 Rotary Encoder with Push Switch — 5-Pin, 15mm/20mm Shaft
The EC11 rotary encoder is an incremental rotary encoder with integrated push switch — rotating the shaft generates quadrature pulse signals (A and B channels) that indicate direction and position, while pressing the shaft activates a momentary push switch. Unlike a potentiometer, the EC11 has no end stops and can rotate continuously in either direction, making it ideal for menu navigation, volume control, and parameter adjustment in microcontroller projects. 5-pin through-hole package (A, B, GND for encoder + SW, GND for switch).
Specifications
- Model: EC11
- Type: Incremental rotary encoder with push switch
- Pulses per Revolution: 20 (20 detents)
- Output: Quadrature (A + B channels) + push switch (SW)
- Shaft Options: 15mm or 20mm (select version)
- Shaft Type: Half-shaft (D-flat) or plum shaft (select version)
- Pins: 5 (CLK/A, DT/B, GND, SW, GND)
- Rotation: Continuous (no end stops)
- Detents: 20 tactile clicks per revolution
Arduino Wiring & Code
- CLK → D2 | DT → D3 | SW → D4 | GND → GND | + → 3.3V/5V
- Use Encoder library by Paul Stoffregen from Arduino Library Manager
- Read direction: if CLK rises before DT → clockwise; DT before CLK → counter-clockwise
Rotary Encoder vs Potentiometer
- Rotary encoder (this): No end stops, infinite rotation, digital output — for menu navigation and parameter adjustment
- Potentiometer: Limited rotation (~300°), analog output — for continuous analog level control
Typical Applications
- Arduino menu navigation (scroll and select)
- Digital volume control knob
- Stepper motor manual position control
- Parameter adjustment in embedded UI
- 3D printer control knob
EC11 rotary encoder with push switch — 5-pin, 20 pulses/rev, 15mm/20mm shaft for Arduino menu navigation, volume control, and digital potentiometer projects.


- ♥Hear From Our Happy Customers
- ♥Verified Buyer Reviews
- ♥Trusted by Professionals and Engineers


