
This makes explaining the code a bit easier.
#DC MINI RAMP DRIVER#
In the rest of this tutorial I have left MS1, MS2 and MS3 disconnected, so the driver operates in full-step mode. When this pin is set high the driver is disabled. The EN (enable) pin can be left disconnected, it is pulled low by default.If you are not using the pin, you can connect it to the adjacent SLP/SLEEP pin to bring it high and enable the driver. When pulled low, all STEP inputs are ignored until you pull it high. Meaning, pulling this pin low puts the driver in sleep mode, minimizing the power consumption. You can choose a different digital pin if you want, but these are the ones I used for this tutorial and the example code. The STP (step) and DIR (direction) pin are connected to digital pin 3 and 2 respectively.The GND pin (lower right) is connected to the ground pin of the microcontroller and VDD is connected to 5V.The two coils of the stepper motor are connected to 1A, 1B and 2A, 2B (see below).The motor power supply is connected to GND and VMOT (top right).It makes wiring much easier and is a great option if you need a more permanent solution than a breadboard. Such a shield already includes capacitors and offers an easy way to select the microstepping resolution. I like to use this driver in combination with a CNC-shield or expansion board. TB6600 Stepper Motor Driver with Arduino Tutorial.
#DC MINI RAMP HOW TO#

This article includes everything you need to know about controlling a stepper motor with the A4988 stepper motor driver and Arduino.
