Speakerguy
Active Member
Hi,
I am planning to use rotary encoders in my next project. I've never used one before. I need a 'coarse' and a 'fine' adjustment knob for a DDS frequency generator, and there might be a lot of ambient noise (tesla coil for example) so I don't want to use a simple pot and ADC pin for each.
Is there anything I should know about rotary encoders before I use them? I plan on using the port B interrupt on change and always interrupting on the falling edge of one signal and then looking at the value of the other signal to determine direction change. Does that sound reasonable? Any thing that might be problematic with that in a very high EMI environment?
Thanks!
I am planning to use rotary encoders in my next project. I've never used one before. I need a 'coarse' and a 'fine' adjustment knob for a DDS frequency generator, and there might be a lot of ambient noise (tesla coil for example) so I don't want to use a simple pot and ADC pin for each.
Is there anything I should know about rotary encoders before I use them? I plan on using the port B interrupt on change and always interrupting on the falling edge of one signal and then looking at the value of the other signal to determine direction change. Does that sound reasonable? Any thing that might be problematic with that in a very high EMI environment?
Thanks!