BIG SALE FOR US STOCK. Save up to 50% off.   

WELCOME TO STEPPERONLINE

Can you send me a schematic that how to wire the driver to an Arduino?

Q: Can you send me a schematic that how to wire the driver to an Arduino?

A: Please follow below steps to connect stepper driver to Arduino:
1. Connect driver’s DIR+ and PUL+ to Arduino’s digital port. eg. PIN8 and PIN9.
2. Connect PUL- and DIR- to Arduino’s GND.
3. Write program on your computer by pointing PIN8 and PIN9 to DIR and PUL.
4. Download the program to Arduino, and power Arduino by 5V power supply.
Below schematic diagram is showing the basic connection of Arduino, stepper driver, power supply and stepper motor.

We also provide a simple demo code
void setup() {
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
}
void loop() {
digitalWrite(8,HIGH);
for (int x = 0; x < 2000; x++)
{
digitalWrite(9,HIGH);
delayMicroseconds(200);
digitalWrite(9,LOW);
delayMicroseconds(200);
}
delay(1000);
}