-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RP Pico RP2040 ConfigurableFirmata Encoder Interrupts not working #84
Comments
Did you get anywhere on this @ale-novo ? I am struggling to even get things compiling. |
@RussCoty i had other things so i did no further testing. The problem for me is happening with a Raw mechanical encoder directly connected, however i had some discussions with other people that successfully have a working encoder with RPI pico and they are using the rotary encoder ky-040 that is mechanical but has some discreet components. I have purchased one but still have to test it. Also for my application i actually use a optical encoder that has no 'bounce' problems so i will have to test with that as well. |
Hi, ive tested this with RP2040 and using the "examples/Basic/Basic.ino" sketch. all encoders work perfectly with arduino nano pins 2,3 (only interrupt pins) |
Thanks @ale-novo I have tried the modifications to encoder.h that you suggested but not even getting a successful compile 🤔. I will post some actual error messages into this thread as soon as I can. I'm wondering if we could use the state machines to do this more robustly but I do think Paul's library is elegant and works like a dream on teensy and arduino. |
Hello! been using ConfigurableFirmata V2.10.1 based from Firmatabuilder.com sketches successfully with Arduino.
Ive added support for RP2040 how is described here:
https://github.com/firmata/ConfigurableFirmata/blob/3a1747953150b6589b7d5bf1f3aa92c5aca3c365/BoardSupport.md
Everything works fine however ive notice that if i plug in an encoder it does not work accurately like it does in the Arduino nano port 2/3 that are interrupts pins.
In theory all RP2040 digital pins are interrupts but they are not behaving like interrupt pins but like normal pins therefore making the encoder not read accurately.
ive modified the encoder library here:
https://github.com/PaulStoffregen/Encoder/search?q=RP2040
to use
#elif defined(TARGET_RP2040) || defined(TARGET_RASPBERRY_PI_PICO)
instead of
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
Its compiling fine however not working accurately, please help!! thanks
The text was updated successfully, but these errors were encountered: