Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By luvolone
#90280 I was searching for following scenario:
power latching circuit to power on and off a mcu using a attiny (with the internal watchdog timer) instead of a push button.
I am able to program the attiny properly and also the node MCU (esp8266).
I am able to do this example https://www.youtube.com/watch?v=7D9L9oS4AJM&t=117s using a push button.
now i want to replace the push button with an impuls of the attiny.
Is ther any example where I could see how it works?
Maybe here are some forum mmembers who could explain me or even better give me a schematic how to reach that goal.


thank you so much
User avatar
By btidey
#90312 You shouldn't need any fancy latching circuit here. You could use an output of the ATTiny to directly drive the gate of the p channel MOSFET (with the pull up to 5V and source to 5V) and use the drain then to feed the Node.

If the ATTiny output is high then MOSFET is off and the Node is powered off. If your program puts the output low then the MOSFET turns on and the Node powers up. If you want the Node to be able to turn things off then just connect a Node GPIO out to a ATTiny GPIO input and let it signal the ATTiny to remove the power.