How difficult would it be to make an analog to quadrature converter, that reads a potentionometer, and detects a change in resistance and based on whether it increased/decreased, sends a pulse (turns on/off two switches) that mimics a mechanical rotary encoder? I am looking for
256 pulses per revolution. The potentionometer would need to be small (about the size of a large guitar pot, the circumference of a quarter) and the circuitry not too bulky (fit inside a small project box), and be powered by 5v, .5ma. It would possibly use a PIC controller.If possible (without complicating it too much) I would like the potentionometer to be one of those ones that can spin a full 360 deg, so after a full spin, the resistance would go back to 0 (or max resistance if turend the other way), and the converter would need to be smart enough to detect this and compensate so it sends the correct quadrature.
Any ideas?