Stepper class for stepper control using ULN2003 and compatible drivers
Id of the stepper (Read only)
Number of steps to do per second.
Status of stepper (Read only). 0 = not moving, 1 = moving, 2 = rotating
the Arduino parent (read only)
the pins used for the stepper (read only)
Constructor to create a stepper object
aObj - The arduino
pin1 - The first pin of the controller
pin2 - The second pin of the controller
pin3 - The third pin of the controller
pin4 - The fourth pin of the controller
pin5 - The fifth pin of the controller
s - a simplestepper object
a = arduino()
# create stepper object
s = addon(a, "simplestepper/simplestepper", "d2", "d3", "d4", "d5")
# start rotating left
s.rotate(-1);
See also: addon.
Move the motor the specified number of steps using the configured Speed.
sObj - the stepper object
steps - the number of steps to move. steps less than 0 will be moving left.
None
See also: rotate.
Start steppermotor moving in the specified direction using the configured Speed.
sObj - the stepper object
dir - Direction to move. -1 = left, 0 = stop, 1 = right.
None
See also: move.
Release this stepper motor
sObj - the stepper object
None
Package: arduino