

Rotary Encoder / Rotation Sensor Module with Pushbutton Switch for Arduino AVR PIC DIY KY-040
Key item features
Specs
- Switch encoder typeRotary Encoder
- BrandEnvistia Mall
- Model nameKY-040
- Volts5 V
- Dimensions2.50 x 1.80 x 2.80 Centimeters
- Has written warrantyNo
- Free shipping
Free 30-day returns
How do you want your item?
About this item
Product details
The KY-040 rotary encoder is a 360-degree rotary input device (i.e. a control knob) that provides an indication of how much the knob has been rotated AND which direction it is rotating in.
It is a great device for stepper and servo motor control. You can also use it to control devices like digital potentiometers.
The KY-040 rotary encoder has a fixed number of 20 positions per revolution. These positions are felt as small "clicks" when you turn the encoder. Inside the encoder, there are two switches. One switch connects pin A to pin C and the other switch connects pin B to C. In each encoder position, both switches are either opened or closed. Each click causes these switches to change states. If both switches are closed, turning the encoder either clockwise or counterclockwise one position will cause both switches to open. If both switches are open, turning the encoder either clockwise or counterclockwise one position will cause both switches to close.
Determining which switch changed states first is how the direction of rotation is determined. If A changed states first, the switch is rotating in a clockwise direction. If B changed states first, the switch is rotating in a counter clockwise direction.
A push button switch is built into this encoder. If you push on the shaft, the normally open switch "SW" will close. This can be used as an On/Off switch, or to change control functions, ranges, etc.
Features & Specifications:
- Working voltage: 5V
- Pulses per 360-degree revolution: 20
- Push button shaft On/Off switch
- Threaded shaft for panel mounting, also 2 mounting screw holes on the circuit board
- Standard "D" shaft, you can purchase knobs to give it a finished look
- Size: 2.5 x 1.8 x 2.8 cm (L x W x H)
KY-040 Pin Outs:
CLK: Encoder Pin A
DT: Encoder Pin B
SW: Pushbutton On/Off Switch
+: +5V DC Power Supply
GND: Ground (Encoder Pin C)
For a detailed description and operating overview of the KY-040, see "Keyes KY-040 Arduino Rotary Encoder User Manual" on Henry's Bench.
Package Includes:
1X KY-040 Rotary Encode Module
Get it faster! We ship in 1 business day from our US facility in Colorado for quick delivery.
Please contact us for quantity/OEM pricing.
Looking for a digital encoder component (not board mounted? See our EC11 Rotary Encoder Digital Potentiometer 20mm D Shaft with Switch
Specifications
Switch encoder type
Brand
Model name
Volts
Warranty
Warranty information
Similar items you might like
Based on what customers bought
PEC12-2125F-N0012 Rotary Encoder Mechanical 12 Quadrature (Incremental) Right Angle :RoHS $1.99
$199current price $1.99PEC12-2125F-N0012 Rotary Encoder Mechanical 12 Quadrature (Incremental) Right Angle :RoHS
MT6701 Magnetic Encoder Module PWM/I2c Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module $5.85
$585current price $5.85MT6701 Magnetic Encoder Module PWM/I2c Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module
2X MT6701 Magnetic Encoder Module PWM/I2c Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module $7.61
$761current price $7.612X MT6701 Magnetic Encoder Module PWM/I2c Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module
MT6701 Magnetic Encoder Module PWM/I2c Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module $6.72
$672current price $6.72MT6701 Magnetic Encoder Module PWM/I2c Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module
FOMIYES Black Encoder Strip for Printer Use with Linear Encoder Technology 4200mm $13.02
$1302current price $13.02FOMIYES Black Encoder Strip for Printer Use with Linear Encoder Technology 4200mm
AS5048A Magnetic Encoder PWM/Serial Peripheral Interface Port High Accuracy Module $14.39
$1439current price $14.39AS5048A Magnetic Encoder PWM/Serial Peripheral Interface Port High Accuracy Module
3PCS EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm $16.47
$1647current price $16.473PCS EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm
Rotary Incremental Encoder 38S6G5-B-G24N AB 2-Phase Connection 50P/R 5-24V Solid Shaft DC Open Collector NPN Output $13.00
$1300current price $13.00Rotary Incremental Encoder 38S6G5-B-G24N AB 2-Phase Connection 50P/R 5-24V Solid Shaft DC Open Collector NPN Output
5pcs 7.5mm Rotary Encoder Push Button Switch Keyswitch Electronic Components $9.29
$929current price $9.295pcs 7.5mm Rotary Encoder Push Button Switch Keyswitch Electronic Components
Rotary Encoder 600P/R 2-Phases Photoelectric Incremental Rotation Encoder 5V-24V $17.68
$1768current price $17.68Rotary Encoder 600P/R 2-Phases Photoelectric Incremental Rotation Encoder 5V-24V
10X MT6701 Magnetic Encoder Module PWM/ Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module $19.24
$1924current price $19.2410X MT6701 Magnetic Encoder Module PWM/ Brushless Motor Encoder ABZ Mode 1024 Lines Replaces AS5600 Module
Clearance New Encoder 600 P / R 5V-24V Incremental Rotary AB 2 Phase 6mm Shaft Coupling $16.67 Was $34.00
Clearance
$1667current price $16.67, Was $34.00$34.00New Encoder 600 P / R 5V-24V Incremental Rotary AB 2 Phase 6mm Shaft Coupling
Rotary Encoder 50 Pulses 2Phase Npn Output 5 24V For Robotics Applications $20.38
$2038current price $20.38Rotary Encoder 50 Pulses 2Phase Npn Output 5 24V For Robotics Applications
5Pcs Black PTT Launch Button Replace for Motorola A10 A12 XTNI CP110 EP150 A9D Radio Walkie Talkie Accessories Repair Spare Part $11.43
$1143current price $11.435Pcs Black PTT Launch Button Replace for Motorola A10 A12 XTNI CP110 EP150 A9D Radio Walkie Talkie Accessories Repair Spare Part
15 out of 5 Stars. 1 reviews6X EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm $31.34
$3134current price $31.346X EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm
5X EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm $22.55
$2255current price $22.555X EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm
6X MT6835 Magnetic Encoder Module PWM/SPI Brushless Motor 21BIT Encoder Can Replace AS5048,6 x Magnetic encoder 6 x Magnet,Purple $29.69
$2969current price $29.696X MT6835 Magnetic Encoder Module PWM/SPI Brushless Motor 21BIT Encoder Can Replace AS5048,6 x Magnetic encoder 6 x Magnet,Purple
10X EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm $41.18
$4118current price $41.1810X EC11EBB24C03 Dual Encoder with Switch 30 Positioning Number 15 Pulse Point Handle 25mm
Rotary Encoder - LED Array Touch LCD for ESP32/Pico/HAT $75.99
3 optionsAvailable in additional 3 options$7599current price $75.99Rotary Encoder - LED Array Touch LCD for ESP32/Pico/HAT
Resfab 59466- Genuine OEM Replacement Part $46.94
$4694current price $46.94Resfab 59466- Genuine OEM Replacement Part
