AlexmagToast / LinuxCNC_ArduinoConnector

This Projekt enables you to connect an Arduino to LinuxCNC and provides as many IO's as you could ever wish for. This Software is used as IO Expansion for LinuxCNC.
60 stars 15 forks source link

Using Encoder with STM32duino Framework #14

Open ModuloFS opened 1 year ago

ModuloFS commented 1 year ago

Hello,

if anybody wants to use the encoder functionality together with the STM32duino Framework you have to replace the Encoder library by this modified version:

https://github.com/ModuloFS/Encoder_STM32duino

You have to check by yourself if your used pins collide in the interrupt handler. For example in my case i am not able to use PA9, PA8 and PC9, PB8 at the same time as interrupt pins. So if you want to use two encoders You have to connect the first at PA9 and PA8 and the second for example at PB3 and PA10.

With the library mentioned above up to 6 encoders are possible.

AlexmagToast commented 1 year ago

thanks, good to know.