Skip to content

KY-040 rotary encoder module

Report component

Tell our team what needs attention. You must be signed in to send a report.

Up to 2,000 characters. Include what the team should check.

A knob that clicks as it turns and can be pressed, for scrolling through menus.

20-detent incremental encoder with push switch, on a board with 10 kΩ pull-ups on CLK and DT. Turning produces quadrature pulses; pressing the shaft closes SW to GND (no pull-up fitted on SW). 3.3-5 V.

Electrical

Supply voltage
3.3 to 5 V
Talks over
digital

Needs alongside it

  • SW has no pull-up on the module: enable INPUT_PULLUP on that pin.

Pins

PinCan doMax VMax mA
CLKdigitalOutput A. Pulled up to + on the board.
DTdigitalOutput B.
SWdigitalPush switch to GND. Needs INPUT_PULLUP.
+3.3 V, 5 VUse the board's logic voltage.
GNDground

Size and material

Size
18 × 28 × 32 mm
Material
metal
Sold by the
piece

Works with

Projects using it

No public project uses it yet. Design one that does.