I have a pi3 running Android. I have one app on it which is an irrigation system. The pi is connected to two 16 channels Sainsmart relay boards which control the valves and it all works just fine except when I shut down the pi. 2 of the relays switch on (connected to BCM2 and BCM3) as the pi shuts down.
I close down the pi carefully, making sure all the relays are closed before calling:
Runtime.getRuntime().exec("reboot -p");
It seems as if the actual close down of the pi triggers the 2 relays to switch on.
Also, switching on the pi lights up the same 2 relays, until my app starts running and ensures all the relays are off.
Is there something wrong with my pi?
Thanks,
John