KY-040 Rotary Encoder Module with Push Button 5V DIY Rotary Encoder Module SID 3Sets

KY-040 Rotary Encoder Module with Push Button 5V DIY

3Sets
Sale price  $17.67 Regular price  $24.19
Skip to product information
KY-040 Rotary Encoder Module with Push Button 5V DIY Rotary Encoder Module SID 3Sets

KY-040 Rotary Encoder Module with Push Button 5V DIY

Sale price  $17.67 Regular price  $24.19
Color

View store information

KY-040 Rotary Encoder Module with Push Button 5V DIY

3Sets

KY-040 Rotary Encoder Module with Push Button

Take your electronics projects to the next level with the KY-040 360° Rotary Encoder Module. Designed for makers, hobbyists, and engineers alike, this compact sensor module delivers precise rotational input with 20 pulses per revolution and a built-in push button — perfect for microcontroller and DIY electronics builds.

Key Features

  • 360° Continuous Rotation: Unlike a standard potentiometer, this encoder has no rotation limit — count pulses in both clockwise and counter-clockwise directions without restriction.
  • 20 Pulses Per Revolution: Accurate, repeatable pulse output for precise control in your projects.
  • Built-In Push Button: Press the shaft to reset the counter back to zero — a convenient interactive function for user interfaces and menus.
  • 5V Operating Voltage: Fully compatible with common microcontroller development boards and DIY electronics platforms operating at 5V.
  • Compact PCB Design: Mounted on a clean, ready-to-use PCB (approx. 31 × 19 × 29 mm) with standard pin headers for easy wiring.
  • High Quality Construction: Built with quality electronic components on a durable PCB — 100% new and tested.

Specifications

  • Model: KY-040
  • Working Voltage: 5V
  • Pulse Circle: 20 pulses per revolution
  • Dimensions: Approx. 31 × 19 × 29 mm (1.22″ × 0.75″ × 1.14″)
  • Main Color: Black
  • Material: Electronic components + PCB
  • Battery Included: No
  • Package: Available in 1, 2, or 3 sets
  • Made in Mainland China

How It Works

The KY-040 rotary encoder outputs digital pulse signals as the shaft is turned, allowing your microcontroller to track direction and rotation count. When the shaft is pressed, the integrated push button triggers a reset signal — ideal for navigating menus, adjusting settings, or any interactive input application. Because there is no end-stop, the encoder can be turned indefinitely in either direction, making it ideal for volume controls, menu navigation, motor speed adjustment, and more.

Typical Applications

  • DIY electronics & maker projects
  • Microcontroller input interfaces
  • Volume or parameter control knobs
  • Menu navigation systems
  • Robot motor control
  • Consumer electronics prototyping

Related Products You May Like

Learn more: OSHA on eye and face protection

Frequently Asked Questions

Q: Is the KY-040 rotary encoder module compatible with popular microcontroller development boards?

A: Yes! The KY-040 rotary encoder module operates at 5V and is compatible with widely used 5V microcontroller development boards and DIY electronics platforms. Simply connect the CLK, DT, SW, VCC, and GND pins to your board's digital I/O and power pins.

Q: What is the difference between a rotary encoder and a potentiometer?

A: A rotary potentiometer has a fixed start and end point and outputs an analog voltage. The KY-040 rotary encoder, by contrast, has no rotation limit — it spins freely in either direction and outputs digital pulses, allowing unlimited counting in both clockwise and counter-clockwise directions.

Q: How does the push button on the KY-040 work?

A: The push button is integrated into the encoder shaft. Pressing the shaft down triggers a button press signal on the SW pin, which you can program to reset your counter to zero or perform any other action in your project code.

Q: How many modules come in a package?

A: You can choose from a 1-set, 2-set, or 3-set package depending on your project needs — a great way to stock up for multiple builds at once.

Production & Packaging Notice

To maintain high stock availability and fast shipping times, our items are sourced from multiple verified manufacturing facilities. While the core quality, materials, and product specifications remain identical, you may notice slight variations in the packaging design, manufacturing origin, or the wording of the printed instructions.

You may also like