Arduino library support for STMicroelectronics PowerSTEP01 stepper driver chip with voltage and current mode drive.
This library is a modification of Megunolink powerSTEP01_Arduino_Library which is a modification of the L6470-based SparkFun AutoDriver library.
This library is intended to use with Ponoor Experiments STEP400, but you also can use with STMicroelectronics X-NUCLEO-IHM03A1.
- Added the current control drive mode functions
- Added
getSpeed()function - Disable interrupts during
getStatusandxferParamto avoid return value collapse for ATSAMD - Fixed
ACTbit of goUntil and releaseSw - Fixed
STATUSregister bit names and bit masks. - Changed some constants name(
CMD_GET_STATUS,REG_STATUS) to avoid conflicts with other libraries.
Since the registers shown in the table below are physically identical, for example, when you change KVAL_HOLD, the value of TVAL_HOLD is also changed. Please save them in Arduino sketch when you switch the control mode if necessary.
| Address | Register name in Voltage mode | Register name in Current mode |
|---|---|---|
| h09 | KVAL_HOLD | TVAL_HOLD |
| h0A | KVAL_RUN | TVAL_RUN |
| h0B | KVAL_ACC | TVAL_ACC |
| h0C | KVAL_DEC | TVAL_DEC |
| h0E | ST_SLP | T_FAST |
| h0F | FN_SLP_ACC | TON_MIN |
| h10 | FN_SLP_DEC | TOFF_MIN |
X-NUCLEO-IHM03A1 has an Arduino formfactor but the SPI pins are appearing on pins D11-D13, instead of the SPI socket. This is a classic SPI pinout used in Arduino UNO or ealrier models, so this shield won't work with other Arduinos like Leonardo/Mega. In Arduino Zero/M0, you can use these pins by configuring them to behave as SPI pins.
This library can be installed from the library maneger of Arduino IDE.
- src - Contains the source for the Arduino library.
- Examples - Example sketches demonstrating the use of the library
- keywords.txt - List of words to be highlighted by the Arduino IDE
- library.properties - Used by the Arduino package manager
This product is open source! The code is beerware; if you see any SparkFun employee at the local, and you've found their code helpful, please buy them a round! Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.
Distributed as-is; no warranty is given.
