Description
The KY-040 Rotary Encoder Module is a widely used incremental rotary encoder designed to convert rotational movement into digital pulse signals. By rotating the encoder knob, the module can detect both clockwise (CW) and counter-clockwise (CCW) rotation and output corresponding pulses.
Unlike rotary potentiometers, the KY-040 has no mechanical rotation limit, allowing unlimited turns without wear-related accuracy loss. The module also includes a built-in push button switch, which can be used for resetting values, confirming selections, or triggering actions in microcontroller projects.
The encoder outputs two digital signals (Channel A and Channel B) with a 90-degree phase difference, enabling precise detection of both rotation direction and step count. This makes it ideal for applications such as menu navigation, speed control, volume control, parameter tuning, counters, and position sensing.
The KY-040 module is fully compatible with Arduino, ESP8266, ESP32, Raspberry Pi, PIC, AVR, STM32, and other microcontrollers, making it a popular choice for DIY electronics, robotics, automation, and educational projects.
⭐ Key Features
Incremental rotary encoder with direction detection
Detects both clockwise & counter-clockwise rotation
Unlimited rotation (no stop like potentiometers)
Built-in push button switch
Dual-channel output (A & B) with 90° phase shift
Stable digital signal output
Low power consumption
Easy interfacing with Arduino & other MCUs
Compact, PCB-mounted module
Ideal for user input and control systems
🔧 Technical Specifications
Working Voltage: 5V
Pulses per Revolution: 20
Encoder Type: Incremental
Output Channels: A & B
Button Output: SW (Push Button)
Interface Type: Digital
Dimensions: 31 × 19 × 29 mm
Color: Black
Mounting: PCB mount
📦 Package Includes
1 × KY-040 Rotary Encoder Module with Push Button
⚙️ Applications
Arduino & microcontroller projects
Menu navigation systems
Speed and RPM control
Volume and brightness adjustment
Counters and position sensing
Robotics & automation
User interface input devices
DIY electronics and learning kits
🇧🇩 পণ্যের বিবরণ (বাংলা)
KY-040 রোটারি এনকোডার মডিউল একটি জনপ্রিয় ইনক্রিমেন্টাল রোটারি এনকোডার, যা ঘূর্ণনের গতিকে ডিজিটাল পালস সিগন্যালে রূপান্তর করে। নব ঘোরালে এটি Clockwise (ডান দিকে) ও Counter-Clockwise (বাম দিকে) উভয় দিকের ঘূর্ণন শনাক্ত করতে পারে এবং সেই অনুযায়ী পালস আউটপুট দেয়।
পোটেনশিওমিটারের মতো এতে কোনো নির্দিষ্ট ঘোরার সীমা নেই—অনির্দিষ্ট সংখ্যক বার ঘোরানো যায়। এছাড়া মডিউলটিতে একটি বিল্ট-ইন পুশ বাটন সুইচ রয়েছে, যা রিসেট, সিলেক্ট বা কনফার্ম অপারেশনের জন্য ব্যবহার করা যায়।
এনকোডারটি A ও B দুটি ডিজিটাল আউটপুট চ্যানেল প্রদান করে, যাদের মধ্যে ৯০° ফেজ পার্থক্য থাকে। এর মাধ্যমে সহজেই ঘূর্ণনের দিক ও ধাপ সংখ্যা নির্ভুলভাবে নির্ণয় করা যায়। এজন্য এটি মেনু কন্ট্রোল, স্পিড কন্ট্রোল, ভলিউম কন্ট্রোল, কাউন্টার এবং পজিশন সেন্সিং-এর জন্য অত্যন্ত উপযোগী।
KY-040 মডিউলটি Arduino, ESP8266, ESP32, Raspberry Pi, PIC, AVR, STM32 সহ প্রায় সব মাইক্রোকন্ট্রোলারের সাথে সম্পূর্ণভাবে কম্প্যাটিবল। এটি DIY ইলেকট্রনিক্স, রোবটিক্স, অটোমেশন ও শিক্ষামূলক প্রোজেক্টে ব্যাপকভাবে ব্যবহৃত হয়।
⭐ মূল বৈশিষ্ট্য
ইনক্রিমেন্টাল রোটারি এনকোডার
ডান ও বাম উভয় দিকের ঘূর্ণন শনাক্ত করে
ঘোরানোর কোনো সীমা নেই
বিল্ট-ইন পুশ বাটন সুইচ
A ও B ডুয়াল আউটপুট (৯০° ফেজ ডিফারেন্স)
স্থিতিশীল ডিজিটাল সিগন্যাল
কম বিদ্যুৎ খরচ
Arduino ও MCU-এর সাথে সহজ সংযোগ
ছোট ও PCB-মাউন্ট ডিজাইন
ইউজার ইনপুট সিস্টেমের জন্য আদর্শ
🔧 টেকনিক্যাল স্পেসিফিকেশন
কাজের ভোল্টেজ: 5V
প্রতি ঘূর্ণনে পালস সংখ্যা: 20
এনকোডার টাইপ: ইনক্রিমেন্টাল
আউটপুট চ্যানেল: A ও B
বাটন আউটপুট: SW
ইন্টারফেস: ডিজিটাল
সাইজ: 31 × 19 × 29 মিমি
রঙ: কালো
মাউন্টিং: PCB মাউন্ট
📦 প্যাকেজে যা থাকছে
১ × KY-040 রোটারি এনকোডার মডিউল (পুশ বাটনসহ)
⚙️ ব্যবহারের ক্ষেত্র
Arduino ও মাইক্রোকন্ট্রোলার প্রোজেক্ট
মেনু ন্যাভিগেশন সিস্টেম
স্পিড ও RPM কন্ট্রোল
ভলিউম ও ব্রাইটনেস কন্ট্রোল
কাউন্টার ও পজিশন সেন্সিং
রোবটিক্স ও অটোমেশন
ইউজার ইনপুট ডিভাইস
DIY ও শিক্ষামূলক কিট
🔍 SEO Meta (Optional for Website)
Meta Title:
KY-040 Rotary Encoder Module with Button | Incremental Encoder for Arduino | Robotech Shop BD
Meta Description:
Buy KY-040 rotary encoder module with push button. 5V incremental encoder, 20 pulses per revolution, ideal for Arduino, ESP32, robotics & DIY electronics projects.







