I have a rotary encoder that I am trying to use to work as a heading selector in an auto-pilot panel for my simulator. Basically all I need is the rotary encoder that changes a stored value that is supposed to be between 0 and 359. I managed to get the rotary encoder working, however the value jumps up and down like crazy every time I try to change it, sometimes the value increases by much more than I turned (I turn 1 step and value increases by 5) or after increasing by 1 step the value increases and comes back (1, 0, 1, 0).
I was recommended to use interrupts but I have no idea what it is, how to use it, and whether will it improve anything.
Any help? Please? :)