This 360-degree rotary encoder module provides unlimited rotation for precise control in Arduino projects. Unlike potentiometers with fixed range, this encoder counts pulses during rotation in both directions without limits[citation:1][citation:7][citation:10].
| Parameter | Value |
|---|---|
| Model | KY-040 / EC11 / RV09 |
| Working Voltage | 5V DC[citation:1][citation:7][citation:10] |
| Pulses per Revolution | 20[citation:1][citation:7][citation:10] |
| Shaft Diameter | 6mm[citation:5][citation:11] |
| Shaft Length | 12-20mm[citation:5][citation:11] |
| Rotation | 360 degrees continuous |
| Switch Type | Push button (momentary) |
= Key Features =
Incremental Encoder - Detects both direction and rotation amount[citation:8]
Switch Function - Press shaft for reset or menu selection[citation:1][citation:4]
Onboard Pullup Resistors Simplified wiring on module[citation:4]
Mounting Thread - 7mm thread with nut and washer included[citation:10][citation:12]
PCB Mounting Holes - Secure installation in enclosures[citation:4]
√ Module with knob cap and mounting hardware[citation:1][citation:10][citation:11]
√ Pre-soldered pin headers for breadboard use[citation:4]
√ Includes SW, DT, CLK, VCC, and GND pins[citation:4][citation:10]
| Pin | Function | Connection |
|---|---|---|
| GND | Ground | Connect to ground |
| + | VCC | 5V power supply |
| SW | Switch output | Press to activate |
| DT | Encoder Pin B | Digital input |
| CLK | Encoder Pin A | Digital input |
> Use interrupt pins for accurate rotation detection[citation:6]
The encoder outputs digital pulses on CLK and DT pins with 90-degree phase shift[citation:12]. Direction is determined by which signal changes first[citation:6][citation:9]. The SW pin registers when the shaft is pressed downward[citation:4].
No rotation detected:
Direction reversed:
Button not responding: