This library is used to control one or more stepper motors from an ESP32 device. It is based on the FlexyStepper library by S.Reifel but provides some additional functionality
MIT License
Bot releases are hidden (Show)
Published by pkerspe 9 months ago
added getters to retrieve the configured deceleration and acceleration values
Added conditional code block to remove logic for second core on single core ESP2 models
Published by pkerspe 9 months ago
Integrated PR from ameisso:
Added support for an enable io pin. This allows the external driver module to be shut off if needed (and if it has an enable pin or some external components attached to enable it) via the Library.
Note: this function is only to control the pin via the library, it does not automate the enable/disable functionality for you.
E.g. if you set it manually to "disabled" state, you need to manually enable it again before you try to send steps to the driver.
Note: this version contains a partially a "breaking" change if you use the brake-function of the library. The brake function has been renamed (typo corrected) thus if you use it, you simply need to change your code to use "isBrakeActive" instead of "isBakeActive" (old function mane with typo, library unfortunately cannot "bake" anything for you :-) )
Published by pkerspe over 1 year ago
update readme file with missing entries for functions
Published by pkerspe over 1 year ago
only some minimal typo fixes
Published by pkerspe over 1 year ago
added Feature Request #33 open drain configuration for step and dir pins of driver.
Should be a non breaking change since parameter has been added with default value to connectPins function:
void ESP_FlexyStepper::connectToPins(byte stepPinNumber, byte directionPinNumber, bool useOpenDrain)
Published by pkerspe over 1 year ago
Published by pkerspe almost 3 years ago
this update does not contain real new features, it is solely for platformIO to pull the latest sources, which seems to have failed in version 1.4.4 as reported in https://github.com/pkerspe/ESP-FlexyStepper/issues/22
Published by pkerspe about 3 years ago
minor changes in method signature for ESPStepperMotor Server
Published by pkerspe about 4 years ago
added an example for using callback functions
and changed function signature for position callback function
Published by pkerspe about 4 years ago
a bug has been fixed in the function setTargetPositionToStop function which caused an unwanted move when called while the motor has already come to a stop.
Published by pkerspe about 4 years ago
Published by pkerspe about 4 years ago
Added support for external motor brake function.
If your stepper motor, or your setup in general, supports an explicit motor brake that can be triggered by a high or low signal, you can now configure a pin to support this function.
Whenever the stepper has reached its final position, the motor brake will be engaged (pin goes either high or low, depending on your configuration).
Once it is supposed to move, the motor brake will be released before triggering any step signals.
This feature was implemented upon user request and has not yet been tested in a real setup. Use at your own risk :-)
Of course, you can use this function also to trigger other devices whenever the final position has been reached or simply light an LED when the motor is moving and turn it off when it has stopped.
Published by pkerspe over 4 years ago
This is a bug fix release to prevent a kernel panic if no callback handler has been specified for the targetPositionReached event
Published by pkerspe over 4 years ago
The support for ESP8266 modules had to be removed since the change to run the stepper logic as a service (task) in the background is not working on ESP8266 modules due to lack of native multi-tasking support.
Maybe will be added again later with the help of the ESP8266Scheduler library
Published by pkerspe over 4 years ago
minor fixes / updates, manily added support for arduino ide to import library in library manager
Published by pkerspe over 4 years ago
New functions have been added to support externally monitored limit switches (See example #3 and #4)
The EPS FlexyStepper can now be started as a service (task in FreeRTOS) that runs in the background, so you have the loop() for whatever logic you want to run without caring about timing issues