{"product_id":"hw-040-360-degree-rotary-encoder-module-push-button-arduino","title":"HW-040 360° Rotary Encoder Module with Push Button for Arduino","description":"\n\u003ch2\u003e360° Rotary Encoder Module HW-040 — Precise Rotational Input for Arduino Projects\u003c\/h2\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eHW-040 Rotary Encoder Module\u003c\/strong\u003e is a versatile, high-quality electronic sensor brick designed for makers, hobbyists, and developers who need accurate rotational input in their Arduino or microcontroller projects. Unlike a traditional potentiometer, this encoder offers \u003cstrong\u003eunlimited clockwise and counterclockwise rotation\u003c\/strong\u003e, counting every pulse with precision — making it ideal for menus, volume controls, motor control, and custom interfaces.\u003c\/p\u003e\n\n\u003ch3\u003eKey Features\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFull 360° Continuous Rotation:\u003c\/strong\u003e Accurately counts pulses in both clockwise and counterclockwise directions with no rotational limits.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilt-in Push Button:\u003c\/strong\u003e Integrated push-button switch adds an extra input dimension — press to confirm, select, or trigger a function.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePCB + Brass Construction:\u003c\/strong\u003e Durable PCB board paired with a brass encoder shaft for long-lasting, reliable performance.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eArduino Compatible:\u003c\/strong\u003e Designed as a \"brick\" sensor module for easy plug-and-play integration with Arduino, Raspberry Pi, ESP32, and other popular development boards.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompact Form Factor:\u003c\/strong\u003e Small footprint makes it perfect for prototyping and embedding in finished projects.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMultiple Quantity Options:\u003c\/strong\u003e Available in packs of 1 to 8 pieces — stock up for multiple builds.\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 HW-040\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMaterial:\u003c\/strong\u003e PCB + Brass\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRotation:\u003c\/strong\u003e 360° unlimited (clockwise \u0026amp; counterclockwise)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutput:\u003c\/strong\u003e Incremental pulse signal (A, B, SW pins)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompatible With:\u003c\/strong\u003e Arduino, ESP32, Raspberry Pi, STM32, and similar platforms\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIncludes:\u003c\/strong\u003e Push button switch integrated into shaft\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhat Can You Build With It?\u003c\/h3\u003e\n\u003cp\u003eThe HW-040 encoder module is a go-to component for a wide range of DIY electronics projects:\u003c\/p\u003e\n\u003cul\u003e\n  \u003cli\u003eDigital volume or brightness controls\u003c\/li\u003e\n  \u003cli\u003eMenu navigation systems for OLED\/LCD displays\u003c\/li\u003e\n  \u003cli\u003eStepper motor speed and direction control\u003c\/li\u003e\n  \u003cli\u003eCustom game controllers and simulators\u003c\/li\u003e\n  \u003cli\u003eCNC machine jog wheels\u003c\/li\u003e\n  \u003cli\u003eHome automation input devices\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eHow It Works\u003c\/h3\u003e\n\u003cp\u003eThe rotary encoder generates two phase-offset square wave signals (Channel A and Channel B) as the shaft turns. By reading the relationship between these two signals, your microcontroller can determine both the \u003cstrong\u003edirection\u003c\/strong\u003e and \u003cstrong\u003enumber of steps\u003c\/strong\u003e of rotation. The integrated push button provides a simple LOW signal when pressed, giving you a clean, multi-function input component in one tidy package.\u003c\/p\u003e\n\n\u003cp\u003eFor more information on working with electronic sensors and microcontrollers in DIY projects, visit the \u003ca href=\"https:\/\/www.nist.gov\/topics\/electronics\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eNational Institute of Standards and Technology (NIST) — Electronics\u003c\/a\u003e resource page.\u003c\/p\u003e\n\n\u003ch3\u003eFrequently Asked Questions\u003c\/h3\u003e\n\n\u003ch4\u003eQ: What is the HW-040 Rotary Encoder Module and what does it do?\u003c\/h4\u003e\n\u003cp\u003eA: The HW-040 is a 360° incremental rotary encoder module that detects rotational movement and direction. It outputs pulse signals (channels A and B) that a microcontroller like Arduino can read to determine how far and in which direction the shaft has been turned. It also features a built-in push button for added functionality.\u003c\/p\u003e\n\n\u003ch4\u003eQ: Is the HW-040 Rotary Encoder compatible with Arduino?\u003c\/h4\u003e\n\u003cp\u003eA: Yes — the HW-040 is specifically designed as a \"brick\" sensor module for easy integration with Arduino boards, as well as Raspberry Pi, ESP32, STM32, and other common development platforms. Standard Arduino encoder libraries can be used right out of the box.\u003c\/p\u003e\n\n\u003ch4\u003eQ: How is this rotary encoder different from a potentiometer?\u003c\/h4\u003e\n\u003cp\u003eA: Unlike a potentiometer, the HW-040 rotary encoder has \u003cstrong\u003eno rotational limit\u003c\/strong\u003e — it can spin continuously in either direction and counts every pulse, making it far more flexible for applications like menu navigation, motor control, and any input where you need to track relative position without a stop.\u003c\/p\u003e\n\n\u003ch4\u003eQ: What materials is the HW-040 module made from?\u003c\/h4\u003e\n\u003cp\u003eA: The module is constructed from a durable PCB (printed circuit board) paired with a brass encoder shaft, ensuring solid electrical connections and mechanical durability over repeated use.\u003c\/p\u003e\n\n\u003ch4\u003eQ: How many units can I order at once?\u003c\/h4\u003e\n\u003cp\u003eA: This listing is available in packs of 1 to 8 pieces, so you can stock up for multiple projects or prototyping sessions at once.\u003c\/p\u003e\n\n\u003cscript type=\"application\/ld+json\"\u003e{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"What is the HW-040 Rotary Encoder Module and what does it do?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The HW-040 is a 360° incremental rotary encoder module that detects rotational movement and direction. It outputs pulse signals (channels A and B) that a microcontroller like Arduino can read to determine how far and in which direction the shaft has been turned. It also features a built-in push button for added functionality.\"}}, {\"@type\": \"Question\", \"name\": \"Is the HW-040 Rotary Encoder compatible with Arduino?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes — the HW-040 is specifically designed as a \\\"brick\\\" sensor module for easy integration with Arduino boards, as well as Raspberry Pi, ESP32, STM32, and other common development platforms. Standard Arduino encoder libraries can be used right out of the box.\"}}, {\"@type\": \"Question\", \"name\": \"How is this rotary encoder different from a potentiometer?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Unlike a potentiometer, the HW-040 rotary encoder has no rotational limit — it can spin continuously in either direction and counts every pulse, making it far more flexible for applications like menu navigation, motor control, and any input where you need to track relative position without a stop.\"}}, {\"@type\": \"Question\", \"name\": \"What materials is the HW-040 module made from?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The module is constructed from a durable PCB (printed circuit board) paired with a brass encoder shaft, ensuring solid electrical connections and mechanical durability over repeated use.\"}}, {\"@type\": \"Question\", \"name\": \"How many units can I order at once?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"This listing is available in packs of 1 to 8 pieces, so you can stock up for multiple projects or prototyping sessions 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:\/\/vpggdm-rp.myshopify.com\/\"}, {\"@type\": \"ListItem\", \"position\": 2, \"name\": \"Craft \u0026 DIY Supplies\", \"item\": \"https:\/\/vpggdm-rp.myshopify.com\/collections\/craft-diy-supplies\"}, {\"@type\": \"ListItem\", \"position\": 3, \"name\": \"HW-040 360° Rotary Encoder Module with Push Button for Arduino\", \"item\": \"https:\/\/vpggdm-rp.myshopify.com\/products\/hw-040-360-degree-rotary-encoder-module-push-button-arduino\"}]}\u003c\/script\u003e","brand":"Qme","offers":[{"title":"5PCS","offer_id":49710262485206,"sku":"14:201659813#5PCS","price":21.47,"currency_code":"USD","in_stock":true},{"title":"6PCS","offer_id":49710262517974,"sku":"14:10#6PCS","price":21.47,"currency_code":"USD","in_stock":true},{"title":"8PCS","offer_id":49710262550742,"sku":"14:29#8PCS","price":21.47,"currency_code":"USD","in_stock":true},{"title":"1PC","offer_id":49710262583510,"sku":"14:1202#1PC","price":21.47,"currency_code":"USD","in_stock":true},{"title":"2PCS","offer_id":49710262616278,"sku":"14:350852#2PCS","price":21.47,"currency_code":"USD","in_stock":true},{"title":"3PCS","offer_id":49710262649046,"sku":"14:351074#3PCS","price":21.47,"currency_code":"USD","in_stock":true},{"title":"4PCS","offer_id":49710262681814,"sku":"14:4044226#4PCS","price":21.47,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0827\/5243\/8486\/files\/S5193b9d9113e45758a8495d1a3ca4942v.webp?v=1785216867","url":"https:\/\/qmeboost.com\/products\/hw-040-360-degree-rotary-encoder-module-push-button-arduino","provider":"Qme","version":"1.0","type":"link"}