Wed Nov 30, 2016 10:10 am
Make sure the signal wire, but especially the grounds, between the 2 RPI are connected before powering them on.
If they are powered (for example) by 2 separate DC adaptors, there is a risk that both grounds are at different potentials (voltages) relative to each other.
Connecting them together when powered on with different potentials means a large surge of current will flow as the potentials try to equalise.
This voltage/current can be high enough to damage GPIO pins, or even blow a hole in a chip package (letting the magic smoke out) as I found to my cost in my early days!
It may not happen every time, but when it does, you tend to remember not to do it again.
The length of the wires between the 2 RPI may have an effect too, as long wires can pick up additional noise and present extra load and capacitance to the pins.
If they are excessively long, consider twisting the signal and ground wires around each other to reduce any interference pick up.
Or consider using the serial ports to connect the RPI together. Those circuits tend to be designed to be more robust, especially if you put appropriate line drivers between the two devices.
Using a serial connection can make your system more stable because you will need to receive a specific message instead of just detecting a voltage level, therefore it would be less prone to false triggering, although obviously it is a little more effort to program. Just some of my rambling thoughts that might help.....
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574