Description
The KY-040 Rotary Encoder is a digital knob used to detect rotational movement and direction. Unlike potentiometers, rotary encoders can rotate endlessly, making them perfect for adjusting parameters, navigating menus, or controlling motor speeds without limits.
It provides two out-of-phase signals (A and B), enabling microcontrollers to detect rotation direction and count steps accurately. A push-button is built into the knob, offering an additional input for selecting items or toggling functions.
Widely used in embedded systems, user-interface panels, 3D printers, audio equipment, and robotics.
Key Features
-
360° continuous rotation
-
Built-in push-button switch
-
Provides direction and step count
-
Stable mechanical detents
-
Ideal for menu navigation and parameter adjustments
-
Easy interface with Arduino, ESP32, ESP8266, Raspberry Pi
Specifications
| Feature | Details |
|---|---|
| Encoder Type | Incremental mechanical |
| Operating Voltage | 5V |
| Signals | A (CLK), B (DT), Switch (SW), VCC, GND |
| Steps per Rotation | Typically 20 steps |
| Push Button | Integrated, momentary |
| Shaft Type | Knurled metal shaft |
| Mounting | PCB mount module (KY-040) |
Applications
-
Menu navigation on LCDs/TFT displays
-
Motor speed control
-
Volume control
-
3D printer control knobs
-
DIY audio equipment
-
Control panels and dashboards
-
User input for embedded devices
Compatible Boards / Systems
-
Arduino Uno / Nano / Mega
-
ESP32 / ESP8266
-
Raspberry Pi
-
STM32, MicroPython boards
-
Any microcontroller with digital interrupts






Reviews
There are no reviews yet.