Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Controlled 28BYJ-48 Stepper Motor with ULN2003 Driver

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled 28BYJ-48 Stepper Motor with ULN2003 Driver

Circuit Documentation

Summary

This circuit is designed to control a 28BYJ-48 Stepper Motor using an Arduino UNO microcontroller and a ULN2003A breakout board. The Arduino UNO sends control signals to the ULN2003A, which in turn drives the stepper motor. The circuit is powered by the Arduino's 5V output, and the ground is shared across the components. The stepper motor is controlled through a set of digital pins on the Arduino, which are interfaced with the input pins of the ULN2003A breakout board.

Component List

28BYJ-48 Stepper Motor

ULN2003A Breakout Board

Arduino UNO

Wiring Details

28BYJ-48 Stepper Motor

ULN2003A Breakout Board

Arduino UNO

Documented Code

#include <Stepper.h>
#define STEPS 32

Stepper stepper(STEPS, 8, 9, 10, 11);
int val = 0;

void setup() {
    Serial.begin(9600);
    stepper.setSpeed(200);
}

void loop() {
    if (Serial.available() > 0) { 
        val = Serial.parseInt();
        stepper.step(val);
        Serial.println(val);
    }
}

Filename: sketch.ino

Code Description