Wiring up a Knitter-Switch rotary encoder

encoder

I have two MERP 12 24 126 GR rotary encoders from Knitter-Switch. The only information i can find regarding this encoder is here http://www.knitter-switch.com/pdf12/E-2012-MER12-MERP12illuminated.pdf

However I'm not able to figure out which pins needs to go where except for the output ABC pins. Where do i connect GND and VCC? Does it needs both etc?

Through testing it appears like pin 1 is GND (at least for the LEDs) and pins 2 & 3 are the two LEDs. I havn't been able to get any output from A, B or C at all.

Best Answer

As per documentation, connections would be following:

A — A line of encoder, use pull-up with controller input pin.
B — B line of encoder, use pull-up with controller input pin.
C — GND of encoder part

5 — VCC for LEDs and pushbutton
3 — pushbutton - one could use 10k pulldown since it seems it is switched to VCC

1, 2, 4 — LEDs

The LEDs have an "always present" VCC on pin 5 - so you would light them up by pulling their respective pin to GND with appropriate series resistor (470R - 1k2).