I'm trying to add a reset button to my circuit which will temporarily cut the power to the circuit when a button is pressed.
I thought about using a transistor, and short-circuiting the gate to ground via a resistor. This works in EveryCircuit, but not on the breadboard.
My circuit uses an N-channel MOSFET (edit: solution is to use P-channel).
Edit: The circuit below should be 5V5 V, and the same problem occurs with 5V5 V.
Is EveryCircuit not modelling reality correctly, do I have the wrong solution, or perhaps it's the correct solution but I've wired up the breadboard incorrectly? What could be a better solution to this problem? (Otherother than using a physical toggle switch)?