Hello,
I'm new to all this Arduino Stuff, but from what I've read I think I'm going to enjoy.
I have a little project where I want to move a stepper motor a set number of steps at
the press of a button and possibly set the number of steps using a potentiometer.
Using virtual breadboarding I have so far been able to rotate the motor backwards and
forwards a programmed amount, say 400 forward and 400 backwards. But the switch
is causing me some head scratching. So for example I want to rotate the motor 400 steps
everytime I press a button.
I'm sure it's quite straightforward, but can't just get my head round it at the moment.
Anyone!
Regards
RichardG
Have you looked at the examples that use push-buttons?
The Button library might be a good choice: Arduino Playground - Hardware Abstraction Resource