You don't necessarily need the A, B, Z signals. You have an absolute encoder so the encoder position is available via SPI, as listed in the product features.
What's the application? Did you plan to use the absolute position feature? It appears from the datasheet that you don't need to bother with the SPI signals if you're only interested in the quadrature outputs.
I have the encoder attached to a single hinged knee brace, so I want to be able to measure both the absolute position and angular velocity at the knee using the encoder. So, I need to encoder to give me both direction of rotation over time, and absolute position.
I guess I'm not sure what the A, B and Z outputs are actually for then...
A and B are the quadrature signals, these are what gives you direction information. See the data sheet figure 1. Z is an index output which can be used to indicate or set a starting point - I've personally never seen it used.
One can write the encoder code from scratch or, there are many encoder libraries available. I suspect you'll want one which is interrupt driven, those are very responsive. I'm using this one for my menu rotary encoder (requires two interrupts). Depending on which library you choose it may need one or two interrupts. Easiest to use are interrupt 0 and interrupt 1 which use pin 2 and 3 respectively on the Arduino board.
I don't know whether using the SPI is affected by interrupts or vice versa, maybe somebody more knowledgeable will chime in.
In any case, don't try to get both things working at once. Pick one to concentrate on and master it then do the other.
Hi there
I have the AMT203-V and an arduino uno. Any idea which cables to use to connect them? I've got regular jumper cables that don't seem to fit the AMT203 pins. Do I need something smaller? I'd rather avoid the expensive cable called AMT-14C-0-036-1 on digikey here: https://www.digikey.com/product-detail/en/cui-inc/AMT-14C-0-036-1/CP-AMT-14C-0-036-1-ND/4384341
Any suggestions?
Thanks