Page 1 of 1

using ATtiny13 to power on/off Node MCU

PostPosted: Wed Jan 20, 2021 2:32 am
by luvolone
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

Re: using ATtiny13 to power on/off Node MCU

PostPosted: Sat Jan 23, 2021 10:05 am
by btidey
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.

Re: using ATtiny13 to power on/off Node MCU

PostPosted: Thu Feb 25, 2021 10:22 pm
by StanJ
See if this fits your needs: https://www.instructables.com/Ultra-Low ... g-ESP8266/
Here's his git repo for that build: https://gitlab.com/MrDIYca/ultra-low-po ... ng-esp8266

From his recent Reddit post he's about to release the New! Improved! version. ;)