hi,
i found an old step motor and i would like to move it right/left using 2 tactile buttons
i alredy set up some variables as i found using google search
int pinBlack = 4;
int pinOrange = 5;
int pinBlue = 6;
int pinYellow = 7;
int delayTime = 5;
just one thing isn't clear, the row:
//serial.begin(9600);
don't know what is it for and what to do with the tactile buttons?
serial.begin(9600); will open the serial port and set board rate at 9600.
That is part of any serial communication sketch/initialisation.
However, the line you pasted has two "//", which means it is commented and is being ignored....
It would definitely be a good thing to get acquainted with serial communications.
Have you tried tackling with the serial sketches included with the IDE ?
Here are a couple of good pages that should be useful :
KobiAflalo:
i still don’t understand what is stepper driver? i googled it and found a device
what is it for?
In general you need a “driver” that sits between an Arduino and any motor because an Arduino cannot supply enough current for a motor. The Arduino sends signals to the driver and the driver switches the larger motor currents.