I have a project that I am working on that I could use some help with. I want to control a Unipolar stepper motor to rotate to four separate positions using a Arduino Uno USB Microcontroller ( RB-Ard-18) and Motor shield kit ( RB-Ada-02). I would be using four different micro switches for input to the microcontroller. Does anyone have a program with/library that could get me started? Doesn't have to be exact just have input and out code that is relevant. I am very new at this but and have been going through the online learning tutorials and should be able to make the changes necessary for my project
Thanks Rmac
Do I use a statement like
const int buttonPin1 = 8; // the number of the first pushbutton pin
const int buttonPin = 2; // the number of the second pushbutton pin
const int ledPin = 13; // the number of the LED pin
or
const int buttonPin = ( 8,2 );
const int ledPin = 13; // the number of the LED pin
I have tried both and can only get one of the buttons to light the lED
Rmac