{"id":368,"date":"2025-11-20T19:52:03","date_gmt":"2025-11-20T19:52:03","guid":{"rendered":"https:\/\/hamtechtechnologies.com\/index.php\/product\/rotary-encoder\/"},"modified":"2025-11-28T03:49:23","modified_gmt":"2025-11-28T03:49:23","slug":"rotary-encoder","status":"publish","type":"product","link":"https:\/\/hamtechtechnologies.com\/index.php\/product\/rotary-encoder\/","title":{"rendered":"Rotary Encoder"},"content":{"rendered":"<p data-start=\"376\" data-end=\"642\">The <strong data-start=\"380\" data-end=\"405\">KY-040 Rotary Encoder<\/strong> is a digital knob used to detect rotational movement and direction. Unlike potentiometers, rotary encoders can rotate endlessly, making them perfect for adjusting parameters, navigating menus, or controlling motor speeds without limits.<\/p>\n<p data-start=\"644\" data-end=\"884\">It provides two out-of-phase signals (A and B), enabling microcontrollers to detect rotation direction and count steps accurately. A push-button is built into the knob, offering an additional input for selecting items or toggling functions.<\/p>\n<p data-start=\"886\" data-end=\"985\">Widely used in embedded systems, user-interface panels, 3D printers, audio equipment, and robotics.<\/p>\n<hr data-start=\"987\" data-end=\"990\" \/>\n<h3 data-start=\"992\" data-end=\"1014\"><strong data-start=\"996\" data-end=\"1012\">Key Features<\/strong><\/h3>\n<ul data-start=\"1015\" data-end=\"1261\">\n<li data-start=\"1015\" data-end=\"1043\">\n<p data-start=\"1017\" data-end=\"1043\">360\u00b0 continuous rotation<\/p>\n<\/li>\n<li data-start=\"1044\" data-end=\"1075\">\n<p data-start=\"1046\" data-end=\"1075\">Built-in push-button switch<\/p>\n<\/li>\n<li data-start=\"1076\" data-end=\"1113\">\n<p data-start=\"1078\" data-end=\"1113\">Provides direction and step count<\/p>\n<\/li>\n<li data-start=\"1114\" data-end=\"1143\">\n<p data-start=\"1116\" data-end=\"1143\">Stable mechanical detents<\/p>\n<\/li>\n<li data-start=\"1144\" data-end=\"1199\">\n<p data-start=\"1146\" data-end=\"1199\">Ideal for menu navigation and parameter adjustments<\/p>\n<\/li>\n<li data-start=\"1200\" data-end=\"1261\">\n<p data-start=\"1202\" data-end=\"1261\">Easy interface with Arduino, ESP32, ESP8266, Raspberry Pi<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1263\" data-end=\"1266\" \/>\n<h3 data-start=\"1268\" data-end=\"1290\"><strong data-start=\"1272\" data-end=\"1290\">Specifications<\/strong><\/h3>\n<div class=\"_tableContainer_1rjym_1\">\n<div class=\"group _tableWrapper_1rjym_13 flex w-fit flex-col-reverse\" tabindex=\"-1\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"1292\" data-end=\"1618\">\n<thead data-start=\"1292\" data-end=\"1313\">\n<tr data-start=\"1292\" data-end=\"1313\">\n<th data-start=\"1292\" data-end=\"1302\" data-col-size=\"sm\">Feature<\/th>\n<th data-start=\"1302\" data-end=\"1313\" data-col-size=\"sm\">Details<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"1335\" data-end=\"1618\">\n<tr data-start=\"1335\" data-end=\"1376\">\n<td data-start=\"1335\" data-end=\"1350\" data-col-size=\"sm\">Encoder Type<\/td>\n<td data-col-size=\"sm\" data-start=\"1350\" data-end=\"1376\">Incremental mechanical<\/td>\n<\/tr>\n<tr data-start=\"1377\" data-end=\"1403\">\n<td data-start=\"1377\" data-end=\"1397\" data-col-size=\"sm\">Operating Voltage<\/td>\n<td data-col-size=\"sm\" data-start=\"1397\" data-end=\"1403\">5V<\/td>\n<\/tr>\n<tr data-start=\"1404\" data-end=\"1456\">\n<td data-start=\"1404\" data-end=\"1414\" data-col-size=\"sm\">Signals<\/td>\n<td data-start=\"1414\" data-end=\"1456\" data-col-size=\"sm\">A (CLK), B (DT), Switch (SW), VCC, GND<\/td>\n<\/tr>\n<tr data-start=\"1457\" data-end=\"1500\">\n<td data-start=\"1457\" data-end=\"1478\" data-col-size=\"sm\">Steps per Rotation<\/td>\n<td data-col-size=\"sm\" data-start=\"1478\" data-end=\"1500\">Typically 20 steps<\/td>\n<\/tr>\n<tr data-start=\"1501\" data-end=\"1540\">\n<td data-start=\"1501\" data-end=\"1515\" data-col-size=\"sm\">Push Button<\/td>\n<td data-col-size=\"sm\" data-start=\"1515\" data-end=\"1540\">Integrated, momentary<\/td>\n<\/tr>\n<tr data-start=\"1541\" data-end=\"1577\">\n<td data-start=\"1541\" data-end=\"1554\" data-col-size=\"sm\">Shaft Type<\/td>\n<td data-start=\"1554\" data-end=\"1577\" data-col-size=\"sm\">Knurled metal shaft<\/td>\n<\/tr>\n<tr data-start=\"1578\" data-end=\"1618\">\n<td data-start=\"1578\" data-end=\"1589\" data-col-size=\"sm\">Mounting<\/td>\n<td data-start=\"1589\" data-end=\"1618\" data-col-size=\"sm\">PCB mount module (KY-040)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<hr data-start=\"1620\" data-end=\"1623\" \/>\n<h3 data-start=\"1625\" data-end=\"1647\"><strong data-start=\"1629\" data-end=\"1645\">Applications<\/strong><\/h3>\n<ul data-start=\"1648\" data-end=\"1854\">\n<li data-start=\"1648\" data-end=\"1688\">\n<p data-start=\"1650\" data-end=\"1688\">Menu navigation on LCDs\/TFT displays<\/p>\n<\/li>\n<li data-start=\"1689\" data-end=\"1712\">\n<p data-start=\"1691\" data-end=\"1712\">Motor speed control<\/p>\n<\/li>\n<li data-start=\"1713\" data-end=\"1731\">\n<p data-start=\"1715\" data-end=\"1731\">Volume control<\/p>\n<\/li>\n<li data-start=\"1732\" data-end=\"1760\">\n<p data-start=\"1734\" data-end=\"1760\">3D printer control knobs<\/p>\n<\/li>\n<li data-start=\"1761\" data-end=\"1784\">\n<p data-start=\"1763\" data-end=\"1784\">DIY audio equipment<\/p>\n<\/li>\n<li data-start=\"1785\" data-end=\"1818\">\n<p data-start=\"1787\" data-end=\"1818\">Control panels and dashboards<\/p>\n<\/li>\n<li data-start=\"1819\" data-end=\"1854\">\n<p data-start=\"1821\" data-end=\"1854\">User input for embedded devices<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1856\" data-end=\"1859\" \/>\n<h3 data-start=\"1861\" data-end=\"1898\"><strong data-start=\"1865\" data-end=\"1896\">Compatible Boards \/ Systems<\/strong><\/h3>\n<ul data-start=\"1899\" data-end=\"2043\">\n<li data-start=\"1899\" data-end=\"1928\">\n<p data-start=\"1901\" data-end=\"1928\">Arduino Uno \/ Nano \/ Mega<\/p>\n<\/li>\n<li data-start=\"1929\" data-end=\"1948\">\n<p data-start=\"1931\" data-end=\"1948\">ESP32 \/ ESP8266<\/p>\n<\/li>\n<li data-start=\"1949\" data-end=\"1965\">\n<p data-start=\"1951\" data-end=\"1965\">Raspberry Pi<\/p>\n<\/li>\n<li data-start=\"1966\" data-end=\"1995\">\n<p data-start=\"1968\" data-end=\"1995\">STM32, MicroPython boards<\/p>\n<\/li>\n<li data-start=\"1996\" data-end=\"2043\">\n<p data-start=\"1998\" data-end=\"2043\">Any microcontroller with digital interrupts<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A mechanical <strong data-start=\"179\" data-end=\"197\">rotary encoder<\/strong> that detects rotation direction and step count, ideal for menu navigation, motor control, and user interfaces on Arduino and ESP32 projects.<\/p>\n","protected":false},"featured_media":461,"comment_status":"open","ping_status":"closed","template":"","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""}},"product_brand":[],"product_cat":[353,363,356],"product_tag":[319,318],"class_list":{"0":"post-368","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-accessories","7":"product_cat-electronics","8":"product_cat-electronics-components","9":"product_tag-encoder","10":"product_tag-rotary","12":"first","13":"instock","14":"taxable","15":"shipping-taxable","16":"purchasable","17":"product-type-simple"},"_links":{"self":[{"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/product\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/comments?post=368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/media\/461"}],"wp:attachment":[{"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/product_brand?post=368"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/product_cat?post=368"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/hamtechtechnologies.com\/index.php\/wp-json\/wp\/v2\/product_tag?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}