Wednesday, December 27, 2017

Designing a Driver Circuit for a Bipolar Stepper Motor Part 1

In this video we design a low cost driver circuit for a four wire bipolar stepper motor using two H bridges.




//********************Arduino code from video***********************
#include <Stepper.h>

const int numberOfSteps = 100;  //number of steps you want your stepper motor to take

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(numberOfSteps, 8, 9, 10, 11);

void setup() {
  // set the speed at 60 rpm:
  myStepper.setSpeed(60);
}

void loop() {
  myStepper.step(numberOfSteps);
  delay(1000);
}

No comments:

Post a Comment