Stepper Motor

COURSE FEATURES

  • Duration 12:07
  • Hardware Stepper Motor

ABOUT THE COURSE

The stepper motor moves the chain that moves the horses around the track.

What You Will Learn

In this tutorial, we will hook up a stepper motor. The actual stepper motors used will need a controller, but for the purpose of just showing how the code works one is not used here.



Video #6

#include 

Stepper horse1(80, 8, 10, 9, 11);

int stepp = 0;

void setup()
{

}

void loop()
{
    stepp = random(1,10);
    horse1.step(stepp);
    delay(500);
}


Review

Just a few simple lines to get the motor to move. Correction to the video .. I did use Nema 24 (423oz/in) motors on my derby.