The library contains support for driving the stepper S32, reading out encoder data. A few examples are included to show the functionality of the library. The library is supported and tested with in Arduino IDE 1.8.15.
For more information, visit www.ustepper.com
Follow this after completing the installation section further down.
Since uStepper S32 uses an STM32 MCU the procedure for programming involves some specific steps.
When programming attach your uStepper S32 board to your PC and verify it shows up under "port" in the tools menu. Load your program and compile it.
Once error free do as follows:
- Press and hold down the "boot" switch.
- Press the "reset" switch and release it again and then.
- Release the "boot" switch.
Now press upload in the Arduino IDE and the program will upload.
Installation is split into two parts - Hardware and Library. Both are required to use the uStepper S32 boards. A video tutorial walking you through the below steps can be found here: https://youtu.be/CyVZvoLPSM4
First of you need to install the STM32 CUBE Programmer from here: https://www.st.com/en/development-tools/stm32cubeprog.html
To add hardware support for uStepper in the Arduino IDE (1.8.8+) do the following:
- Open Arduino
- Go to "File->preferences"
- Almost at the bottom there is a field stating: "Additional Boards Manager URLs" insert this url: https://raw.githubusercontent.com/uStepper/uStepperSTM32Hardware/master/package.json
- Press OK
- Go to "Tools->Board->Boards Manager..."
- Go to the bottom (after it has loaded new files) select "uStepper STM32 boards" and press install
You have now added uStepper STM32 hardware support and should be able to select uStepper STM32 boards under tools -> boards.
To add the uStepper S32 library do the following:
- Open Arduino IDE (Version 1.8.8 or above)
- Go to "Sketch->Include Library->Manage Libraries..."
- Search for "uStepper S32"
- Select "uStepper S32" and press install
- Close Library Manager
The documentation for this library can be found at the following URL: https://ustepper.com/docs/usteppers32/html/index.html
Dropin feature is currently in beta version, and therefore has a few quirks:
- Can be hard to tune the PID parameters
- Currently the 4pin motor connector has to be mounted in the correct direction (checkorientation() doesn't work in dropin right now). If the motor runs wild in some direction, turn off the power, turn the connector 180 degrees and power back on.
- the CLI interface in serial monitor works to change the different settings while running, however it is currently not possible to store the settings persistently during power cycles. so right now, the PID values found during tuning using the CLI needs to be added to the dropin sketch and reuploaded to be persistent between power cycles.
Version 1.1.0: - Added dropin feature (beta version) - Added robotarm implementation and example - Added additional examples - Fixed bugs and minor issues
Version 1.0.0: - Initial release
uStepper by ON Development is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.