I am new to the SSI (Synchronous_Serial_Interface) through Arduino Nano. I am facing some difficulties in the program and connections. I have connected my rotary encoder [RLS] sensor Data+,Data-, Clock+,Clock- to RS422 Zihatec interface.I connect the RS422 TX and RX to D6 and D5 of Arduino Nano pins, respectively.
I have searched for many solutions and followed this link. I haven't succeeded as I resulted with 8191 CPR for my 13-bit magnetic rotary encoder all the time even I have turned my magnetic shaft.
My code modification seems as below from the first code by @johnwasser in the post:
const int CLOCK_PIN = 5; const int DATA_PIN = 6; const int BIT_COUNT = 13;
I obtain the following results with timestamps:
8191 8191 8191 8191 8191 ..... .....
Is there any issue with the connections or should I have to modify the program?
All solutions and suggestions are appreciated.
Thanks in advance.