Stepper Motor Controller (Raspberry Pi)
by piddlerintheroot in Circuits > Raspberry Pi
33083 Views, 25 Favorites, 0 Comments
Stepper Motor Controller (Raspberry Pi)

Basic tutorial of how to setup a stepper motor using an Adafruit DC & Stepper Motor HAT with the Raspberry Pi.
Stepper Motor Basics:
Parts

RPI 3 - https://amzn.to/2VA9pQY
4 Amp Power Adapter - https://amzn.to/2CTptWu
16GB micro SD - https://amzn.to/2SFMwd3
12 Volt Power Supply - https://amzn.to/2srHmWv
DC Power Jack Adapter - https://amzn.to/2VQl3XY
NEMA 17 Stepper Motor - https://amzn.to/2stjdik
Adafruit DC & Stepper Motor HAT - https://www.adafruit.com/product/2348
Setup

1. "git clone https://github.com/adafruit/Adafruit-Motor-HAT-Pyt..."
2. "sudo raspi-config" (activate I2c interface)
3. "cd Adafruit-Motor-HAT-Python-Library"
4. "sudo python setup.py install"
5. "cd examples"
6. edit line 20 of StepperTest.py to "myStepper = mh.getStepper(200, 2)"
7. python StepperTest.py
Code

Additional Info

Adafruit Guide: https://learn.adafruit.com/adafruit-dc-and-steppe...
Online Guide: https://www.piddlerintheroot.com/stepper-motor-co...