Need help with encoder coding

Hello I'm still new in Arduino project. currently, I'm experiencing problem in creating the code for the encoder using Arduino Mega 2560. The encoder i use is rotary encoder incremental type E6B2-CWZ6C that consist 3 channel which are phase A, phase B and phase Z.
My problem is to monitor the all the 3 phases in the encoder.

I suggest to start with the Stoffregen encoder library, and get that working with the A and B channels. It should not take long, and it will be easy to add Z later.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.