Hi, I am trying to read the values from this absolute encoder and would appreciate some help...I do electronics as hobby and got the basics, but I am having some trouble understanding how to connect the pins of the device to Arduino and how to code it to read the values. Sorry, I know it is a lot to ask, but I would really appreciate the help so I can move forward.
Datasheet for the device says (https://www.digikey.be/htmldatasheets/production/1182105/0/0/1/ems22a.html):
Pin 1 = Digital input
Pin 2 = Clock
Pin 3 = Ground
Pin 4 = Digital output
Pin 5 = Vcc
Pin 6 = CS
From previous posts I see that clock and data are assigned, but the way they are called in the datasheet and how the would correspond to "data" and "clock" is what is confusing me. Also, not sure what Digital Output and CS would be for...?
The "Transition Testing" is for testing if the shaft has done a full turn?
At the bottom of the code there is a section that has been commented out "extract 6 bits of status". I assume that is for reading the "status" information being sent by the rotary encoder?
My Bourns encoder also has 10 bits for angular information and 6 bits for status, so I guess I could basically use your code as-is