{"product_id":"ky-040-rotary-encoder-module-with-push-button-for-arduino","title":"KY-040 Rotary Encoder Module with Push Button for Arduino","description":"\u003ch2\u003eAdd a knob and a click button to your Arduino projects.\u003c\/h2\u003e\u003cp\u003eThe KY-040 rotary encoder module gives your Arduino build a turnable knob with a built-in push button. It is a handy way to add menu navigation, volume control or value adjustment to a DIY electronics project without building the circuit from scratch.\u003c\/p\u003e\u003ch3\u003eWhy You'll Love It\u003c\/h3\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eTurn to adjust:\u003c\/strong\u003e The rotary shaft lets you step a value up or down with each turn, ideal for settings and menus.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003ePress to select:\u003c\/strong\u003e The integrated push button adds a second input, so one module can handle both turning and confirming.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eEasy mounting:\u003c\/strong\u003e The threaded bushing and nut let you fix the encoder to a panel or enclosure.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eClear pin layout:\u003c\/strong\u003e The labelled header pins make it straightforward to wire up to a microcontroller.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCompact board:\u003c\/strong\u003e A small PCB keeps your project tidy and easy to fit into tight spaces.\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch3\u003eProduct Details\u003c\/h3\u003e\u003cul\u003e\n\u003cli\u003eType: Rotary encoder with push button\u003c\/li\u003e\n\u003cli\u003eBoard: Small black PCB with five header pins\u003c\/li\u003e\n\u003cli\u003eMounting: Threaded bushing with nut\u003c\/li\u003e\n\u003cli\u003ePull-up resistors on board: three 10K resistors (R1, R2, R3)\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch3\u003eWhat's in the Box\u003c\/h3\u003e\u003cul\u003e\u003cli\u003e1 x KY-040 rotary encoder module\u003c\/li\u003e\u003c\/ul\u003e\u003ch3\u003eHow to Use\u003c\/h3\u003e\u003col\u003e\n\u003cli\u003eMount the encoder through a panel hole and secure it with the nut.\u003c\/li\u003e\n\u003cli\u003eConnect the header pins to your Arduino, such as CLK, DT, SW, +, and GND.\u003c\/li\u003e\n\u003cli\u003eRead the rotation direction and push button state in your sketch.\u003c\/li\u003e\n\u003c\/ol\u003e\u003ch3\u003eGood to Know\u003c\/h3\u003e\u003cp\u003eThis module is intended for use with Arduino and similar microcontrollers. Check the pin labels on your board before wiring, as pin order can vary between versions. Rotation is detected as clicks, so count steps in your code rather than expecting a continuous reading.\u003c\/p\u003e\u003ch3\u003eFAQ\u003c\/h3\u003e\u003cp\u003e\u003cstrong\u003eDo I need to solder this module?\u003c\/strong\u003e\u003cbr\u003eThe module has header pins, so you can connect it with jumper wires. Soldering is only needed if you want a permanent connection.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eCan I use it to control volume?\u003c\/strong\u003e\u003cbr\u003eYes. Turning the knob can increment or decrement a value in your code, which is a common way to control volume or brightness in a project.\u003c\/p\u003e","brand":"Hemlund","offers":[{"title":"Default Title","offer_id":48757957886036,"sku":null,"price":18.69,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0712\/2249\/3268\/files\/s-l1600_75c88ab2-f27b-4015-842c-c51cd13c3bca.jpg?v=1795793247","url":"https:\/\/hemlund.com\/products\/ky-040-rotary-encoder-module-with-push-button-for-arduino","provider":"Hemlund","version":"1.0","type":"link"}