360 Degrees Rotary Encoder Module KY-040 RV09 EC11
= Analog Knob Module with Push Button for Arduino =
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.
Continuous Rotation - Unlimited turns with 20 pulses per revolution
Builtin Push Button Reset or select functions with shaft press
Operating voltage is 5V with 20 pulses per revolution
Connect CLK and DT pins to digital pins for direction detection
Handle with care - mechanical life rated for 50,000 cycles
= Technical Specifications =
| Parameter | Value |
|---|
| Model | KY-040 / EC11 / RV09 |
| Working Voltage | 5V DC |
| Pulses per Revolution | 20 |
| Shaft Diameter | 6mm |
| Shaft Length | 12-20mm |
| Rotation | 360 degrees continuous |
| Switch Type | Push button (momentary) |
= Key Features =
Incremental Encoder - Detects both direction and rotation amount
Switch Function - Press shaft for reset or menu selection
Onboard Pullup Resistors Simplified wiring on module
Mounting Thread - 7mm thread with nut and washer included
PCB Mounting Holes - Secure installation in enclosures
== Applications ==
- Motor speed and position control
- Menu navigation and value adjustment
- Digital potentiometer replacement
- Volume and parameter controls
- Servo motor positioning
Perfect for Arduino Projects - Standard 5V compatibility
Mechanical Durability - 50,000 rotation cycles
√ Module with knob cap and mounting hardware
√ Pre-soldered pin headers for breadboard use
√ Includes SW, DT, CLK, VCC, and GND pins
= Pin Configuration =
| 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
Install Encoder library via Arduino IDE for easy integration
A/B signal order determines rotation direction
Avoid voltage above 5V on any pin
= Programming Notes =
The encoder outputs digital pulses on CLK and DT pins with 90-degree phase shift. Direction is determined by which signal changes first. The SW pin registers when the shaft is pressed downward.
20 detents per full revolution provide tactile feedback
Use software debounce for stable switch readings
Pull-up resistors are onboard for CLK/DT
Button may require external pull-up
= Troubleshooting =
No rotation detected:
- Verify 5V power on VCC pin
- Check CLK/DT connections
- Avoid loose wiring
Direction reversed:
- Swap CLK and DT connections
- Or adjust code for reversed direction
Button not responding:
- Check SW pin connection
- Add external pull-up resistor if needed
- Avoid using damaged switch