- Home
- Catalogues
- List of Supervising Constructions for High School - High School 2025-2026
- Catalogue of Science and Technology Aids 2025-2026
- Design & Technology Catalogue Primary Schools 2024-2025
- Catalogue of Science and Technology Aids 2024-25
- Catalogue of Science and Technology Aids 2023-24
- Christmas Crafts Set
- Nursery Schools Catalogue 2022-2023
- Nursery Schools Catalogue 2020-2021
- Nursery Schools Catalogue 2018-2019
- Happy and Creative Hands
- Jobs Category
- About us
- FAQ
- Terms and conditions of use
- Privacy Policy
- Cookies Policy
- Payment Methods
- Shipping Methods
- Returns Policy
- Payment Response
- Registration Successful
- Shipments to Greece
- New Service Point
- Teacher Registration
- Box Now Shipping Service
- 40 years Antoniadis
- Catalogues
- Catalogues
- About us
- Payment Methods
-
Educational Products
-
School Equipment
- All
- Write 'N' Wipe Boards
- White Magnetic Boards
- Board Erasers & Cleaners
- Interactive Boards
- Cork Boards
- Boards Paper Roll
- Talking Points
- Measuring Instruments
- Rotary Trimmer & Guillotine Machines
- Binding Machines
- Laminators
- Maps
- Literacy
- Time
- Presenters
- Music Instruments
- Batteries
- USB Memory Sticks
- Pocket Charts
- Various
-
Stationery
-
STEM - Robotics - Programming
-
Electronics
-
Educational Toys & Construction Kits
- All
- Mechanics
- Robotics
- Coding
- Simple Circuit Kits
- Science
- Green Science
- Planets
- Dinosaurs - Volcanos
- Animals
- Lenses
- Logic / Understanding
- Card & Board Games
- Rubik's Cubes
- Puzzles
- Magnetic Boards
- Hama Beads
- Painting Sets
- Craft Sets
- Creative Hands
- Soft Play Dough
- Fridge Magnets
- Wooden toys
- Baby Toys
- Gadgets
- Construction "Antoniadis"
- Seasonal
- Birthday Gifts
- Gift Vouchers
-
Tools & Adhesives
-
Craft Materials
- All
- Resin Art, Casting & Sculpting
- Decoupage & Mixed Media
- Items for Decoration
- Model Making & Mockup Supplies
- Creation Materials
- Decoratives
- Paints - Colours
- Mediums & Auxiliaries
- Canvases & Canvas Panels
- Clocks & Accessories
- Cards & Papers
- Fabrics
- Scrapbooking - Papers
- Powertex
- Quilling
- Seasonal
- All
- Acrylics
- Metallic - Pearl
- Chalk Paints
- Oil Paints
- Watercolours - Temperas
- Glass paints
- Fabric Paints
- Pouring Paint Sets
- Face painting
- Lasur Paints
- Chalkboard
- Pencils
- Chalks
- Markers
- Pastel-Crayons
- Outliners
- Alcohol Inks
- Spray
- Pigments for Liquid Glass
- Pigments
- Coloring Books
- Painting by numbers
- Paint Palettes and Containers
-
Art Supplies
Rotary Encoder Module KY-040
The KY-040 Rotary Encoder Module (MPN: KY-040) is a compact 5V incremental rotary encoder designed for use with Arduino and compatible microcontrollers. Unlike a potentiometer, the KY-040 has no physical stops — it rotates continuously in both directions, making it ideal for any application that requires unlimited, bidirectional counting. An integrated push-button switch allows the user to reset or confirm a selection, adding an extra layer of interactivity to your project.
Key Features
- Bidirectional counting: Detects both clockwise and counter-clockwise rotation → suitable for menu navigation, motor control, and position tracking
- 20 pulses per revolution: Each full 360° rotation generates 20 output pulses → predictable, fine-grained resolution for precise control
- Unlimited rotation: No mechanical end-stop, unlike a potentiometer → continuous, unrestricted input
- Integrated push-button: Press the encoder shaft to trigger a button event → reset counter or confirm selection without extra components
- Ready-to-use PCB module: Pull-up resistors and decoupling capacitors included on-board → plug directly into a breadboard or Arduino header
- Compact form factor: 31 × 19 × 29 mm → fits easily in prototypes and enclosures
Pinout & Wiring
| Pin | Symbol | Description |
|---|---|---|
| 1 | CLK (A) | Clock output — primary pulse signal for rotation detection |
| 2 | DT (B) | Data output — used with CLK to determine rotation direction |
| 3 | SW | Push-button output — LOW when shaft is pressed |
| 4 | VCC | Power supply — connect to 5V |
| 5 | GND | Ground — connect to GND |
Connect VCC to Arduino 5V and GND to Arduino GND. Connect CLK and DT to any two digital input pins. Connect SW to a digital input pin. Read CLK and DT together in your sketch to determine rotation direction and speed.
Compatibility
- Arduino UNO / Nano / Mega: Direct 5V compatibility — connect VCC to the 5V pin, no level shifter required
- Raspberry Pi / ESP32 (3.3V logic): Requires a logic level shifter on CLK, DT, and SW pins, as the module operates at 5V
Typical Applications
- Menu navigation on LCD/OLED displays — scroll through options and confirm with the push-button
- Volume or brightness control in DIY audio or lighting projects
- Stepper motor or servo position input — set target position intuitively
- Parameter adjustment in embedded systems (e.g., set temperature, speed, frequency)
- Educational projects for learning digital signal reading and interrupt-based programming on Arduino
Technical Specifications
| Interface | Digital (CLK, DT, SW) |
| Working Voltage | 5V |
| Pulses per Revolution | 20 |
| Rotation | 360° unlimited, bidirectional |
| Push-button | Yes (integrated, active LOW) |
| Main Color | Black |
| Dimensions | 31 × 19 × 29 mm (1.22" × 0.75" × 1.14") |
| Material | Electronic components + PCB |
| MPN | KY-040 |
FAQ
Q: What is the difference between a rotary encoder and a potentiometer?
A: A potentiometer has a fixed range (0°–300°) and outputs an analog voltage. The KY-040 encoder rotates continuously with no limit and outputs digital pulses, making it better for counting steps, navigation menus, and precise control without signal drift.
Q: Do I need external pull-up resistors for the KY-040?
A: No. The KY-040 module includes on-board pull-up resistors for CLK, DT, and SW, so you can connect it directly to your Arduino digital pins without any additional components.
⚠ Note: This module operates at 5V. Direct connection to 3.3V-only systems (ESP32, Raspberry Pi) may cause damage to the host microcontroller. Always use a logic level shifter when interfacing with 3.3V boards.