tegg 2 pcs ky-040 360 degree rotary encoder module brick sensor clickable switch with knob cap for arduino tegg description: <br> type: ky-040 rotary decoder encoder. <br> operating voltage: 5v. <br> one round number of pulse: 20. <br> width: 19mm/0.75 inches. <br> length: 30mm/ 1.18 inches. <br> height: 28mm/1.10 inches. <br> material of knob cap: aluminium alloy. <br> diameter of knob cap: 14mm/ 0.55 inches. <br> height of knob cap: 17mm/ 0.67inches. <br> package:2 pcs. <br><br> pin description: <br> clk - equivalent to output a in regular encoder. <br> dt - equivalent to output b in regular encoder. <br> gnd - equivalent to output c in regular encoder. <br> sw - reset switch. <br> + (vcc) - positive supply to the unit. <br><br> the ky-040 rotary encoder is a 360 degree rotary input device (i.e. a control knob) that provides an indication of how much the knob has been rotated and which direction it is rotating in. <br> it is a great device for stepper and servo motor control. you can also use it to control devices like digital potentiometers. it is ideal for navigating menus on a display or taking inputs such as numbers or text characters. the range of input can be easily defined and mapped in software. a push button switch is built into this encoder. <br> if you push on the shaft, the normally open switch "sw" will close. this can be used as an on/off switch, to change control functions, ranges, selecting a menu item or entering a number. the "d" shaft of the encoder can be fitted with a knob for using it in a product.<br>