So, here's an interesting question for the group. Does anyone see a reason why a digital output pin on one Arduino board can't be tied to a digital input of another Arduino board?
Here's the scenario...
Nomad has a power problem which is causing the main board to lose power and shut down. However, the motor controller will continue to execute the last command it was sent. Which means if Nomad is going top speed when the main board goes out, it continues going top speed until I can catch the little rascal and shut it off.
There is an Arduino Mega already on board. The Mega collects sensor information and controls the pan/tilt servos and will likely take on more responsibilities as things progress. It is connected to, and powered by, the main board via USB. So, when the main board goes down, so does it.
I am adding a second Arduino, an Uno, to manage the power system. As is, the power button on the main board requires a timed double pressing in order to turn on the board. That will be simple enough to emulate with the Uno and a relay. I have an eight relay board I'm putting on as well as a separate 30A relay for the motor controller.
As a safety precaution, when the main board goes down, I want to shut off power to the motor controller. In order to do this I need to detect when the main board has, in fact, gone down. It occurred to me that I may be able to connect a pin on the Mega to a pin on the Uno. When the Mega powers up and executed it's program it will set that pin high. On the Uno side, as long as that pin is registered high the MC power is applied. When it goes low, the MC power is shut off.
Does this long winded logic sound right? Am I missing something?
Thanks.
Jeffrey Cicolani
"Power to the people powerful enough to crush the other people" Joss Whedon
"Always be yourself... unless you suck." Joss Whedon