# KS0379 Keyestudio 3D Printer DRV8825 Kit (5PCS) ![](media/wps1.png) ## 1. Introduction This stepper motor driver is powered by DRV8825. This driver has a same pin and interface as our A4988 stepper motor driver, so it can replace the A4988 driver. It is a high-powered stepper motor driver. DRV8825 has adjustable current limits, over-current and over-heat protection, six micro resolution (down 1/32-step). It uses 8.2-45V and can provide up to approximately 1.5 per phase without heat sink or forced air flow (rated up to 2.2 with adequate additional cooling per coil) ## 2. Specifications 1. With only simple step and direction control interface; 2. Six different step modes: full, half, 1/4, 1/8, 1/16, and 1/32; 3. Adjustable potentiometer can adjust the maximum current output, resulting in a higher step rate; 4. Automatic current decay mode detection / selection; 5. Overheat shutdown circuit, under voltage lockout, cross current protection; 6. Ground short circuit protection and load short circuit protection. ## 3. Settings for working mode ![](media/wps2.png) ## 4. Connection Diagram It needs to connect DC 8-15V between motor power VMOT and GND. ![](media/wps3.jpg) ## 5. Sample Code Download code : [Code](./Code.7z) ```c int dirPin = 7; int stepperPin = 8; void setup() { pinMode(dirPin, OUTPUT); pinMode(stepperPin, OUTPUT); } void step(boolean dir,int steps) { digitalWrite(dirPin,dir); delay(50); for(int i=0;i