-
Hi, How can I add a setMaxSpeed in the setup()..? I understand that later I would not even need a check as the library, for the reading above indicated, would not allow a setSpeed above the MaxSpeed..? Which by the way I am very happy to be using after trying at least 3 others, this is by far the fastest and smoothest movement (although the use of interrupts and a independent encoder that also used interrupts has forced me to abandon using a Nano, to use now a ESP32, this has been also a beneficial learning process) thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
How about |
Beta Was this translation helpful? Give feedback.
-
I got an email about a new post here...
|
Beta Was this translation helpful? Give feedback.
-
@gin66 FYI, tried installing ESP32 core 3.1.0 RC2, but example sketch PrintPosition now fails to compile.. have already installed your latest library 0.31.2, no difference.. took board version back to RC1 and now compiles as before, so will stay with that FTM ;-) |
Beta Was this translation helpful? Give feedback.
-
and whilst am here, would this code be correct: engine.init(1); // want to dedicate 1 core to motor driver only, to avoid any type of delays from many digitalReads that have to do (although not every loop) |
Beta Was this translation helpful? Give feedback.
That is the right calculation.
The warning is for (accidental) misuse. This call allows to effectively set a maximum speed way above, what the uC can do (with or without load).There is no check to go too high. The API user is warned…