Schematik raised $4.6M to help anyone build hardware with AI$4.6MIL PRE-SEED ANNOUNCEMENT
CommunityPartsBlogAbout
CommunityPartsBlogAbout

Product

  • Home
  • Try Schematik
  • Download

Resources

  • Community
  • ESP32 projects
  • Blog
  • Press
  • Information for AI

Compare

  • Schematik or Fritzing
  • Schematik or Tinkercad
  • Schematik or Wokwi
  • Schematik or Claude Code

Company

  • Company
  • Jobs
  • Privacy
Making
hardware
less hard

Built with love in Europe. For makers everywhere.

© 2026 Schematik

All rights reserved

  1. Parts
  2. /Components
  3. /Passives

KY-040 Rotary Encoder Module

OverviewAlternates
KY-040 Rotary Encoder Module - ky-040-rotary-encoder-module

A compact incremental rotary encoder module with quadrature CLK and DT outputs plus an integrated momentary push switch. The five-pin interface exposes CLK, DT, SW, supply, and ground for breadboard-friendly user input.

Parts tray full · 5 max · remove a part to add another
KY-040 Rotary Encoder Module — ky-040-rotary-encoder-module

Offers

  • ?Parallax$2.95

Offers

  • ?Parallax$2.95

Pinout

  • VCC

    Logic supply. Use 3.3V with 3.3V microcontrollers.

    Type · powerVoltage · 3.3
  • GND

    Ground reference.

    Type · ground
  • CLK

    Quadrature encoder channel A.

    Type · digital
  • DT

    Quadrature encoder channel B.

    Type · digital
  • SW

    Integrated momentary push switch output.

    Type · digital
PinPositionTypeFunctionVoltage
VCCpowerLogic supply. Use 3.3V with 3.3V microcontrollers.3.3
GNDgroundGround reference.
CLKdigitalQuadrature encoder channel A.
DTdigitalQuadrature encoder channel B.
SWdigitalIntegrated momentary push switch output.

Passives

57 other options

E12 resistor kits, ceramic and electrolytic capacitor sets, 1N4148/1N4007 diodes, TIP120 Darlingtons, IRLZ44N MOSFETs and 100F supercapacitors — bench stock in kit quantities.

View all 57
  • 1/4W Resistor Pack - 400 PCS visual preview

    1/4W Resistor Pack - 400 PCS

  • 1N4001 Diode - 10 pack visual preview

    1N4001 Diode - 10 pack

    $1.50
  • 1N4007 Diode visual preview

    1N4007 Diode

    ?
  • 1N4148 General Purpose Fast Switching Diode visual preview

    1N4148 General Purpose Fast Switching Diode

    €2.45?
  • 220 Ω Metal Film Resistors, 1/4 W (Pack of 10) visual preview

    220 Ω Metal Film Resistors, 1/4 W (Pack of 10)

    ?
  • 3mm LED Blue - 25 PCs visual preview

    3mm LED Blue - 25 PCs

  • 3mm LED Pack (50 PCS) visual preview

    3mm LED Pack (50 PCS)

  • 5mm Green LED visual preview

    5mm Green LED

    ?
  • 5mm LED Pack (6 PCS) visual preview

    5mm LED Pack (6 PCS)

  • 6-Ch High Current Driver 1X3 Kit v1 visual preview

    6-Ch High Current Driver 1X3 Kit v1

  • 74HC165 Parallel-In Serial-Out Shift Register visual preview

    74HC165 Parallel-In Serial-Out Shift Register

    ?
  • 74HC4067 16-Channel Analog Multiplexer visual preview

    74HC4067 16-Channel Analog Multiplexer

    ?

Related groups

4 groups
10W Super Bright LED - Violet visual preview
10W Super Bright LED - Warm White visual preview
3-Pin LED Strip Connector Cable - Single Head (5PCS) visual preview
3-Pin LED Strip Connector Cable (5PCS) visual preview

LED pixels

WS2812/SK6812 NeoPixel strips, rings and Jewels, APA102 DotStar pixels, and plain analog RGB strips — each matched to its protocol and host, not just its connector.

Components · Addressable LEDs · 180 parts

18-Channel 8-bit PWM LED Driver w/ I2C Interface visual preview
24LC256 I/P I2C EEPROM PDIP-8 visual preview
24LC256 P DIP-8 visual preview
4N25 DIP-6 visual preview

Bare ICs

74HC logic gates, MCP3008/MCP23017 ADCs and expanders, 24LC256 EEPROM, 4N25-series optocouplers and ULN2803A drivers — bare DIP chips with no breakout-board conveniences like pull-ups or level shifting.

Components · Integrated circuits · 68 parts

10-bit ADC (SPI) visual preview
2-Channel RS232 Module for Raspberry Pi Pico visual preview
4-Ch USB 3.2 Gen1 Hub (USB3.2-Gen1-HUB-4U) visual preview
6-in-1 USB to Serial Converter visual preview

Converters

ADS1115/MCP3421 ADCs, MCP4725 and GP8413 DACs, CP2102 USB-UART boards, and I2C plumbing like the LTC4316 address shifter — matched to bus, resolution and signal range.

Components · Interface converters · 114 parts

256MB Micro SD Memory Card visual preview
25LC256 256 Kbit SPI EEPROM visual preview
64 Mbit Serial Pseudo SRAM - PSRAM - 3.3V 133 MHz visual preview
8GB Class 10 SD/MicroSD Memory Card - SD Adapter Included visual preview

Memory

24LC32/25LC256 EEPROM, I2C FRAM, 64Mbit PSRAM, and microSD breakouts up to 64GB — matched to write frequency and data volume, not just interface.

Components · Memory & storage · 39 parts