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
- Bipolar stepper motor
- DRV8825 stepper motor driver
- 100 μF electrolytic capacitor
- Power supply
- Jumper wires
- screw driver
Step 2: Circuit Diagram
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
We have a be nice policy.
Please be positive and constructive.