Skip to product information
1 of 3

KY-040 Rotary Encoder Module with Push Button

KY-040 Rotary Encoder Module with Push Button

Product code: KY-040-NZ
Regular price $4.99 NZD
Regular price Sale price $4.99 NZD
Sale Sold out
GST included. $7.79 flat-rate shipping to all New Zealand addresses. Unlimited items.
Questions about this product? Ask us Need help choosing or checking compatibility?

Add rotary and push-button control to your Arduino project with the KY-040 rotary encoder module. Turn the shaft clockwise or anticlockwise to adjust values, and use the built-in button for a software-defined action such as selecting a menu item.

Applications

  • Menu navigation and setting adjustments
  • Digital counters and user controls
  • Arduino learning, robotics and DIY electronics projects

Features

  • Incremental rotation sensing in both directions
  • Continuous rotation without a fixed end stop
  • Integrated momentary push button
  • Five labelled connection pins and two PCB mounting holes

Technical specifications

  • Model: KY-040
  • Product code: KY-040-NZ
  • Encoder type: Incremental
  • Resolution: 20 cycles per revolution
  • Working voltage: 5V
  • Dimensions: Approximately 32 x 19 x 30mm
  • Module weight: Approximately 10g

Pin connections

  • CLK: First rotation signal
  • DT: Second rotation signal; read with CLK to determine direction
  • SW: Push-button signal; connects to ground when pressed
  • +: Power supply
  • GND: Ground

Requires a compatible microcontroller, connecting wires and suitable code. Button actions and counting behaviour are controlled by your program. Configure a pull-up for SW and debounce the inputs as needed.

Package includes: 1 x KY-040 rotary encoder module. Microcontroller and connecting wires are supplied separately.

Arduino wiring and example-code guide

View full details

Product questions & answers

Understand how this product works and whether it suits your setup.

No published answers yet. Have a question about this product?

Ask a question

Tell us what you would like to know. Include the model or device you plan to use, if relevant.

What should I include?

For compatibility questions, include the device model and the connection you need. For setup questions, explain what you want the product to do. Leave out order numbers, addresses and other personal details.

We use your email to reply to your question. It stays private and is never displayed with published answers.

Questions and answers may be published after review unless you choose to keep the question private. Email addresses are never displayed.