AZ-Delivery KY-040 Rotary Encoder Module
Application examples:
Use the Rotary Encoder as a controller for a motor, as a volume control or as a menu control.
The digital potentiometer for your project: with our KY-040 rotary encoder you can navigate through your own menu items or control speeds. Unlike analogue potentiometers, the angle of rotation is not limited. In practical modular design. With additional switching contact!
Connections:
"GND" = ground connection; "+" = 5V power supply; "SW" = interrupt for push-button; "DT" = encoder pin B; "CLK" = encoder pin A
Readout of rotation:
The encoder reproduces the signal for rotation at pin "CLK" and "DT". The first pin to change state is decisive. When rotating clockwise, "CLK" changes the state first. For counterclockwise rotation, "DT" changes state first.
Use the button:
The pin "SW" gives a high impulse if the rotary knob is pressed down.
Pinout:
CLK=[Pin 3]
DT=[Pin 4]
Button=[Pin 5]
+=[Pin 5V]
GND=[Pin GND]
Pinout Raspberry Pi:
CLK=GPIO16[Pin 36]
DT=GPIO15[Pin 10]
SW=GPIO14[Pin 8]
+=3.3V[Pin 1]
GND=GND[Pin 6]
TECHNICAL DATA:
Chip: KY-040
Operating voltage: 5V
Step size: 20 positions/revolution
For further ideas and projects please visit our blog or download our free eBooks on our website!
AZ-Delivery is a trademark which is registered at the DPMA (German Trademark and Patent Office). According to § 14 (2) MarkenG third parties are prohibited from using this trademark in the course of trade.
AZ-Delivery Your expert for microelectronics
If you are looking for the high quality products for Raspberry Pi & Co, AZ-Delivery Vertriebs GmbH is the right company to get it from. You will be provided with numerous application examples, full installation guides, eBooks, libraries and assistance from our technical experts.