Optical Shaft Encoder

Is it possible to find the direction of rotation with the new quadradore (pardon my bad spelling) encoder in EasyC? i was thinking to set up 2 encoders (really just the two plugs from the one encoder) and get a reading from one port in a clockwise direction which adds to a variable’s value, and when the other goes in a counterclockwise it subtracts from the variable. I’m just not sure how to do this, i’m pretty new (and bad) at programming. can someone give me a code please (in EasyC).


Take a look at the inventors guide insert on this page.

And the Code Example too. The Code is not in EasyC, but will give you some idea of what needs to be done.

I’m not great at Easy-C either.:slight_smile: