There are total 5 pins on the encoders, 3 of them on one side are for rotary encoding which need a simple circuit to supply DC 5V. The remaining 2 pin go short whenever pressed. Please refer to example scheme for more clear understanding.
In the middle of 3 pins' side is COM port connect to GND . And other pins (A and B same side of GND) separate pull to +5v via 10k ohm resisters .
Connect the A and B directly to Arduino IO pins.
If you are interested in Internet of Things (IoT) or M2M projects check our open source sensor platform Waspmote which counts with more than 100 sensors available to use 'off the shelf', a complete API with hundreds of ready to use codes and a low consumption mode of just 0.7µA to ensure years of battery life.
Know more at:
Get the Starter Kits at: