Stepper Motor Controller (Raspberry Pi)

Introduction: Stepper Motor Controller (Raspberry Pi)

About: the Raspberry Pi is Awesome!

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

RPI 3 -

4 Amp Power Adapter -

16GB micro SD -

12 Volt Power Supply -

DC Power Jack Adapter -

NEMA 17 Stepper Motor -

Adafruit DC & Stepper Motor HAT -

Step 2: Setup

1. "git clone"

2. "sudo raspi-config" (activate I2c interface)

3. "cd Adafruit-Motor-HAT-Python-Library"

4. "sudo python install"

5. "cd examples"

6. edit line 20 of to "myStepper = mh.getStepper(200, 2)"

7. python

Step 3: Code

Step 4: Additional Info

Be the First to Share


    • Metal Contest

      Metal Contest
    • Make it Move Challenge

      Make it Move Challenge
    • CNC and 3D Printing Contest

      CNC and 3D Printing Contest



    Question 3 years ago on Step 3

    I managed to get this running in pyhton 2.
    Is it also possible to run this in Python 3 ??
    Up to now I did not succeed