changing the movement of a step motor using tactile buttons

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;

void setup() {
//serial.begin(9600);
pinMode(pinBlack, OUTPUT);
pinMode(pinOrange, OUTPUT);
pinMode(pinBlue, OUTPUT);
pinMode(pinYellow, OUTPUT);
}

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?

/

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 :

code.google.com/p/arduino-tiny
http://www.ladyada.net/learn/arduino/lesson4.html

dan

dan

Get your motor working without any buttons first.

Then write a short program that just reads the buttons and displays their state on the Serial Monitor.

Then join the two together.

What stepper driver are you using? (You cannot connect a motor direct to an Arduino - the Arduino would be damaged).

...R
Stepper Motor Basics
Planning and Implementing a Program

let me rephrase the question,
i would like the buttons to change the motor state from "low" to "high" when i press the botons

how to do this?

Robin2:
What stepper driver are you using? (You cannot connect a motor direct to an Arduino - the Arduino would be damaged).

…R
Stepper Motor Basics
Planning and Implementing a Program

i havent run the motor yet…
what is stepper driver???

KobiAflalo:
let me rephrase the question,
i would like the buttons to change the motor state from "low" to "high" when i press the botons

I don't understand.
A stepper motor does not have low and high states - it has steps.

Have a look at this Simple Stepper Program

...R

KobiAflalo:
i havent run the motor yet....
what is stepper driver?????????

Read the link I gave you.

...R

Robin2:
Read the link I gave you.

...R

i still don't understand what is stepper driver? i googled it and found a device
what is it for?

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.

Have you read ALL of Stepper Motor Basics ?

There is a whole section about Stepper Motor Driver Boards.

If there is something in that which you don’t understand please tell me what it is and I will try to help. It may even help me to improve my Tutorial.

…R