Hi, I need to use an Arduino DUE to collect the angular position from an encoder that has A, B and Z waves. The problem is that I also need to collect an analog voltage that corresponds to a pressure transducer. The encoder has 720 steps per revolution and I would need to achieve speeds of 4500RPM. Looking here it seems that it's possible but I'm still not able to do it.
Using the Hardware Quadrature Encoder Channel on the DUE I used this code which apparently works but as soon as I start rotating the encoder shaft faster it starts to skip some readings. I've connected A pulse on the pin2 Bpulse on pin 13, Zpulse on pin A6 and the pressure transducer on pin A0
do you think I'm missing something? Because on this post it seems that they are handling much faster acquisition rates than I'm doing just by rotating the encoder's shaft by hand.