Skip to content

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

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages