Skip to content

Python Library to controll a stepper motor with a DRV8825 driver

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
LICENSE.txt
Notifications You must be signed in to change notification settings

dimschlukas/rpi_python_drv8825

Repository files navigation

Raspberry Pi DRV8825 Python library

Python Library to controll a stepper motor with a DRV8825 driver connected to a Raspberry Pi

install

$ pip install rpi_python_drv8825

or clone repository

How to use

1. import library
from rpi_python_drv8825.stepper import StepperMotor
2. create object
motor = StepperMotor(enable_pin, step_pin, dir_pin, mode_pins, step_type, fullstep_delay)
3. run motor
motor.enable(True)        # enables stepper driver
motor.run(6400, True)     # run motor 6400 steps clowckwise
motor.run(6400, False)    # run motor 6400 steps counterclockwise
motor.enable(False)       # disable stepper driver

About

Python Library to controll a stepper motor with a DRV8825 driver

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages