makerportal / nema17-python

Python codes for controlling a NEMA 17 stepper motor

Repository from Github https://github.commakerportal/nema17-pythonRepository from Github https://github.commakerportal/nema17-python

NEMA 17 Python Tests with Raspberry Pi

Python codes for controlling a NEMA 17 stepper motor with a DRV8825 driver and Raspberry Pi computer

Full tutorial at: https://makersportal.com/blog/raspberry-pi-stepper-motor-control-with-nema-17

Buy a Stepper Motor Kit here: https://makersportal.com/shop/nema-17-stepper-motor-kit-17hs4023-drv8825-bridge

- NEMA 17, DRV8825, and Raspberry Pi Wiring -

The NEMA 17 can be wired to the Raspberry Pi via the DRV8825 driver and GPIO pins:

NEMA-17 RPi Wiring

The RpiMotorLib is used to control the motor, which can be installed via the following command:

pi@raspberrypi:~ $ sudo pip3 install rpimotorlib

- Example -

Example output from nema17_test.py:

NEMA-17 Test

About

Python codes for controlling a NEMA 17 stepper motor


Languages

Language:Python 100.0%