Arduino for Beginners
This video driving old CD-ROM Stepper motor using Arduino UNO R3 and Motor Shield L293d , use AF_Stepper Class from AF_Motor Library
== source code ==
#include "AFMotor.h"
AF_Stepper Stepper1(20,2); // #2 M3,M4
void setup() {
Stepper1.setSpeed(255);
}
void loop()
{
Stepper1.step(200, FORWARD,MICROSTEP);
delay(1000);
Stepper1.step(200,BACKWARD,MICROSTEP);
delay(1000);
}
[ Ссылка ] ::::::::::: SUPPORT CHANNEL ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Please Donate To Help Me Afford New Equipment And Software To Make My Videos More : [ Ссылка ]
Don't forget to subscribe!
Ещё видео!