Product ID: DG1039

KY-040 Rotary Encoder + Knob

600 DA

The KY-040 is a mechanical rotary encoder with a built-in push-button, ideal for detecting rotational direction and position in embedded systems, user interfaces, and DIY electronics.

  • Category: Motion & Rotation Sensors
  • Stock: In stock

600 DA

In stock

1

About this item

๐ŸŒ€ KY-040 Rotary Encoder Module

๐Ÿ’ก Incremental Encoder with Button Switch

The KY-040 is a compact, mechanical rotary encoder with a built-in push-button switch. It detects direction and step count of rotation and is ideal for adjusting values, navigating menus, or building interactive interfaces in embedded systems.


๐Ÿ›ก๏ธ Mechanical Reliability

  • ๐Ÿ” Rotates 360ยฐ continuously
  • ๐Ÿ”˜ Integrated push-button (press the shaft)
  • ๐Ÿงฒ Tactile feedback with 20 detents
  • ๐Ÿ”Œ Standard 5-pin header (GND, +, SW, DT, CLK)

๐Ÿ“ฆ Compact & Versatile

With its small footprint, low power requirements, and compatibility with 3.3V and 5V systems, itโ€™s a popular input device in DIY and prototyping projects.


๐Ÿ› ๏ธ Applications

  • ๐ŸŽ›๏ธ Volume or menu controls
  • ๐Ÿค– Arduino / ESP32 / Raspberry Pi user interfaces
  • ๐Ÿ•น๏ธ DIY control knobs or game controllers
  • ๐Ÿ” Motor control input (step/feedback)
  • ๐Ÿ“Ÿ Digital potentiometers
  • ๐Ÿงฎ Rotary position tracking

โš ๏ธ Notes

  • ๐Ÿงท Debouncing (hardware/software) may be needed for clean signals
  • โฑ๏ธ Works best with interrupts for high-speed detection
  • ๐Ÿ“˜ Outputs digital pulses, not analog values
  • ๐Ÿ”„ Can rotate infinitely in either direction

โœจ Key Features

  • ๐Ÿ“ Steps per revolution: 20 (mechanical detents)
  • ๐Ÿ”‹ Operating voltage: 3.3Vโ€“5V
  • ๐Ÿ“ฆ 5-pin interface: Easy jumper wire connection
  • ๐Ÿ”„ Encoder type: Incremental (quadrature output)
  • ๐Ÿ”˜ Built-in switch: Momentary press on shaft

๐Ÿ”— Useful Links