pyupm_uln200xa module

class pyupm_uln200xa.ULN200XA(stepsPerRev, i1, i2, i3, i4)[source]

Bases: object

UPM module for the ULN200XA Darlington Stepper Driver.

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

C++ includes: uln200xa.hpp

release()[source]

void release()

Releases the stepper motor by removing power

setDirection(dir)[source]

void setDirection(ULN200XA_DIRECTION_T dir)

Sets the direction of the motor, clockwise or counterclockwise

dir: Direction to set the motor to

setSpeed(speed)[source]

void setSpeed(unsigned int speed)

Sets the speed of the stepper motor in revolutions per minute (RPM)

speed: Speed to set the motor to, in RPM

stepperSteps(steps)[source]

void stepperSteps(unsigned int steps)

Steps the stepper motor a specified number of steps

steps: Number of steps to move the stepper motor