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

Arduino UNO Controlled Bipolar Stepper Motor System

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Bipolar Stepper Motor System

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller connected to a Bipolar Stepper Motor (NEMA 17). The Arduino UNO controls the stepper motor by sending signals to its coils, allowing precise control over the motor's rotation.

Component List

Arduino UNO

Bipolar Stepper Motor (NEMA 17)

Wiring Details

Arduino UNO

Bipolar Stepper Motor (NEMA 17)

Code Documentation

Arduino UNO Code

#include <Stepper.h>

const int stepsPerRevolution = 200;  // Change this to match your motor's specifications

// Initialize the stepper library on pins 10, 11, 9, 8
Stepper myStepper(stepsPerRevolution, 10, 11, 9, 8);

void setup() {
  myStepper.setSpeed(60);  // Set the speed in RPM
}

void loop() {
  myStepper.step(stepsPerRevolution);  // Move one full revolution
  delay(1000);  // Wait for a second
  myStepper.step(-stepsPerRevolution);  // Move one full revolution in the other direction
  delay(1000);  // Wait for a second
}

This code initializes the stepper motor on pins 10, 11, 9, and 8 of the Arduino UNO. It sets the motor speed to 60 RPM and continuously rotates the motor one full revolution in each direction with a one-second delay between movements.