KY-040 Rotary Encoder Module with Push Button for Arduino
The KY-040 Rotary Encoder Module is a compact, versatile input device designed for Arduino, ESP32, Raspberry Pi, and other microcontroller projects. It allows users to detect rotational movement, direction, and button presses, making it ideal for interactive electronics, menu navigation, motor control, and DIY automation projects.
Unlike traditional potentiometers, the KY-040 rotary encoder provides digital pulse signals and supports continuous rotation in both clockwise and counterclockwise directions. It also features a built-in push-button switch for additional functionality.
Key Features
-
Rotary Encoder: Detects clockwise and counterclockwise rotation.
-
Built-in Push Button: Press the encoder shaft to activate an additional input.
-
Continuous 360° Rotation: No mechanical rotation stops.
-
Digital Output: Provides quadrature signals for direction and position tracking.
-
Compact Design: Easy to integrate into breadboards and electronic projects.
-
Microcontroller Compatible: Suitable for Arduino, ESP32, Raspberry Pi, and other development boards.
Technical Specifications
-
Model: KY-040
-
Operating Voltage: 3.3V–5V DC (depending on the connected controller)
-
Encoder Type: Incremental rotary encoder
-
Rotation: 360° continuous
-
Resolution: Typically 20 pulses per revolution
-
Output: Digital quadrature signals (CLK and DT)
-
Push Button: Integrated momentary switch (SW)
-
Interface: 5-pin header
-
Pins: CLK, DT, SW, +, GND
Applications
-
Arduino and ESP32 projects
-
Digital menu navigation and selection
-
Volume and audio control
-
Motor speed and direction adjustment
-
Robotics and automation
-
DIY control panels
-
Educational electronics and STEM projects
Package Includes