-
Notifications
You must be signed in to change notification settings - Fork 222
STEPPER module
Jaume Olivé Petrus edited this page Mar 15, 2017
·
9 revisions
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.
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:
- Units, for example 1 cm
- Number of steps per unit
- Minimum speed, measured in units / minutes
- Maximum speed, measured in units / minutes
Once attached, the programmer can move the steppers specifying:
- How many units to move, for example 10 centimeter.
- At which speed, for example, 5 centimeter / minute.
- At which acceleration, for example, 0.1 centimeters / seconds ^ 2