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 driver, which in turn drives the stepper motor. The pushbutton is used to provide input to the Arduino, and the resistor is used for current limiting.

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 the Arduino UNO by configuring pins 10 and 11 as outputs. In the setup function, pin 10 is set to LOW and pin 11 is set 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.