Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Articles

Arduino and Stepper motor pin configuration

Arduino and Stepper motor pin configuration

Arduino and Stepper motor pin configuration

#include <Stepper.h>
#define STEPS 32
#define STEPSREV 32 * 64 //2048
Stepper stepper1(STEPS, 8, 10, 9, 11);
int Steps2Take;
void setup()
{
}
void loop()
{
stepper1.setSpeed(1);
Steps2Take = 4;
stepper1.step(Steps2Take);
delay(2000);
Steps2Take = STEPSREV / 2;
stepper1.setSpeed(100);
stepper1.step(Steps2Take);
delay(1000);

Steps2Take = + STEPSREV / 2;
stepper1.setSpeed(700);
stepper1.step(Steps2Take);
delay(2000);
Steps2Take = - STEPSREV/ 2;
stepper1.setSpeed(700);
stepper1.step(Steps2Take);
delay(2000);
}

caa October 25 2023 226 reads 0 comments Print

0 comments

Leave a Comment

Please Login to Post a Comment.
  • No Comments have been Posted.

Sign In
Not a member yet? Click here to register.
Forgot Password?
Users Online Now
Guests Online 3
Members Online 0

Total Members: 11
Newest Member: Jhilam