Go Down

Topic: Pololu magnetic encoder (Read 3732 times) previous topic - next topic

DamienRaczy

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
-- je sais que je ne sais rien, ou presque

DuaneDegn

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

MarkT

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.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up