
Originally Posted by
wallaby
I have used these encoders and still have problems, I tried code supplied on this forum and it still does the same thing, it jumps up by 2 values instead of one ( rotate right one click generates 2 counts ). I do have the board set up still so I will try both code examples and advise.
Nigel, Queensland, Australia
Hi Nigel,
I am about to use a rotary encoder for the first time and whilst trying to confirm the pinout with a multimeter I couldnt get any readings across any pins. I then went and found the datasheet and discovered I have bought a high resolution encoder.
My encoder has 24 detents in common with many others, but many of the encoders have only 6 cycles per revolution so 4 clicks to go through 00,01,11,10
Mine apparently has 24 cycles per revolution so a single click travels through 00,01,11,10 and back to 00. Basically whenever the encoder is resting on a detent BOTH switches are open. I confirmed this by using LED's and you can see the 4 steps during each click.
Given that the code above will generate an output count whenever 00 or 11 are presented I guess that using the type of encoder I have will give a count of two for each click.
Just need to code for that now 
Regards
Keith
www.diyha.co.uk
www.kat5.tv
Bookmarks