Replies: 2 comments 1 reply
-
Oh I should add that the stepper freezes only when I run Interrupt_Endstop.ino and it didn't happen when running Stepper_Bouce.ino |
Beta Was this translation helpful? Give feedback.
-
Great, I'll add that info to the compatibility table then. Unfortunately, Ucglib was a poor choice on my side, it's outdated and not supported anymore by the original author. I plan to add ArduinoGfx and/or AdafruitGfx modules sometime in the future, they should be much more compatible.
Good to hear. Will put that on the to do list, but may take a bit. Just for curiosity, what kind of switch is that? I think I've tested a couple of different ones and 5 ms was always plenty.
Sounds like one or more of the signal wires is picking up noise, probably the interrupt line in this case. I'd try shielded cables. Jan |
Beta Was this translation helpful? Give feedback.
-
Hi Jan this is to continue our email discussion.
I tested RP2040 as a target and it works with modules AccelStepperI2C, PinI2C, and ServoI2C. It can drive stepper motors at speed well over 10000 steps/sec easily. It compiles other modules except UcglibI2C, RP2040 does not even compiles with standalone ucglib library.
Regarding on how to remedy stepper keeps hitting the endstop you were spot on, changing endstopDebouncePeriod = 5 fixed this issue, and yes it would be nice if this value is configurable.
I also observed that when I turned on a power tool nearby the stepper freezes and gives "Error. Interrupt cause from unknown unit." and I have to restart both the controller and target, any ideas on how to prevent that Jan?
Best regards,
Vincent
Beta Was this translation helpful? Give feedback.
All reactions