Re: any code for arduino to stop servomotor ?

any code for arduino to stop DC motor When I press on button !!!

Why did you not start a new thread ?

any code for arduino to stop DC motor When I press on button !!!

Don't keep repeating yourself. What motor? What Arduino? What button? Try to give us a bit of information, we aren't mind-readers.

wejdene-21: any code for arduino to stop DC motor When I press on button !!!

any code for Arduino to stop this thread when I press on button?

Use this code:

void setup() {
}

void loop() {
}

Connect one side of motor to ground, other side to 5v via the button. Button must be a "normally closed" type. Leave Arduino in its box.

PaulMurrayCbr: Use this code:

void setup() {
}

void loop() { }




Connect one side of motor to ground, other side to 5v via the button. Button must be a "normally closed" type. Leave Arduino in its box.

LOL thats great advice!