{"product_id":"ky-040-rotary-encoder-module-push-button-5v-diy-electronics","title":"KY-040 Rotary Encoder Module with Push Button 5V DIY","description":"\n\u003ch2\u003eKY-040 Rotary Encoder Module with Push Button\u003c\/h2\u003e\n\u003cp\u003eTake your electronics projects to the next level with the \u003cstrong\u003eKY-040 360° Rotary Encoder Module\u003c\/strong\u003e. Designed for makers, hobbyists, and engineers alike, this compact sensor module delivers precise rotational input with 20 pulses per revolution and a built-in push button — perfect for microcontroller and DIY electronics builds.\u003c\/p\u003e\n\n\u003ch3\u003eKey Features\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003e360° Continuous Rotation:\u003c\/strong\u003e Unlike a standard potentiometer, this encoder has no rotation limit — count pulses in both clockwise and counter-clockwise directions without restriction.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003e20 Pulses Per Revolution:\u003c\/strong\u003e Accurate, repeatable pulse output for precise control in your projects.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilt-In Push Button:\u003c\/strong\u003e Press the shaft to reset the counter back to zero — a convenient interactive function for user interfaces and menus.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003e5V Operating Voltage:\u003c\/strong\u003e Fully compatible with common microcontroller development boards and DIY electronics platforms operating at 5V.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompact PCB Design:\u003c\/strong\u003e Mounted on a clean, ready-to-use PCB (approx. 31 × 19 × 29 mm) with standard pin headers for easy wiring.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHigh Quality Construction:\u003c\/strong\u003e Built with quality electronic components on a durable PCB — 100% new and tested.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSpecifications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eModel:\u003c\/strong\u003e KY-040\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorking Voltage:\u003c\/strong\u003e 5V\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePulse Circle:\u003c\/strong\u003e 20 pulses per revolution\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDimensions:\u003c\/strong\u003e Approx. 31 × 19 × 29 mm (1.22″ × 0.75″ × 1.14″)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMain Color:\u003c\/strong\u003e Black\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMaterial:\u003c\/strong\u003e Electronic components + PCB\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBattery Included:\u003c\/strong\u003e No\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePackage:\u003c\/strong\u003e Available in 1, 2, or 3 sets\u003c\/li\u003e\n  \u003cli\u003e\u003cstrong\u003eMade in Mainland China\u003c\/strong\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eHow It Works\u003c\/h3\u003e\n\u003cp\u003eThe KY-040 rotary encoder outputs digital pulse signals as the shaft is turned, allowing your microcontroller to track direction and rotation count. When the shaft is pressed, the integrated push button triggers a reset signal — ideal for navigating menus, adjusting settings, or any interactive input application. Because there is no end-stop, the encoder can be turned indefinitely in either direction, making it ideal for volume controls, menu navigation, motor speed adjustment, and more.\u003c\/p\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eDIY electronics \u0026amp; maker projects\u003c\/li\u003e\n  \u003cli\u003eMicrocontroller input interfaces\u003c\/li\u003e\n  \u003cli\u003eVolume or parameter control knobs\u003c\/li\u003e\n  \u003cli\u003eMenu navigation systems\u003c\/li\u003e\n  \u003cli\u003eRobot motor control\u003c\/li\u003e\n  \u003cli\u003eConsumer electronics prototyping\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eRelated Products You May Like\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/cob-work-light-180-folding-flashlight-usb-rechargeable-magnetic\"\u003eCOB Work Light 180° Folding USB Rechargeable Flashlight Magnetic\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/led-tactical-flashlight-usb-rechargeable-waterproof-1000lm\"\u003eESMARTER LED Tactical Flashlight USB Rechargeable 1000LM\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/mini-clip-book-lamp-usb-c-rechargeable-led-reading-light-3-modes\"\u003eMini Clip Book Lamp USB-C Rechargeable LED Reading Light 3 Modes\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eLearn more: \u003ca href=\"https:\/\/www.osha.gov\/eye-face-protection\" target=\"_blank\" rel=\"noopener\"\u003eOSHA on eye and face protection\u003c\/a\u003e\u003c\/p\u003e\n\u003ch3\u003eFrequently Asked Questions\u003c\/h3\u003e\n\u003ch4\u003eQ: Is the KY-040 rotary encoder module compatible with popular microcontroller development boards?\u003c\/h4\u003e\n\u003cp\u003eA: Yes! The KY-040 rotary encoder module operates at 5V and is compatible with widely used 5V microcontroller development boards and DIY electronics platforms. Simply connect the CLK, DT, SW, VCC, and GND pins to your board's digital I\/O and power pins.\u003c\/p\u003e\n\u003ch4\u003eQ: What is the difference between a rotary encoder and a potentiometer?\u003c\/h4\u003e\n\u003cp\u003eA: A rotary potentiometer has a fixed start and end point and outputs an analog voltage. The KY-040 rotary encoder, by contrast, has no rotation limit — it spins freely in either direction and outputs digital pulses, allowing unlimited counting in both clockwise and counter-clockwise directions.\u003c\/p\u003e\n\u003ch4\u003eQ: How does the push button on the KY-040 work?\u003c\/h4\u003e\n\u003cp\u003eA: The push button is integrated into the encoder shaft. Pressing the shaft down triggers a button press signal on the SW pin, which you can program to reset your counter to zero or perform any other action in your project code.\u003c\/p\u003e\n\u003ch4\u003eQ: How many modules come in a package?\u003c\/h4\u003e\n\u003cp\u003eA: You can choose from a 1-set, 2-set, or 3-set package depending on your project needs — a great way to stock up for multiple builds at once.\u003c\/p\u003e\n\u003c!-- production-packaging-notice --\u003e\n\u003ch3\u003eProduction \u0026amp; Packaging Notice\u003c\/h3\u003e\n\u003cp\u003eTo maintain high stock availability and fast shipping times, our items are sourced from multiple verified manufacturing facilities. While the core quality, materials, and product specifications remain identical, you may notice slight variations in the packaging design, manufacturing origin, or the wording of the printed instructions.\u003c\/p\u003e\n\u003cscript type=\"application\/ld+json\"\u003e{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Is the KY-040 rotary encoder module compatible with popular microcontroller development boards?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes! The KY-040 rotary encoder module operates at 5V and is compatible with widely used 5V microcontroller development boards and DIY electronics platforms. Simply connect the CLK, DT, SW, VCC, and GND pins to your board's digital I\/O and power pins.\"}}, {\"@type\": \"Question\", \"name\": \"What is the difference between a rotary encoder and a potentiometer?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"A rotary potentiometer has a fixed start and end point and outputs an analog voltage. The KY-040 rotary encoder, by contrast, has no rotation limit — it spins freely in either direction and outputs digital pulses, allowing unlimited counting in both clockwise and counter-clockwise directions.\"}}, {\"@type\": \"Question\", \"name\": \"How does the push button on the KY-040 work?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The push button is integrated into the encoder shaft. Pressing the shaft down triggers a button press signal on the SW pin, which you can program to reset your counter to zero or perform any other action in your project code.\"}}, {\"@type\": \"Question\", \"name\": \"How many modules come in a package?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"You can choose from a 1-set, 2-set, or 3-set package depending on your project needs — a great way to stock up for multiple builds at once.\"}}]}\u003c\/script\u003e\n\u003cscript type=\"application\/ld+json\"\u003e{\"@context\": \"https:\/\/schema.org\", \"@type\": \"BreadcrumbList\", \"itemListElement\": [{\"@type\": \"ListItem\", \"position\": 1, \"name\": \"Home\", \"item\": \"https:\/\/bnshf1-m0.myshopify.com\/\"}, {\"@type\": \"ListItem\", \"position\": 2, \"name\": \"Home page\", \"item\": \"https:\/\/bnshf1-m0.myshopify.com\/collections\/frontpage\"}, {\"@type\": \"ListItem\", \"position\": 3, \"name\": \"KY-040 Rotary Encoder Module with Push Button 5V DIY\", \"item\": \"https:\/\/bnshf1-m0.myshopify.com\/products\/ky-040-rotary-encoder-module-push-button-5v-diy-electronics\"}]}\u003c\/script\u003e","brand":"SID","offers":[{"title":"3Sets","offer_id":67924274643034,"sku":"14:29#3Sets","price":17.67,"currency_code":"USD","in_stock":true},{"title":"2Sets","offer_id":67924274675802,"sku":"14:691#2Sets","price":13.67,"currency_code":"USD","in_stock":true},{"title":"1Set","offer_id":67924274708570,"sku":"14:10#1Set","price":10.36,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0774\/9242\/0698\/files\/Se8edb6192eeb4b79b90eb458fe8f8057d.webp?v=1793493690","url":"https:\/\/sidmartshop.com\/products\/ky-040-rotary-encoder-module-push-button-5v-diy-electronics","provider":"SID","version":"1.0","type":"link"}