Currently I'm using a potentiometer to read a position, but I'd like to migrate to using an encoder. The problem is that I already have an interrupt routine that needs to run while the encoder position is tracked. If I were to use an interrupt routine here one would fail, which defeats the purpose entirely.
My question is does anyone know of some way, perhaps a chip, that you can track a rotary encoder and output a signal like a pwm or analog signal that the arduino can read. The encoder does not need to be absolute and does not need to spin more than 360 degrees (or 270 or whatever pot's already do), so the output could be a bounded number.
Does this kind of thing exist?