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 details)

Uploaded Source

File details

Details for the file ULN2003Pi-1.0.4.tar.gz.

File metadata

  • Download URL: ULN2003Pi-1.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/3.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.4

File hashes

Hashes for ULN2003Pi-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c3c373c7b45c62db3c9bfe879bf5222986807b78cec2a7cdbafd2f591e278ee7
MD5 4a62f6cc136f3b2117cfb71e7d3943a5
BLAKE2b-256 690ae7e69b8e22c9b157318fe8e7141336b6ad6c066b5f5d4a0eab24dae720d3

See more details on using hashes here.

Supported by

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