For Loop Troubles


we powering stepper motor dfrduino uno , h-bridge. there push button , break beam sensor connected our circuit. code set spins stepper motor until break beam sensor interrupted. add loop display on "serial monitor" screen how many times break beam sensor has been interrupted.

i attached our code. let know if have suggestions. thanks.


the current code have stays @ "0" , if-else statement doesn't work.

welcome forum. please read first 2 posts @ top of forum nick gammon. gives guidelines posting here, how post source code using code tags. (that's 1 reason people haven't responded...they don't downloading code.) also, use ctrl-t in ide format code in standard manner before using code tags. you.


Arduino Forum > Using Arduino > Programming Questions > For Loop Troubles


arduino

Comments