I need the following sensor as a positional reference for a vertical moving platform:
https://www.siko-global.com/adbimage/1712/asset_original/data-sheet-msk2000.pdf
The encoder has a linear resolution of 0.25 mm, which generates 40.000 pulses/second when using a maximum speed of 10 m/second (the platform is moved by hand, so it should be less than this in average).
Is the raspberry pi fast enough to work with 40000 interrupts/second??? (I think that is what I need to manage if I'm moving with 10m/second, correct me if I'm wrong)
I've done a quick test using the wiringPi library and I did not get back to the initial value, when I moved the platform back to initial position. It worked, when I was moving the platform really slow, but that's not my aim.
My ideas now are to use the pigpio library (I'm writing in c) or to use an arduino board just for reading the encoder (as worst case solution). Are there any other solutions?
I've also read about quadrature decoding ICs. What that be a possible solution?
Thanks in advance :)
Best regards,
Niko