I don't know of a way to tell the arduino to:
Cease operations, stop, etc.
I generally just unplug the USB, but that don't work as configured, because then the emergency power jumps in.
Oh yeah, unplugging the USB caused me to fry the Arduino when I unplugged the cord from the Arduino end. I saw some sparks and the Arduino was fried,
From your description, you were successful in bringing your board to a complete stop.
Since you seem to have a problem, I am assuming that you also want to be able to have it start again at some point.
we can keep guessing....
...you are not worried about the program, you are worried about power ?
====================
void loop() {
if (switchA == LOW) {
// put all your stuff here
} // end switchA
} // end loop
=================
Also, what is emergency power ?
It sounds like you should have a power switch on the emergency power and one on the USB.
You would need to power off in a specific sequence.
Hi,
Can you post your code please?
Do you have enough pins to connect a START and STOP button, so you stop the process your code is running without reseting or powering the controller OFF.
Also some output pins to drive a couple of LEDs?
The code would still run but loop around your process code.
What model Arduino are you using?