one led with time(2seconds) then when this turn off the stepper moves then when the stepper stops other led turn on with time(4 seconds) and the cycle finish....
I´m start with this but something is missing because led is turn on all the time
Please edit your post to add [ code ] tags. The forum software eats some of your code if you don't.
pinMode(7, OUTPUT);
You gave this pin a name. Use the name.
delay(0);
This does nothing. Why do you have so many nothings in your code?
You are going to have to define the sequence a little more precisely. Do you want it to start when the button is first touched or when the button is released? What happens if the button is pushed again during the cycle? Is there going to be a STOP button?
Please edit your post to add [ code ] tags. The forum software eats some of your code if you don't.
You gave this pin a name. Use the name.
This does nothing. Why do you have so many nothings in your code?
You are going to have to define the sequence a little more precisely. Do you want it to start when the button is first touched or when the button is released?
*starts when the button is first touched...
first led turns on.... pased 2 seconsd turn the led off ..after that the stepper motor start at steps and speed and finally when the stepper motor finish turn on other led by 4 seconds....
y only try to turn on the led and after the stepper but it doesn't work as i wrote it...
What happens if the button is pushed again during the cycle? Is there going to be a STOP button?
Hello,
i don't know if you can help me,
i want to control with one push button:
one led with time(2seconds) then when this turn off the stepper moves then when the stepper stops other led turn on with time(4 seconds) and finish....
I´m start with this but something is missing because led is turn on all the time