I want to start my arduino nano up with a momentary push button, then be able to use a digital out on the nano to power off again, and run the project off battery.
There seems to be quite a few guides out there, many using a single N-chanel MOSFET, all along the same lines as this:
I can not get this (or the similar variants) to work? Does anyone know what could be going wrong? Each time I connect a battery, the arduino powers up and stays up before the button is pushed. For compactness I am using a 9V rechargeable but also have tried a 6v (4xAA) battery.
If I am understanding MOSFETs correctly, this powers up before the push button is pressed because there is a current flowing through the arduino from Vin to D4, putting a voltage between G and S on the MOSFET and powering itself without the button.
Is that right and is there any way to change this? A large resistor on D4 or perhaps reduce the size of the 330K? Due to a misreading error, that was originally just 330 ohm, which did give the same problem.