https://github.com/daggilli/stepper_uln2003
Example Python code for the Raspberry Pi to drive a stepper motor with a ULN2003 driver IC interface
https://github.com/daggilli/stepper_uln2003
example-code gpio python python3 raspberry-pi raspberry-pi-4b stepper-motor uln2003
Last synced: 3 months ago
JSON representation
Example Python code for the Raspberry Pi to drive a stepper motor with a ULN2003 driver IC interface
- Host: GitHub
- URL: https://github.com/daggilli/stepper_uln2003
- Owner: daggilli
- License: bsd-3-clause
- Created: 2025-01-13T04:35:22.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-01-13T23:17:33.000Z (6 months ago)
- Last Synced: 2025-02-03T04:16:12.944Z (5 months ago)
- Topics: example-code, gpio, python, python3, raspberry-pi, raspberry-pi-4b, stepper-motor, uln2003
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stepper_uln2003
## ULN2003 stepper motor driver code for Raspberry PiThis is a minimal Python program to drive a stepper motor using a Raspberry Pi and a driver board with the **ULN2003** IC. These boards are widely available and are often bundled with a 28BYJ-48 motor for practically nothing (< $2).
I make absolutely no reprsentations as to the portability of this code. It runs on my Pi, an 8GB Model 4B running Raspberry Pi OS Bookworm (AKA Debian 12), with Python 3.12 and the rpi-lgpio package. The out-of-the box RPi.GPIO apt package is basically useless; you're better off purging it and installing the lgpio variant which actually seems to work. Even better is to run the code in a venv.
As always, YMMV.