Arduino Library for Greyhill Optical Encoder

Hello all,

I was also wondering what Arduino libraries would be best for optical encoders. I purchased an incremental optical encoder with 16 detents from Greyhill part # 62S22-M5-P; the datasheet is here (https://www.grayhill.com/documents/62S-Datasheet). Is there a universal coding library that I can use for typically any off-the-shelf optical encoders? What would be a way to use this encoder in Arduino IDE if this library is not available? I imagine I would have to create a library with custom functions for the encoder. I am using an ESP-32 Wroom 32 30pin board.

I appreciate any help,
Thank you,

I've used this library with both optical and mechanical rotary encoders:

Tested with This Encoder on Adafruit ESP32 Feather.

I find that this one is the best, many of the others are not implemented correctly. That is that they use polling and do not follow a state machine like this one.

http://www.pjrc.com/teensy/td_libs_Encoder.html

1 Like

Agreed this encoder library is solid

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.