sarful
Published © MIT

Basic Stepper Control – Arduino Workshop

In this very simple project, you will connect up a stepper motor and then get the Arduino to control it in different directions and at diffe

BeginnerFull instructions provided1 hour2,840
Basic Stepper Control – Arduino Workshop

Things used in this project

Story

Read more

Schematics

Basic Stepper Control – Arduino Workshop

Code

Code snippet #1

Plain text
#include <Stepper.h>
// steps value is 360 / degree angle of motor
#define STEPS 200
// create a stepper object on pins 4, 5, 6 and 7
Stepper stepper(STEPS, 4, 5, 6, 7);
void setup()
{
}
void loop()
{
stepper.setSpeed(60);
stepper.step(200);
delay(100);
stepper.setSpeed(20);
stepper.step(-50);
delay(100);
}

Credits

sarful

sarful

59 projects • 44 followers
I am Sarful , I am a Mechatronics Engineer & also a teacher I am Interested in the evolution of technology in the automation industry .

Comments