Anyone worked out a method for connecting Encoder via ADC?

Status
Not open for further replies.

Mike - K8LH

Well-Known Member
Just wondering if anyone has worked out a method for connecting a rotary encoder + switch to a microcontroller using an ADC input? The encoder A & B switches have a common pin and so I'm trying to figure out how to connect with resistors to the ADC input so that I can determine all four encoder phases?

Cheerful regards, Mike
 
Use three different power-of-two resistors to connect from the ADC to the A, B and switch contacts.
Use the low value, or something near that, again as a pull-up from ADC to V+
(Other side of all switches to 0V).

That will give you eight different voltages depending on the quadrature and switch state.

eg. 1K, 2K, 4K to A, B and switch plus another 1K to V+.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…