{"product_id":"rotary-encoder-20-pulse-incremental-with-push-button","title":"Rotary Encoder - 20 Pulse Incremental with Push Button","description":"\u003ch1\u003eRotary Encoder - 20 Pulse\/Rev Incremental with Push Button\u003c\/h1\u003e\n\u003cp\u003eThis rotary encoder is a mechanical incremental input device that translates shaft rotation into digital pulses. It provides 20 pulses per revolution with detents, plus a built-in momentary push switch. Commonly used for precise user input in microcontroller projects, it offers haptic feedback for accurate navigation and adjustment.\u003c\/p\u003e\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V - 5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003ePulses per Revolution\u003c\/td\u003e\n\u003ctd\u003e20 (with detents)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eSwitch Type\u003c\/td\u003e\n\u003ctd\u003eMomentary push button\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOutput Signal\u003c\/td\u003e\n\u003ctd\u003eQuadrature (two channels)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eShaft Dimensions\u003c\/td\u003e\n\u003ctd\u003e6mm diameter, 15mm length\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003ePin Count\u003c\/td\u003e\n\u003ctd\u003e5 (A, B, Button, VCC, GND)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eDIY volume controller for audio systems\u003c\/li\u003e\n  \u003cli\u003eNavigation wheel for menu interfaces on OLED displays\u003c\/li\u003e\n  \u003cli\u003eMotorized camera slider position control\u003c\/li\u003e\n  \u003cli\u003eDigital potentiometer replacement for adjustable power supplies\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eThis rotary encoder works with any 3.3V or 5V microcontroller like Arduino Uno, Nano, ESP8266, ESP32, and Raspberry Pi Pico. It connects directly to digital I\/O pins without additional level shifting. Standard libraries like Encoder.h simplify reading rotation and direction.\u003c\/p\u003e\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eConnect the A and B pins to interrupt-capable digital pins for accurate step reading. Use 10kΩ pull-up resistors on all signal lines if the microcontroller lacks internal pull-ups. The push button requires a 10kΩ resistor to VCC and a debounce capacitor or software debouncing.\u003c\/p\u003e\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino?\u003c\/summary\u003e\u003cp\u003eYes, it works with all Arduino boards. Use the encoder library on digital pins 2 and 3 (interrupt pins) for reliable performance.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eHow many detents per revolution?\u003c\/summary\u003e\u003cp\u003eIt has 20 detents per full rotation, giving you tactile feedback for precise positioning without looking at the knob.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan the push button be used independently?\u003c\/summary\u003e\u003cp\u003eAbsolutely. The momentary switch is completely independent of the encoder signals, with its own dedicated pin for user input.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53445073863021,"sku":"CDN-0916","price":85.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_b89fb340-e0a8-4ae5-a778-e3a53caed2e8.jpg?v=1781513154","url":"https:\/\/compoden.com\/products\/rotary-encoder-20-pulse-incremental-with-push-button","provider":"Compoden","version":"1.0","type":"link"}