Rotary encoder wiring

Hi!

Recently i bought these rotary encoders on aliexpress but I couldn't find any datasheet for them. These are 5 pin encoders so I imagine there should be: + ;GND; CLK; DT; SW but I can't figure out where are they placed.

Anyone messed with them before and could help me?

Please do not make links to web sites that require a log-in.

Paul

The one I have has 2 pins on one side for the switch.
There are 3 pins on the opposite side called A, B & C.
The C pin is common (ground) and the others are for
the quadrature encoding. Connect A & B to inputs
with pull-ups enabled. One should go LOW before
the other to signal which way the shaft was
rotated.
Herb

Skiermaxhtc:
Hi!

Recently i bought these rotary encoders on aliexpress but I couldn't find any datasheet for them. These are 5 pin encoders so I imagine there should be: + ;GND; CLK; DT; SW but I can't figure out where are they placed.

Anyone messed with them before and could help me?

My best guess is it would be similar to one of these.

I haven't a clue what your resolution might be. Considering I can buy one by Bournes for under two bucks (USD) I would have opted for something which had a data sheet. Anyway the above data sheet should have the same pin out.

Ron

The encoder library make working with them easier.