KY-040 Rotary Encoder With Push Button for Menus and Volume Knobs

KY-040 Rotary Encoder Module

Rs. 160 - In stock - SKU ABH-MISC-0652 - Brand Generic

A KY-040 rotary encoder module with 20 detents per turn, endless 360 degree rotation and a built-in push button, for menus and digital knobs.

Delivery anywhere in Pakistan for a flat Rs. 250 paid in advance, product price Cash on Delivery. 7-Day Checking Warranty.

Key features

Specifications

Operating Voltage5V
Pulses/Rev20
NotesContinuous 360° Rotation + Integrated Push Button

What's in the box

Use cases

Description

What it is

Unlike a potentiometer, an encoder turns endlessly and sends pulses on two pins (CLK and DT) as it rotates. The order of the pulses shows direction. Pressing the shaft closes a switch (SW).

How to use it

Connect CLK, DT and SW to digital pins and read them with an encoder library or interrupts. Common uses: menu navigation with an LCD or OLED, volume and frequency knobs.

Good to know

Add small capacitors or software debouncing if counts skip.

Frequently asked questions

What is the difference between an encoder and a potentiometer?

A potentiometer has a fixed range and gives an analog value. An encoder turns forever and gives digital pulses.

Why does my encoder skip counts?

Contact bounce. Use interrupts with debouncing or an encoder library.

Does it have a button?

Yes, press the shaft.

Related products

All Breakout & Utility Modules