Skip to content

STEPPER module

Jaume Olivé Petrus edited this page Mar 15, 2017 · 9 revisions

About this

This module contains functions for controlling stepper motors.

Please, take in advance that you need a stepper motor driver for connect the motor to your board. Stepper motors works at voltages and currents that are not compatible with your board. Never connect a stepper motor to the board without a stepper motor driver, or your board will be permanently damage.

Stepper module can handle up to 8 motors, each motor needs 2 GPIO, for control the step and direction signals.

Key concepts

In real applications, steppers are connected to a kinematic system. Before using an stepper you must attach the stepper (using the attach function) and set the variables defined by your kinematic system:

  1. Units, for example 1 cm
  2. Number of steps per unit
  3. Minimum speed, measured in units / minutes
  4. Maximum speed, measured in units / minutes

Once attached, the programmer can move the steppers specifying:

  1. How many units to move, for example 10 centimeter.
  2. At which speed, for example, 5 centimeter / minute.
  3. At which acceleration, for example, 0.1 centimeters / seconds ^ 2
Clone this wiki locally