Setting up your uStepper closed-loop stepper motor controller is quite simple. Whether you are building a 3D printer, CNC machine, or robotics project, this stepper motor control setup guide will walk you through assembly, Arduino IDE configuration, and programming.

Assemble uStepper

When you've assembled your uStepper S32, uStepper S or uStepper S-lite, download the Arduino IDE from arduino.cc.

Add hardware support for uStepper S32 in the Arduino IDE

First install the STM32 CUBE Programmer from STMicroelectronics.

Next, configure the Arduino IDE:

  1. Open Arduino
  2. Go to File → Preferences
    • Near the bottom there is a field labelled "Additional Boards Manager URLs" — insert this URL:
      https://raw.githubusercontent.com/uStepper/uStepperSTM32Hardware/master/package.json
  3. Press OK
  4. Go to Tools → Board → Boards Manager
  5. At 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.

Add the uStepper S32 library

  1. Open Arduino IDE (version 1.8.8 or above)
  2. Go to Sketch → Include Library → Manage Libraries
  3. Search for "uStepper S32"
  4. Select uStepper S32 and press install
  5. Close Library Manager

You're now all set up!

Test your uStepper

Go to File → Examples → uStepper S32, click on your chosen example, and upload it to your board.

Since uStepper S32 uses an STM32 MCU, the programming procedure involves some specific steps:

  1. Attach your uStepper S32 board to your PC and verify it shows up under Port in the Tools menu.
  2. Load your program and compile it.
  3. Once error-free:
    • Press and hold the Boot button.
    • Press the Reset button and release it.
    • Release the Boot button.
    • Press Upload in the Arduino IDE.

Need help?

If it's not working, try one of the following:

Step motor controller product sheets Stepper motor controller support & FAQ