This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BEAGLEBK: Rotary encoder driver

Part Number: BEAGLEBK

Hi all,

I have questions about using Beaglebone Black to read rotary encoders that use GPIO as inputs on a Linux system. I know I can probably implement a user space application to read the GPIO inputs for motor step counting. However, one encoder could easily generates more than 1000 pulses per second, and there are 3 encoders to read. So I believe the user space application will be almost not possible to read the pulses without missing any and CPU hogging. Here are the questions:

1. Is there a Linux kernel space driver available that uses GPIOs that can achieve what I need?

2. If the answer of 1 is yes, how do I configure the Linux kernel and the device tree?

3. If the answer of 1 is yes, how does a user space application interface with the driver? Any example code available?

Thank you all!