No, my encoder doesn't have detents, as far as I can feel.
From previous experiments I know the encoder has about 100 steps/revolution.
Thanks to your debugging code I'm now sure there is something with the connection between the wiring and the encoder. I put them both in the breadboard, assuming that would work, but when I touch the wiring and encoder directly the code does something different. To be exact, it seems to work better.
I noted in an earlier post that it seemed to work better when I pushed the encoder... well I should have tried this earlier I guess.
I'm now holding the three wires with one hand and the encoder in the other hand, but it's kind of a hassle and I hope there is a more practicable solution close at hand... as I apparently can't trust the breadboard...
Anyway, since I can't really feel what is one step I'll just stick to moving the encoder slowly.
With a little (300) shorter delay that makes:
Which is, I think, quite a step in the right direction isn't it? That pattern of 0's and 1's seems familiar to me.
When I try cattledog's polling code again, and when I can hold my fingers steady... it gives this result:
Index: 20 Old-New AB Pattern: 1000
Index: 21 Old-New AB Pattern: 0010
Index: 20 Old-New AB Pattern: 1000
Index: 21 Old-New AB Pattern: 0010
Index: 20 Old-New AB Pattern: 1000
Index: 21 Old-New AB Pattern: 0010
Index: 22 Old-New AB Pattern: 1011
Index: 23 Old-New AB Pattern: 1101
Index: 22 Old-New AB Pattern: 0111
Index: 23 Old-New AB Pattern: 1101
Index: 24 Old-New AB Pattern: 0100
Index: 23 Old-New AB Pattern: 0001
Index: 24 Old-New AB Pattern: 0100
Index: 23 Old-New AB Pattern: 0001
Index: 24 Old-New AB Pattern: 0100
Index: 25 Old-New AB Pattern: 0010
Index: 26 Old-New AB Pattern: 1011
Index: 25 Old-New AB Pattern: 1110
Index: 26 Old-New AB Pattern: 1011
Index: 25 Old-New AB Pattern: 1110
Index: 26 Old-New AB Pattern: 1011
A lot better right?
(Do they often have such graphical forum updates? I just thought I knew where all the buttons were and they just changed them all haha)

