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.

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

Questions & Answers

Have a Question?

Be the first to ask a question about this.

Ask a Question