ULN200XA Class
- ID: uln200xa
- Name: Darlington Stepper Driver
- Other Names: ULN2001A ULN2002A ULN2003A ULN2004A
- Category: motor
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/depot/Gear-Stepper-Motor-with-Driver-p-1685.html?cPath=39_40
- Connection: gpio
This module was developed on a ULN2003A Stepper Driver. It should also support the ULN2001A, ULN2002A, and ULN2004A devices, when using to drive the 28BYJ-48 unipolar stepper motor.
Vcc goes to the 5V pin on your development board and the Vm pin should be connected to an external 5V supply.
Example driving a stepper motor
Item Index
Methods
Methods
ULN200XA
-
stepsPerRev
-
i1
-
i2
-
i3
-
i4
ULN200XA constructor
Parameters:
-
stepsPerRev
NumberNumber of steps per full revolution
-
i1
NumberDigital pin to use for stepper input 1
-
i2
NumberDigital pin to use for stepper input 2
-
i3
NumberDigital pin to use for stepper input 3
-
i4
NumberDigital pin to use for stepper input 4
Returns:
setSpeed
-
speed
Sets the speed of the stepper motor in revolutions per minute (RPM)
Parameters:
-
speed
NumberSpeed to set the motor to, in RPM
setDirection
-
dir
Sets the direction of the motor, clockwise or counterclockwise
Parameters:
-
dir
ULN200XA_DIRECTION_TDirection to set the motor to
stepperSteps
-
steps
Steps the stepper motor a specified number of steps
Parameters:
-
steps
NumberNumber of steps to move the stepper motor
release
()
Releases the stepper motor by removing power