¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Encoder switches - trying to get a handle on how to use properly...


Stefan Trethan
 

On Mon, 01 May 2006 18:39:33 +0200, rtstofer <rstofer@...> wrote:

Among other things, if you build a software state machine to track the

changes, debouncing will be automatic. Sure, you may bobble between A

is high, B is high back and forth with A is low, B is high (or A is

high, B is low) (in other words both sides of the transition) but it

doesn't matter because only one line is changing states - you wont go

from A is high, B is high to A is low, B is low.


You aren't transitioning far enough to upset the count or miss a

detent position. But you can detect the difference between increase

and decrease.


Richard

Yes, even I managed to make the software for a encoder of this type work, and that says something!
Good thinking really that quadrature stuff...

ST

Join [email protected] to automatically receive all group messages.