Skip to content

uStepper/uStepperS32

Repository files navigation

uStepper S32

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

How to program

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

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

Hardware Installation

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:

You have now added uStepper STM32 hardware support and should be able to select uStepper STM32 boards under tools -> boards.

Library Installation

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

Documentation

The documentation for this library can be found at the following URL: https://ustepper.com/docs/usteppers32/html/index.html

Known bugs

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.

Change Log

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

Creative Commons License
uStepper by ON Development is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.