Drive a Stepper Motor With DRV8825 and Arduino

100

2

1

Posted

Introduction: Drive a Stepper Motor With DRV8825 and Arduino

In this tutorial, I will show you how to use DRV8825 stepper motor driver to control stepper motor with Arduino.

Step 1: Components

Parts list:

  • Bipolar stepper motor
  • DRV8825 stepper motor driver
  • Arduino
  • 100 μF electrolytic capacitor
  • Power supply
  • Jumper wires

Tools:

  • Multimeter
  • screw driver

Step 2: Circuit Diagram

Pin Description:

VMOT: Power supply for motor (8.2 to 40v)

GND: To power supply ground pin

B2 and B1: for one coil of stepper motor

A2 and A1: for second coil of stepper motor

GND: To ground of arduino

DIR: For controlling direction of rotation of stepper motor (HIGH for particular direction and LOW for opposite direction)

STEP: To control no. of step (HIGH for increment in one step rotation )

SLEEP: When this pin is high then motor goes to slipping state

RESET: Restarts the board when this pin high

M0, M1, M2: Pins for microstepping

Step 3: Arduino Code

Upload code to arduino.

you can download code from this link - https://goo.gl/Av87dw

Share

    Recommendations

    • Science of Cooking

      Science of Cooking
    • Microcontroller Contest

      Microcontroller Contest
    • Spotless Contest

      Spotless Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    Thanks for sharing your first Instructable!