KY-040 encoder pinout

KY-040 encoder (EC11 with button), EC11 mechanical incremental encoder with button, 5 V logic, 19.05×25.9 mm, 5 pins

partly verified17.10.2026

Top view (shaft side), connector on top.

BuyDownload PNG
Chip
EC11 mechanical incremental encoder with button
Logic
5 V
Power
+ 3.3-5 V

Important

  • CLK and DT are pulled up on the board with 10 kΩ to "+", SW is not: use INPUT_PULLUP for the button.
  • The contacts bounce: read by interrupt while checking the second channel, or use a library (Encoder, ESP32Encoder, AiEsp32RotaryEncoder).
  • Geometry from KiCad footprints and photos (±0.5 mm). Holes and small components are approximate, check with calipers.

All pins

LabelNumberFunctionsLimitsCheck
GNDGroundnot from manufacturer
+5 Vpower inputnot from manufacturer
SWnot from manufacturer
DTEncoder channel Bonboard pull-upnot from manufacturer
CLKEncoder channel Aonboard pull-upnot from manufacturer

Sources

Not verified against the manufacturer: 5 of 5 pins. The pin card says what confirms each one and where sources disagree.

Size: from the KiCad footprint (waterMonitor); Joy-IT lists 18×31×30 including the shaft, sellers list 19×26…32 (approximate).

FAQ

What supply voltage does the KY-040 encoder need?
+: 3.3-5 V. 5 V logic.

You might also need

Similar boards