This has probably been covered, but I don't seem to be able to come up with the right search terms to find it.
I want to use a momentary switch to turn on power to the entire device and once the Arduino becomes "Live" let it control whether power stays on or off. I also want to use that same button as a regular input input button for the Arduino.
I kind of see some kind of circuit that is started by pressing the button pin, but "kept alive" by a High or Low signal on a digital pin once the Arduino "Wakes up" and is able to take control. It would have to do that while still being functional as a regular input button.
Once the correct conditions are met (In this case, button has been held down for > 5 seconds) it changes the state of the digital control pin and lets the circuit close.
The whole idea is to have a way to shut the whole thing off for charging WITHOUT having an extra switch and/or button visible. I also want to not have a visible charging port either, I will be using a couple of screw heads or something to carry the charge current.
Has anyone seen/heard of/can direct me to information about that? Is there a name for that kind of circuit or some search term that may help me find it?