I have a Pi 3 with a shutdown button (incl pulldown resistor) and a button to restart it again - This one is connected to the RUN header to reset it after it was halted with the shutdown button.
The buttons are connected via wires less then 10 cms long.
The Pi turns out to be sensitive to Electromagnetic Interference. Whenever I switch on/off a 220V device that is (very) near the Pi, the shutdown GPIO detects false inputs. I have solved this in code requiring longer contacts from the button before the script runs the halt command.
However, I also have this problem on the Run header. If I put a 220V lamp on top of the Pi and start switching it on and off, it will actually cause the Pi to reset. If I remove the button wires from the header, it doesn't happen. So I'm assuming I'm causing a current in the short wires that is enough to drop the voltage on the Run header which make the Pi reset.
My question: I know that adding pullup/pulldown resistors and capacitors in various ways to the GPIO headers can solve the interference there - But how do I protect the run/reset pin? Can anyone suggest a circuit?