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

Arduino Nano-Controlled Stepper Motor with LED Indicator

View and Edit Project In Cirkit DesignerImage of Arduino Nano-Controlled Stepper Motor with LED Indicator

Circuit Documentation

Summary

This circuit incorporates an Arduino Nano as the central microcontroller, interfaced with various components including LEDs, resistors, capacitors, a stepper motor driver, a stepper motor, a potentiometer, a diode, and a power supply unit (PSU). The Arduino Nano controls the stepper motor through the A4988 stepper motor driver and toggles LEDs on and off. The circuit is powered by a 5V PSU, and various capacitors are used for filtering and decoupling purposes. A potentiometer is included for adjustable control, likely for setting the reference voltage or current for the motor driver.

Component List

Wiring Details

Arduino Nano

LEDs (Red)

Resistors (200 Ohms)

A4988 Stepper Motor Driver

Capacitors

AMS1117 3.3

Potentiometer

Diode

Stepper Motor (Bipolar)

5V PSU

Documented Code

// Pin assignment
const int ledPin = 2; // LED connected to digital pin D2

void setup() {
  // Initialize the digital pin as an output.
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // Turn the LED on (HIGH is the voltage level)
  digitalWrite(ledPin, HIGH);
  // Wait for a second
  delay(1000);
  // Turn the LED off by making the voltage LOW
  digitalWrite(ledPin, LOW);
  // Wait for a second
  delay(1000);
}

Filename: sketch.ino

This code is designed to blink an LED connected to digital pin D2 of the Arduino Nano. The LED is turned on for one second and then turned off for one second in a continuous loop.