Using Adafruit shield w/ Stepper

Hi All,

I've currently adapted the code for the Adafruit motor shield to run where I'd like w/ my stepper. I'm creating the "OH SO CREATIVE" automatic dog feeder however; I'm trying to learn whilst I create. Here's where I'm stuck;

I want to simply integrate a push button that will run the code when pressed ONCE. I am using the exit function to end my loop and implementing a pull down resistor for my button... My stepper code works just like I'd like it to. My pushbutton is useless and I can't seem to figure out why it won't cooperate. I'm wondering if possibly I'm using the wrong pins or if my code is incomplete. (It will verify and upload as is)

It seems most examples call an output but with the motor shield, this is M3 & M4, not a pin. Could this be affecting it?

You need to post your program. Without that we are blind.

...R

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom... :slight_smile: