sherzaad:
That's EXACTLY what I want - "Arduino that detects when the big red button is triggered - but only AFTER the safety stop has happened."I what I am trying to achive to to stop the CODE safely to avoid it returning/reading undesired values the moment the e-stop is pressed.
Obviously cutting off power to the Arduino as well as to the dangerous machine is one option.
If you want the Arduino to continue working but to be aware that the E-stop has been triggered then you need some means for the Arduino to detect that.
As you have not given us any information about what you are controlling, how the E-stop button is wired etc etc etc any advice would be guesswork and might be dangerous.
...R