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

Arduino UNO Controlled Stepper Motor with Pushbutton Interface

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Stepper Motor with Pushbutton Interface

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, a pushbutton, an A4988 stepper motor driver, a bipolar stepper motor (NEMA 17), and a resistor. The Arduino UNO controls the stepper motor through the A4988 driver, with a pushbutton used to provide input. The resistor is used to limit current in the circuit.

Component List

Arduino UNO

Pushbutton

A4988 Stepper Motor Driver Carrier

Bipolar Stepper Motor (NEMA 17)

Resistor

Wiring Details

Arduino UNO

Pushbutton

A4988 Stepper Motor Driver Carrier

Bipolar Stepper Motor (NEMA 17)

Resistor

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);

  digitalWrite(10, LOW);
  digitalWrite(11, HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:

}

This code sets up pins 10 and 11 of the Arduino UNO as outputs and initializes pin 10 to LOW and pin 11 to HIGH. The loop function is currently empty and can be filled with the main logic to control the stepper motor based on the pushbutton input.