Arduino Debugger Code for Scripting Proper Button Behavior for Driving Stepper Motors


/ Published in: C++
Save to your folder(s)

This is debugger code used for scripting proper button behavior for driving stepper motors. In place code driving the stepper motors code has been put in place switching LED's on and off for debugging purposes. The buttons switch a stepperState variable which determines the direction the motor turns. Pressing a button once will cause the motor to turn in that direction, with a second press of the button stopping it. Code is also in place to stop the motor if a mechanical stopper switch is pressed.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.