Sirius Company

ULN2003 Stepper Driver

ULN2003 Stepper Driver
 
ULN2003 Stepper Driver Connection

Vcc: Circuit power pin - connect to +5V on Arduino board.

GND: Circuit ground pin - connect to GND on Arduino board.

IN1: Input 1 on ULN2003 IC - connect to Digital pin on Arduino board.

IN2: Input 2 on ULN2003 IC - connect to Digital pin on Arduino board.

IN3: Input 3 on ULN2003 IC - connect to Digital pin on Arduino board.

IN4: Input 4 on ULN2003 IC - connect to Digital pin on Arduino board.


 
ULN2003 Stepper Driver Arduino Code
void setup() { pinMode(2,OUTPUT); pinMode(3,OUTPUT); pinMode(4,OUTPUT); pinMode(5,OUTPUT); digitalWrite(2,LOW); digitalWrite(3,LOW); digitalWrite(4,LOW); digitalWrite(5,LOW); } void loop() { digitalWrite(4,LOW); digitalWrite(5,LOW); digitalWrite(3,LOW); digitalWrite(2,HIGH); delay(1000); digitalWrite(2,LOW); digitalWrite(4,LOW); digitalWrite(5,LOW); digitalWrite(3,HIGH); delay(1000); digitalWrite(2,LOW); digitalWrite(3,LOW); digitalWrite(5,LOW); digitalWrite(4,HIGH); delay(1000); digitalWrite(2,LOW); digitalWrite(4,LOW); digitalWrite(3,LOW); digitalWrite(5,HIGH); delay(1000); }