Hi, I have code set up to run a stepper motor using the redboard and the motor driver. The code works. I am trying to integrate the button so that when I press the button it starts the code. When I press the button again it stops the code. I attempted the" interrupt" using pin 9 because pin 2 is taken by the motor driver. Can anyone help me or direct me to the appropriate place to ask this questions. Thanks, Dwane
If you’re using a redboard that uses a atmega328, only pins 2 and 3 work with interrupts. You might need to move one of your motor drivers to free up an interrupt capable pin.