Hello,
I have been testing an encoder using the QDEC peripheral.
The encoder produces 256 pulses per rotation. Testing without any load assigned to the motor, the encoder rotates at 2000-3000 rpm depending on the input.
Using the zephyr sensor api or the nrfx_qdec driver I have not been able to get correct measurements.
I tried lowering the SAMPLEPER to the lowest possible setting (128us) but it didn't work either.
However, using gpio pin interrupts I have been able to get correct measurements.
Is the QDEC peripheral suitable for such a frequency of pulses ?
Is there any other way to do this to avoid using multiple interrupts (like GPIOTE and TIMER as I read somewhere) ?