Pololu magnetic encoder

Hello.

I'm facing some difficulties to find how to program the pololu magnetic wheel encoder

https://www.pololu.com/product/3081

Is there any example that I can refer to? Any libraries?

Did I miss something on the Pololu site?

Cheers

Damien

Those are just basic quadrature encoders. Pretty much any quadrature encoder code should work. Here's one example.

The schematic shows the module has on-board pull-up resistors so you don't even need pull-ups. Just connect A and B to pins 2 and 3 if you want interrupt-driven quadrature decoding.

You will find lots of examples of code out there for this, try to find one that uses CHANGE interrupts on both pins - its impossible to correctly account encoder steps during direction changes without taking note of every transition. If you are only interested in speed feedback any code is likely to be adequate.