DanieleFromItaly
Active member
Hi guys, I want to use few encoders as pot, it's a midi controller so at the end, I need to read 0-127.
Encoders are cheap ALPS.
With the encoder lib, I get 4 values for each step (1 2 3 4 - 5 6 7 8...). Is there a way to increase/decrease a counter by 1 (or any fixed value) for each step ?
Do I need 2 interrupt for this use ?
Missing a step every once in a while, is tolerable, wrong turn detection or jumping values are not.
There are tons of sketch in the web, but none of them work in reliable way
Now I'm testing this one: https://dl.dropboxusercontent.com/u/20622434/RotaryEncoderInterrruptsLED.ino
Found here: https://www.youtube.com/watch?v=J9cDEef0IbQ
not reliable.
Thanks,
Daniele.
Encoders are cheap ALPS.
With the encoder lib, I get 4 values for each step (1 2 3 4 - 5 6 7 8...). Is there a way to increase/decrease a counter by 1 (or any fixed value) for each step ?
Do I need 2 interrupt for this use ?
Missing a step every once in a while, is tolerable, wrong turn detection or jumping values are not.
There are tons of sketch in the web, but none of them work in reliable way
Now I'm testing this one: https://dl.dropboxusercontent.com/u/20622434/RotaryEncoderInterrruptsLED.ino
Found here: https://www.youtube.com/watch?v=J9cDEef0IbQ
not reliable.
Thanks,
Daniele.