Introduction: Stepper Motor Controller (Raspberry Pi)

Picture of 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:

Step 1: Parts

Picture of Parts

RPI 3 – https://goo.gl/CdVNoH

4 Amp Power Adapter – https://goo.gl/js4Uc7

16GB Micro SD – https://goo.gl/FDqZal

12 Volt Power Supply – https://goo.gl/7NjZiu

DC Power Jack Adapter – https://goo.gl/tknMXX

NEMA 17 Stepper Motor – https://goo.gl/vev9sE

Adafruit DC & Stepper Motor HAT – https://www.adafruit.com/product/2348

Step 2: Setup

Picture of 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

Step 3: Code

Picture of Code

Step 4: Additional Info

Picture of Additional Info

Comments

About This Instructable

371views

10favorites

License:

Bio: the Raspberry Pi is Awesome!
More by piddlerintheroot:Stepper Motor Controller (Raspberry Pi)RF 433 MHZ (Raspberry Pi) ADC MCP3008 (Raspberry Pi)
Add instructable to: