panic mode
- Joined Oct 10, 2011
- 5,189
depending on RPI version and installed hardware, that draw may be anything between couple of mA to few tens of mA. for many uses that may not be suitable.
The target is turn on with long press. The right side of the mosfet is already handling the safe shutdown with the GPIO.Question to the TS:
Is the goal of the circuit to delay power to the uC, or to delay operation of the uC when it has power?
A corollary question: Are other circuits/things besides the RPi being powered through this switching circuit?
ak
One issue I see is the power OFF is also delayed when pin7 goes Low.Here's an alternate circuit.
R1 adjusts the delay. Time delay depends on NMOS VGS(th), but an assumption is the delay time is not critical.
Huh?If you remove D2, the uC high output, necessary to keep M1 turned on after the button is released, now will be connected to the timing capacitor, so it will not discharge (reset) while the circuit is running.
ak
Yes, but that's not the condition I was describing. When the pushbutton is open *and the RPi circuit still is running*, pin 7 is high.When pin7 goes Low C1 will discharge through R4 and D1, D3 will be reversed bias.