Skip to main content

Package to control a ULN2003 driver for a 28BYJ-48 (or any unipolar) stepper motor on a Raspberry Pi

Project description

ULN2003

Package to control a ULN2003 driver for a 28BYJ-48 (or any unipolar) stepper motor on a Raspberry Pi

Installation

Use the package manager pip to install ULN2003.

pip install ULN2003

Usage

from ULN2003 import ULN2003

pins=[26, 19, 13, 6] #The logical pins of the ULN2003 as connected to the Raspberry Pi with the pins indexed by their BCM numbering
Stepper=ULN2003(pins) #Creates an instance of the ULN2003 driver

Stepper.step(n=100) #Steps forwards by 100 steps

Stepper.step(n=-100) #Steps backwards by 100 steps

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ULN2003Pi-1.0.4.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page