srich36:
2. The receiving arduino cannot be powered by the sending arduino at all. Does sending 5V through digitalWrite to an input pin of a receiving arduino power it?
Another way is to buffer the signal from the Sending Arduino, using a transistor that is powered, on the collector side, by the Receiving Arduino's power source (this can be via a INPUT_PULLUP). That way, if the Receiving arduino is NOT powered, the signal from the Sending Arduino will not reach the Receiving Arduino. This will logically invert the signal, so you will need to invert it in software on the Receiving end.
Also, if the Arduinos need to be isolated, you could use an OptoCoupler. Here are a couple of examples:
I arbitrarily chose the Arduino pin numbers. On the Receiving Arduino, be sure to set the pinMode on the receiving pin to INPUT_PULLUP.
srich36:
P.s. they cannot communicate through the serial ports as I am already using the to communicate through the USB.
There is something called Software Serial: https://www.arduino.cc/en/Reference/SoftwareSerial
Software Serial would allow you to send serial data on "regular" Arduino pins (i.e. pins other than the hardware serial pins), even if the hardware serial pins are in use -- in other words, it's possible to have more than one functional serial port.
BUT, do you really need the complexity of a Serial port? If all you need to do is send a binary bit, then isn't just toggling a Digital Output enough?
srich36:
Can you give a quick explanation of why adding a 100k resistor in between the two arduinos will solve it?
Because, 100k will limit current to the Receiving Arduino enough to prevent the phantom voltage to reach a high enough level to power the Receiving Arduino. BUT, because an Arduino Digital Input has a resistance on the order of 100MΩ [100 MILLION Ohms!], 100kΩ is like zero ohms in comparison -- they are, essentially, electrically the same -- in other words, 100k is SO MUCH SMALLER than 100M, it makes the difference between 100k and 0Ω, like trying to see the individual Planets in our Solar System, from Alpha Centauri! [Ok, that's an exaggeration! But you get the idea, right?]