MCU turning its own supply ON

Hi all,
in my battery powered application (ebike) I am utilizing DC-DC converter to drop battery voltage to 5 V.
That is suppling ESP32 (my bike computer) as well as some additional stuff like headlight, sensors etc. (<1A) For energy conserving reasons I would like to by able to turn that converter off. Conveniently it does come with EN input. I was thinking about adding MOSFET between VCC and EN. MOSFET would be controlled by ESP32 and thus I would be able to turn the power off.

Now what would be best way to turn that ON without switch? One thing that comes to mind is to add small battery supply so the ESP32 could remain powered on with DC-DC converter being off. But it does add a lot of complexity and I started to think that maybe there is some clever way, that someone with experience in electronic could point me towards. I do have one push button on board that is connected as input to ESP32, if that could be used...

Sorry if this is noob question.

Pololu power switch

On the other hand, the current draw of the ESP32 is microscopic, compared to the current drawn by all the other things on an eBike, and surely you have a manual power switch of some sort.

Not sure how much a buck converter draw, maybe it's negligible too.

Responsible sellers report the "quiescent current", which can be in the range of microamperes. For example, this buck converter has 200 uA quiescent current.

Couple of examples of a soft latching power circuit

Stop that.

nope, I just remove battery

seller say no load current <1mA

Thank you, that was exactly what I was looking for. Wonder if there are any popular ICs that do that?

That act is a "manual power switch".

I dunno, but there are ICs for everything nowadays so why not. In any case you would need a board, so you might as well go for the whole build anyway.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.